Skip to content

Commit

Permalink
Download sonic image if necessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Apr 19, 2024
1 parent 8958e92 commit 8b098a4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,14 @@ partition: partition-bake

.PHONY: partition-bake
partition-bake:
# docker pull $(MINI_LAB_VM_IMAGE)
ifeq ($(MINI_LAB_FLAVOR),sonic)
ifeq ($(wildcard sonic-vs.img),"")
$(MAKE) sonic-vs.img
endif
endif

docker pull $(MINI_LAB_VM_IMAGE)

@if ! sudo $(CONTAINERLAB) --topo $(LAB_TOPOLOGY) inspect | grep -i leaf01 > /dev/null; then \
sudo --preserve-env $(CONTAINERLAB) deploy --topo $(LAB_TOPOLOGY) --reconfigure && \
./scripts/deactivate_offloading.sh; fi
Expand Down

0 comments on commit 8b098a4

Please sign in to comment.