Skip to content

Commit

Permalink
Fixed config load_minigrpah not working for Multi-asic platfroms. (#1123
Browse files Browse the repository at this point in the history
)

Signed-off-by: Abhishek Dosi <abdosi@abdosi-ubuntu-vm0.nwp1qucpfg5ejooejenqshkj3e.cx.internal.cloudapp.net>

Co-authored-by: Abhishek Dosi <abdosi@abdosi-ubuntu-vm0.nwp1qucpfg5ejooejenqshkj3e.cx.internal.cloudapp.net>
  • Loading branch information
abdosi and Abhishek Dosi authored Sep 23, 2020
1 parent e26aeed commit 9a05c23
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1182,13 +1182,10 @@ def load_minigraph(db, no_service_restart):
clicommon.run_command(command, display_cmd=True)
client.set(config_db.INIT_INDICATOR, 1)

# get the device type
device_type = _get_device_type()

# These commands are not run for host on multi asic platform
if num_npus == 1 or namespace is not DEFAULT_NAMESPACE:
if device_type != 'MgmtToRRouter':
clicommon.run_command('{}pfcwd start_default'.format(ns_cmd_prefix), display_cmd=True)
# get the device type
device_type = _get_device_type()
if device_type != 'MgmtToRRouter':
clicommon.run_command("pfcwd start_default", display_cmd=True)

# Update SONiC environmnet file
update_sonic_environment()
Expand Down

0 comments on commit 9a05c23

Please sign in to comment.