Skip to content

Commit

Permalink
Fix pfcwd start_default (sonic-net#317)
Browse files Browse the repository at this point in the history
Signed-off-by: Wenda Ni <[email protected]>
  • Loading branch information
wendani authored and lguohan committed Sep 13, 2018
1 parent b12c870 commit 3ed68a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pfcwd/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,10 @@ def start_default():
configdb = swsssdk.ConfigDBConnector()
configdb.connect()
enable = configdb.get_entry('DEVICE_METADATA', 'localhost').get('default_pfcwd_status')
countersdb = swsssdk.SonicV2Connector(host='127.0.0.1')
countersdb.connect(countersdb.COUNTERS_DB)

all_ports = get_all_ports(configdb)
all_ports = get_all_ports(countersdb)

if not enable or enable.lower() != "enable":
return
Expand Down

0 comments on commit 3ed68a3

Please sign in to comment.