forked from sonic-net/sonic-swss
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support show interface commands for multi ASIC platforms (sonic-net#1006
) Changes to support the show interface status/description for multi ASIC - Add argparse intfutil script - Change the IntfDescription and IntfStatus classes to get the information from all namespaces. - Add changes to filter out the internal ports from display - Add support for -n and -d click options - Add unit test to test mulit asic commands Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
- Loading branch information
Showing
21 changed files
with
1,064 additions
and
224 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"PORT_TABLE:Ethernet0": { | ||
"lanes": "33,34,35,36", | ||
"description": "ARISTA01T2:Ethernet3/1/1", | ||
"pfc_asym": "off", | ||
"mtu": "9100", | ||
"alias": "Ethernet1/1", | ||
"oper_status": "up", | ||
"admin_status": "up", | ||
"role": "Ext", | ||
"speed": "40000", | ||
"asic_port_name": "Eth0-ASIC0" | ||
}, | ||
"PORT_TABLE:Ethernet4": { | ||
"oper_status": "up", | ||
"lanes": "29,30,31,32", | ||
"description": "ARISTA01T2:Ethernet3/2/1", | ||
"pfc_asym": "off", | ||
"mtu": "9100", | ||
"alias": "Ethernet1/2", | ||
"admin_status": "up", | ||
"role": "Ext", | ||
"speed": "40000", | ||
"asic_port_name": "Eth1-ASIC0" | ||
}, | ||
"PORT_TABLE:Ethernet-BP0": { | ||
"oper_status": "up", | ||
"lanes": "93,94,95,96", | ||
"description": "ASIC1:Eth0-ASIC1", | ||
"pfc_asym": "off", | ||
"mtu": "9100", | ||
"alias": "Ethernet-BP0", | ||
"admin_status": "up", | ||
"role": "Int", | ||
"speed": "40000", | ||
"asic_port_name": "Eth16-ASIC0" | ||
}, | ||
"PORT_TABLE:Ethernet-BP4": { | ||
"oper_status": "up", | ||
"lanes": "97,98,99,100", | ||
"description": "ASIC1:Eth1-ASIC1", | ||
"pfc_asym": "off", | ||
"mtu": "9100", | ||
"alias": "Ethernet-BP4", | ||
"admin_status": "up", | ||
"role": "Int", | ||
"speed": "40000", | ||
"asic_port_name": "Eth17-ASIC0" | ||
}, | ||
"LAG_MEMBER_TABLE:PortChannel1002:Ethernet0": { | ||
"status": "disabled" | ||
}, | ||
"LAG_MEMBER_TABLE:PortChannel1002:Ethernet4": { | ||
"status": "enabled" | ||
}, | ||
"LAG_MEMBER_TABLE:PortChannel4001:Ethernet-BP0": { | ||
"status": "enabled" | ||
}, | ||
"LAG_MEMBER_TABLE:PortChannel4001:Ethernet-BP4": { | ||
"status": "enabled" | ||
}, | ||
"LAG_TABLE:PortChannel1002": { | ||
"admin_status": "up", | ||
"mtu": "9100", | ||
"oper_status": "up" | ||
}, | ||
"LAG_TABLE:PortChannel4001": { | ||
"admin_status": "up", | ||
"mtu": "9100", | ||
"oper_status": "up" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"ASIC_STATE:SAI_OBJECT_TYPE_SWITCH:oid:0x21000000000000": { | ||
"SAI_SWITCH_ATTR_INIT_SWITCH": "true", | ||
"SAI_SWITCH_ATTR_SRC_MAC_ADDRESS": "DE:AD:BE:EF:CA:FE" | ||
} | ||
} |
Oops, something went wrong.