Skip to content

Commit

Permalink
[sonic-py-common] Add recirc_prefix definition (#9471)
Browse files Browse the repository at this point in the history
This interface type is used for recirculation on chassis.
The definition is required to prevent this interface from being
considered a physical interface in sonic-platform-common and
sonic-platform-daemon
  • Loading branch information
Staphylo authored and judyjoseph committed Dec 27, 2021
1 parent 0094bd3 commit 65228e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sonic-py-common/sonic_py_common/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"Loopback": "Loopback",
"Ethernet-Backplane": "Ethernet-BP",
"Ethernet-Inband": "Ethernet-IB",
"Ethernet-Recirc": "Ethernet-Rec",
"Ethernet-SubPort": "Eth",
"PortChannel-SubPort": "Po"
}
Expand Down Expand Up @@ -57,6 +58,12 @@ def inband_prefix():
"""
return SONIC_INTERFACE_PREFIXES["Ethernet-Inband"]

def recirc_prefix():
"""
Retrieves the SONIC recirculation port interface name prefix.
"""
return SONIC_INTERFACE_PREFIXES["Ethernet-Recirc"]

def physical_subinterface_prefix():
"""
Retrieves the SONIC Subinterface name prefix.
Expand Down

0 comments on commit 65228e3

Please sign in to comment.