-
Notifications
You must be signed in to change notification settings - Fork 764
Update nxos show interface #2112
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
base: master
Are you sure you want to change the base?
Update nxos show interface #2112
Conversation
Some output is formatted differently - Singular vs plural on error(s) - CRC is also seen as CRC/FCS - This caused some values not to be captured
Some lines definitely have leading whitespace so swapping from zero or more to one or more made sense.
@Mikeg2881 I've already found an instance where values wouldn't be captured since the formatting changed over time. 🤷♂️ Question: Is |
Yes they are in bytes. See below. Is there anything else i need to do on this or the other one i submitted?
|
Ok, some of the older output may not be in bytes, but I'll have to validate that.
If you locally worked on this, pull the changes that have been made to your branch ( Please add the Eth1/1 output that had runts/giants/CRC errors in a raw file (ex:
I have only looked at this one so far. |
Yeah, there are storm suppression packets in the output that follow Jumbo packet output. And adding another rule captures jumbo values that were otherwise not captured. The bandwidth rates existed before your changes, but I do want to point out (for discussion) that if there are multiple rates, only the second one is captured. If we were to change some of those capture groups to |
I am all for adding data as long as it doesn't produce a breaking change. |
Sounds good. In the meantime if you would add raw cli text and create the structured output (yaml) as hinted at earlier in this thread that would be greatly appreciated. |
cisco_nxos_show_interface.zip |
|
Lots and lots of formats have been added to this point to support various versions of output and attempt capture the data there's capture groups for. 😅 phew!!!!!!!!!!! 😇 |
To quote @Mikeg2881 in a conversation outside of this PR, "Also not apposed to ditching RX and TX. Keeping it uniform with other modules seems more logical". Thank you MG! It may take a moment to investigate each capture group, but the normalization will be beneficial in the long run! |
For example when searching for OVERRUN (or similarly GIANTS): Some templates do not have the RX/TX errors prefixed with However some templates do.
|
... snipped ...
Responding to myself. |
Important Unlike many of the other statistics, jumbo packets are present for both transmit and receive. This presents a capture group naming conflict if TX/RX were to be removed. Warning
Using the general consensus based off usage across most common templates (using grep findings)... Plural
Singular
No Precedent (Existing Example)
|
I'm for anything that is not both RX and TX not having the prefix, but where it is a stat for both RX and TX, to add those prefixes |
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.
I believe these capture groups to be in a good state.
Could I get a second review when there's time @jmcgill298?
Thank you!
changes made referencing this issue https://github.com/networktocode/ntc-templates/issues/2108#issuecomment-2833475053