Skip to content

Commit

Permalink
Mark sub-port interfaces as invalid ports in xcvrd (sonic-net#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 Jan 25, 2024
1 parent e8faab0 commit 34c6c8a
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 34c6c8a

Please sign in to comment.