Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvolkmann committed Dec 5, 2024
1 parent 44369ee commit dea0374
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ partition: partition-bake
.PHONY: partition-bake
partition-bake: external_network
docker pull $(MINI_LAB_VM_IMAGE)
#ifeq ($(MINI_LAB_FLAVOR),sonic)
# docker pull $(MINI_LAB_SONIC_IMAGE)
#endif
ifeq ($(MINI_LAB_FLAVOR),sonic)
docker pull $(MINI_LAB_SONIC_IMAGE)
endif
@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
2 changes: 1 addition & 1 deletion images/sonic/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def initial_configuration(path: str) -> None:

config_db['DEVICE_METADATA']['localhost']['hostname'] = socket.gethostname()
config_db['DEVICE_METADATA']['localhost']['mac'] = get_mac_address('eth0')
cidr = get_ip_address('eth0'), '/16'
cidr = get_ip_address('eth0') + '/16'
config_db['MGMT_INTERFACE'] = {
f'eth0|{cidr}': {
'gwaddr': get_default_gateway()
Expand Down

0 comments on commit dea0374

Please sign in to comment.