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 committed Sep 23, 2020
1 parent 0e5100d commit 99feb24
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,10 +985,8 @@ def load_minigraph(no_service_restart):
run_command(command, display_cmd=True)
client.set(config_db.INIT_INDICATOR, 1)

# 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':
run_command('{}pfcwd start_default'.format(ns_cmd_prefix), display_cmd=True)
if device_type != 'MgmtToRRouter':
clicommon.run_command("pfcwd start_default", display_cmd=True)

if os.path.isfile('/etc/sonic/acl.json'):
run_command("acl-loader update full /etc/sonic/acl.json", display_cmd=True)
Expand Down

0 comments on commit 99feb24

Please sign in to comment.