[sonic-py-common] Add recirc_prefix definition (#9471)

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
This commit is contained in:
Samuel Angebault 2021-12-13 03:09:51 +01:00 committed by Judy Joseph
parent 0094bd311a
commit 65228e39e9

View File

@ -15,6 +15,7 @@ SONIC_INTERFACE_PREFIXES = {
"Loopback": "Loopback",
"Ethernet-Backplane": "Ethernet-BP",
"Ethernet-Inband": "Ethernet-IB",
"Ethernet-Recirc": "Ethernet-Rec",
"Ethernet-SubPort": "Eth",
"PortChannel-SubPort": "Po"
}
@ -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.