Skip to content

Commit 40ba225

Browse files
authored
Revert "enable pfcwd for backplane ports (sonic-net#3759)" (sonic-net#3767)
This reverts commit 2866ccd.
1 parent 2866ccd commit 40ba225

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

pfcwd/main.py

+3-15
Original file line numberDiff line numberDiff line change
@@ -105,17 +105,6 @@ def get_server_facing_ports(db):
105105
return server_facing_ports
106106

107107

108-
def get_bp_ports(db):
109-
""" Get all the backplane ports. """
110-
candidates = db.get_table('PORT')
111-
bp_ports = []
112-
for port in candidates:
113-
if candidates[port].get('admin_status') == 'up' \
114-
and candidates[port].get('role') == 'Int':
115-
bp_ports.append(port)
116-
return bp_ports
117-
118-
119108
class PfcwdCli(object):
120109
def __init__(
121110
self, db=None, namespace=None, display=constants.DISPLAY_ALL
@@ -376,10 +365,9 @@ def start_default(self):
376365
)
377366

378367
# Get active ports from Config DB
379-
external_ports = list(self.config_db.get_table('DEVICE_NEIGHBOR').keys())
380-
bp_ports = get_bp_ports(self.config_db)
381-
382-
active_ports = natsorted(list(set(external_ports + bp_ports)))
368+
active_ports = natsorted(
369+
list(self.config_db.get_table('DEVICE_NEIGHBOR').keys())
370+
)
383371

384372
if not enable or enable.lower() != "enable":
385373
return

0 commit comments

Comments
 (0)