File tree 1 file changed +3
-15
lines changed
1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -105,17 +105,6 @@ def get_server_facing_ports(db):
105
105
return server_facing_ports
106
106
107
107
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
-
119
108
class PfcwdCli (object ):
120
109
def __init__ (
121
110
self , db = None , namespace = None , display = constants .DISPLAY_ALL
@@ -376,10 +365,9 @@ def start_default(self):
376
365
)
377
366
378
367
# 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
+ )
383
371
384
372
if not enable or enable .lower () != "enable" :
385
373
return
You can’t perform that action at this time.
0 commit comments