-
Notifications
You must be signed in to change notification settings - Fork 711
[201911]show interface counters for multi ASIC devices #1104
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
Conversation
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
This pull request introduces 1 alert and fixes 1 when merging fa44127 into 38f474e - view on LGTM.com new alerts:
fixed alerts:
|
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.
Minor comment. Also, LGTM is complaining that the swsssdk module is unused. You didn't add it in this PR, but maybe you could remove it?
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <[email protected]>
removed the unused import |
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.
Looks good to me. Please wait for other reviewers.
This pull request fixes 1 alert when merging 1ba78ee into 38f474e - view on LGTM.com fixed alerts:
|
self.db.connect(self.db.COUNTERS_DB) | ||
self.db.connect(self.db.APPL_DB) | ||
def __init__(self, namespace, display_option): | ||
self.db = None |
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.
self.config_db = None?
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.
config_db is not used in here.
mutli_asic_intf_counters_after_clear = """\ | ||
IFACE STATE RX_OK RX_BPS RX_UTIL RX_ERR RX_DRP RX_OVR TX_OK TX_BPS TX_UTIL TX_ERR TX_DRP TX_OVR | ||
-------------- ------- ------- -------- --------- -------- -------- -------- ------- -------- --------- -------- -------- -------- | ||
Ethernet0 U 0 0.00 B/s 0.00% 0 0 N/A 0 0.00 B/s 0.00% N/A N/A N/A |
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.
some non N/A would be good, not a big deal
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.
optional minor changes.
update the environment variable in the teardown (sonic-net#1101) Fix for show interface portchannel now working on 201911 (sonic-net#1105) [201911]show interface counters for multi ASIC devices (sonic-net#1104) Signed-off-by: Abhishek Dosi <[email protected]>
update the environment variable in the teardown (sonic-net#1101) Fix for show interface portchannel now working on 201911 (sonic-net#1105) Revert "Pfcstat (sonic-net#1097)" Revert " [201911]show interface counters for multi ASIC devices (sonic-net#1104)" Signed-off-by: Abhishek Dosi <[email protected]>
Revert "Revert " [201911]show interface counters for multi ASIC devices (sonic-net#1104)"" Revert "Revert "Pfcstat (sonic-net#1097)"" [show] Fix 'show int neighbor expected' (sonic-net#1106) Update argument for docker exec it->i (sonic-net#1118) Update to make config load/reload backward compatible. (sonic-net#1115) Handling deletion of Port Channel before deletion of its members (sonic-net#1062) Skip default route present in ASIC-DB but not in APP-DB. (sonic-net#1107) [CLI][PFCWD][Multi-ASIC] Added multi ASIC support to 'pfcwd' CLI (sonic-net#1102) [201911] Multi asic platform config interface portchannel, show transceiver (sonic-net#1087) [drop counters] Fix configuration for counters with lowercase names (sonic-net#1103) Signed-off-by: Abhishek Dosi <[email protected]>
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan [email protected]
- What I did
port #1013 to 201911
Add support for multi ASIC CLI options for show interface portchannels
2 new options have added
[-n, --namespace] to allow user to display the information for given namespaces
If this option is not present the information from all the namespaces will be displayed
[-d, --display] to allow user to display information related both internal and external interfaces
If this option is not present only external interfaces/neighbors will be display
One single ASIC platform, this options are not valid, so the behavior remains unchanged
- How I did it
This new options are ignored for single ASIC platforms
- How to verify it
Help menu
show interface counters for all ports in multi ASIC device
**show interface counters for specific ASIC **
Counters for internal and external interfaces
- 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)