[Chassis]: filter inband and recirc ports as internal ports (#11764)
Why I did it Currently the CLI commands show interface status show interface counters and show interface description displays Ethernet-IB and Ethernet-Rec ports in the output. These are internal ports should only be displayed when the option -d all is used for the above mentioned CLI commands How I did it Add the port roles Inb and Rec when classifing a port as internal port. How to verify it Verify the CLI output of the command show interface status doesnt display the Ethenet-IB and Ethernet-Rec port when -d all option in not present Before Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
This commit is contained in:
parent
234b4973cd
commit
b7aa69595f
@ -15,6 +15,8 @@ FRONTEND_ASIC_SUB_ROLE = 'FrontEnd'
|
|||||||
BACKEND_ASIC_SUB_ROLE = 'BackEnd'
|
BACKEND_ASIC_SUB_ROLE = 'BackEnd'
|
||||||
EXTERNAL_PORT = 'Ext'
|
EXTERNAL_PORT = 'Ext'
|
||||||
INTERNAL_PORT = 'Int'
|
INTERNAL_PORT = 'Int'
|
||||||
|
INBAND_PORT = 'Inb'
|
||||||
|
RECIRC_PORT ='Rec'
|
||||||
PORT_CHANNEL_CFG_DB_TABLE = 'PORTCHANNEL'
|
PORT_CHANNEL_CFG_DB_TABLE = 'PORTCHANNEL'
|
||||||
PORT_CFG_DB_TABLE = 'PORT'
|
PORT_CFG_DB_TABLE = 'PORT'
|
||||||
BGP_NEIGH_CFG_DB_TABLE = 'BGP_NEIGHBOR'
|
BGP_NEIGH_CFG_DB_TABLE = 'BGP_NEIGHBOR'
|
||||||
@ -323,7 +325,7 @@ def is_port_internal(port_name, namespace=None):
|
|||||||
|
|
||||||
role = get_port_role(port_name, namespace)
|
role = get_port_role(port_name, namespace)
|
||||||
|
|
||||||
if role == INTERNAL_PORT:
|
if role in [INTERNAL_PORT, INBAND_PORT, RECIRC_PORT]:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
Reference in New Issue
Block a user