File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed
tests/generic_config_updater Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -239,8 +239,7 @@ def validate_lanes(self, config_db):
239
239
for port in port_to_lanes_map :
240
240
lanes = port_to_lanes_map [port ]
241
241
for lane in lanes :
242
- # default lane would be 0, it does not need validate duplication.
243
- if lane in existing and lane != '0' :
242
+ if lane in existing :
244
243
return False , f"'{ lane } ' lane is used multiple times in PORT: { set ([port , existing [lane ]])} "
245
244
existing [lane ] = port
246
245
return True , None
Original file line number Diff line number Diff line change @@ -361,13 +361,6 @@ def test_validate_lanes__same_valid_lanes_multi_ports_no_spaces__failure(self):
361
361
}}
362
362
self .validate_lanes (config , '67' )
363
363
364
- def test_validate_lanes_default_value_duplicate_check (self ):
365
- config = {"PORT" : {
366
- "Ethernet0" : {"lanes" : "0" , "speed" : "10000" },
367
- "Ethernet1" : {"lanes" : "0" , "speed" : "10000" },
368
- }}
369
- self .validate_lanes (config )
370
-
371
364
def validate_lanes (self , config_db , expected_error = None ):
372
365
# Arrange
373
366
config_wrapper = gu_common .ConfigWrapper ()
You can’t perform that action at this time.
0 commit comments