-
Notifications
You must be signed in to change notification settings - Fork 783
Fix new format of cisco_ios show cdp neigh detail #2260
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?
Fix new format of cisco_ios show cdp neigh detail #2260
Conversation
… options - and add tests
|
@Ardeck While not necessarily "bad", there is quite a bit of change here to the data structure. This non-backwards compatible nature of things constitutes a breaking change (example definition). We want to also keep in mind to maintain naming parity with LLDP for example. Admittedly I haven't combed through each piece of your PR yet. There might be a middle ground where we can reduce the level of incompatibility (as we're a ways off from a major release where breaking changes could be included). |
Hello, I completely understand, I hesitated before touching it but after I started, I tried to get the most of it. A ) New Format, Values
-TLV /Power Power is displayed differently, I did not find "Power Available TLV:"
I am not sure in which version these change was made are the previous template is probably very old. -Management address section was not captured B) Values changed
It was creating conflicts as Interface IP and Management IP can be different cf. 4.raw But there is confusion between IPv4 and IPv6 Same the regex for the value can be preswerved to the old values C) Value removed NEIGHBOR_DESCRIPTION is more problematic as I completely rewrote it for several reasons :
|
jvanderaa
left a comment
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 think the rest of these are making sense on the names, we may have to go update some of the other templates as we get this one merged in.
I'm a little worried about the NEIGHBOR_DESCRIPTION getting broken down, will we need to be updating this template quite a bit as new devices that come online since it is all free form fields.
| Value CAPABILITIES (.+?) | ||
| Value INTERFACE_IP (\d+\.\d+\.\d+\.\d+) | ||
| Value List INTERFACE_IPV6 ([0-9a-fA-F:]+) | ||
| Value MGMT_IP_ADDRESS (\d+\.\d+\.\d+\.\d+) |
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'd like to keep the MGMT_ADDRESS in lock step with LLDP neighbor outputs as well. So that these remain consistent across neighbor templates.
@Ardeck My reason for asking is to see if I have access to hardware that demonstrates these new format changes. Thank you for details! |
… options - and add tests
Summary
Update
cisco_ios_show_cdp_neighbors_detail.textfsmto handle new format and many new fieldsChanges
ntc_templates/templates/indexfor correct mapping.rawand.ymltest cases undertests/cisco_ios/show_cdp_neighbors_detail/Motivation
Current template is missing many parameters.
Validation
poetry run invoke testslocally — all tests pass..rawsamples.Notes
Scope limited to Cisco IOS show cdp neighbors detail.