-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[show] show interface status added vlan and portchannels to command #483
[show] show interface status added vlan and portchannels to command #483
Conversation
What is the output if interface is member of multiple Vlans? |
@tsvanduyn: Can you please update the new command output in the description above to reflect your latest change? |
Here is what the new output would look like:
PortChannel0001 N/A 40G 9100 N/A routed down up N/A N/A |
@tsvanduyn: please update the output in the description of the PR to reflect the new change, because it currently doesn't match. |
@jleveque I've updated the description. Thanks Travis. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Output looks good to me
Retest this please |
elif intf_name.startswith('Ethernet'): | ||
appl_db_keys = appl_db.keys(appl_db.APPL_DB, "PORT_TABLE:%s" % intf_name) | ||
elif intf_name in front_panel_ports_list: | ||
appl_db_keys = db.keys(appl_db.APPL_DB, "PORT_TABLE:%s" % intf_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
break #427 again
Include below commits sonic-swss-common ``` 83d3351 2021-04-22 | [swig] fix ConfigDBConnector.db_name (sonic-net#483) [Qi Luo] fdf296f 2021-04-09 | Fix: ConfigDBConnector call super init with proper parameter name (sonic-net#470) [Qi Luo] 4f580e3 2021-03-26 | [swig] translate SonicV2Connector::keys return type from C++ vector<string> to Python list (sonic-net#468) [Qi Luo] ``` sonic-snmpagent ``` c160c2b 2021-08-04 | CPU Spike because of redundant and flooded keyspace notifis handled (sonic-net#230) [Vivek Reddy] a4dd3bf 2021-08-03 | Non-block reading counters to tolerate corrupted/delayed counters in COUNTERS_DB (sonic-net#231) [Qi Luo] ```
- What I did
Updated the file to add a "VLAN" column that reports "routed",
"VlanXXXX""trunk", or "PortChannelXXXX" depending on how that interface is configured. This is how Arista/Cisco report on this command.Also added PortChannels to the bottom on the command like Cisco/Arista.
- How I did it
Updated the intfutil file to add additonal methods to support this.
- How to verify it
run the "show int status" command on the sonic systems.
- Previous command output (if the output of a command-line utility has changed)
- New command output (if the output of a command-line utility has changed)