-
Notifications
You must be signed in to change notification settings - Fork 760
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 |
|
cisco_nxos_show_interface5.raw ended up in the wrong directory sh_ip_interface, so I moved it. I noticed 4.raw in the Arista PR so I pulled a copy of it to this PR only to find it seems to be the same file. 🙂 I noticed some of those raw files are around 2500+ lines huge. We can likely get away with much less than that and still have test coverage so I'm going to whittle the file size down. Please say something if there were certain sections of those files you felt were unique to the existing test data. For example, certainly the port-channel members bit required unique changes to accommodate. I also had to monkey with converting that raw file from DOS format to Unix so we didn't end up with some unexpected characters (see below). - interface: "\uFEFFEthernet1/1"
+ interface: "Ethernet1/1" 🤘 😁 |
We might be at a point to begin discussing the capture group names. (No need to make changes right away.) I'm of the opinion that we should utilize the existing capture group names to maintain consistency and normalization across multiple vendors (where possible). So this could mean the Hopefully we can get a few more voices in here for a wider conversation. |
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. |
changes made referencing this issue https://github.com/networktocode/ntc-templates/issues/2108#issuecomment-2833475053