Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2101,7 +2101,16 @@ def load_minigraph(db, no_service_restart, traffic_shift_away, override_config,
# get the device type
device_type = _get_device_type()
if device_type != 'MgmtToRRouter' and device_type != 'MgmtTsToR' and device_type != 'BmcMgmtToRRouter' and device_type != 'EPMS':
clicommon.run_command(['pfcwd', 'start_default'], display_cmd=True)
# default behavior to call pfcwd start_default for all platforms
default_pfcwd_status = 'enable'
if override_config and config_to_check:
# If pfcwd is disabled in the golden config, skip starting pfcwd
# This is needed for platform which doesn't support lossless traffic.
override_metadata = config_to_check.get('DEVICE_METADATA', {}).get('localhost', {})
if 'default_pfcwd_status' in override_metadata:
default_pfcwd_status = override_metadata['default_pfcwd_status'].lower()
if default_pfcwd_status == 'enable':
clicommon.run_command(['pfcwd', 'start_default'], display_cmd=True)

# Write latest db version string into db
db_migrator = '/usr/local/bin/db_migrator.py'
Expand Down
Loading