Skip to content

Commit

Permalink
[pfcwd] Apply pfcwd config only on physical ports (sonic-net#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitKaushik7 authored and wendani committed Oct 2, 2019
1 parent 2278d10 commit 7b46397
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pfcwd/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ def get_all_queues(db):
return natsorted(queue_names.keys())

def get_all_ports(db):
port_names = db.get_all(db.COUNTERS_DB, 'COUNTERS_PORT_NAME_MAP')
all_port_names = db.get_all(db.COUNTERS_DB, 'COUNTERS_PORT_NAME_MAP')

# Get list of physical ports
port_names = {}
for i in all_port_names:
if i.startswith('Ethernet'):
port_names[i]= all_port_names[i]
return natsorted(port_names.keys())

def get_server_facing_ports(db):
Expand Down

0 comments on commit 7b46397

Please sign in to comment.