Skip to content

Commit

Permalink
Mark sub-port interfaces as invalid ports in xcvrd (#412)
Browse files Browse the repository at this point in the history
Signed-off-by: Mihir Patel <[email protected]>
  • Loading branch information
mihirpat1 authored and mssonicbld committed Dec 18, 2023
1 parent f23e342 commit 55cb62b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sonic-xcvrd/xcvrd/xcvrd_utilities/port_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def logical_port_name_to_physical_port_list(self, port_name):
return None

def validate_port(port):
if port.startswith((backplane_prefix(), inband_prefix(), recirc_prefix())):
if port.startswith((backplane_prefix(), inband_prefix(), recirc_prefix())) or '.' in port:
return False
return True

Expand Down

0 comments on commit 55cb62b

Please sign in to comment.