From 9a05c23e798f4a69e65e3f3fdb24f96c3837f08f Mon Sep 17 00:00:00 2001 From: abdosi <58047199+abdosi@users.noreply.github.com> Date: Wed, 23 Sep 2020 08:06:45 -0700 Subject: [PATCH] Fixed config load_minigrpah not working for Multi-asic platfroms. (#1123) Signed-off-by: Abhishek Dosi Co-authored-by: Abhishek Dosi --- config/main.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/config/main.py b/config/main.py index d9672b61549b..4f3aeb6bb39f 100755 --- a/config/main.py +++ b/config/main.py @@ -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()