File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -198,15 +198,11 @@ def start_default():
198
198
configdb .connect ()
199
199
enable = configdb .get_entry ('DEVICE_METADATA' , 'localhost' ).get ('default_pfcwd_status' )
200
200
201
- server_facing_ports = get_server_facing_ports (configdb )
201
+ all_ports = get_all_ports (configdb )
202
202
203
203
if not enable or enable .lower () != "enable" :
204
204
return
205
205
206
- device_type = configdb .get_entry ('DEVICE_METADATA' , 'localhost' ).get ('type' )
207
- if device_type .lower () != "torrouter" :
208
- return
209
-
210
206
port_num = len (configdb .get_table ('PORT' ).keys ())
211
207
212
208
# Paramter values positively correlate to the number of ports.
@@ -217,7 +213,7 @@ def start_default():
217
213
'action' : DEFAULT_ACTION
218
214
}
219
215
220
- for port in server_facing_ports :
216
+ for port in all_ports :
221
217
configdb .set_entry ("PFC_WD_TABLE" , port , pfcwd_info )
222
218
223
219
pfcwd_info = {}
You can’t perform that action at this time.
0 commit comments