Skip to content
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

Normalize CDP, LLDP, ISDP capture groups #1469

Merged
merged 41 commits into from
Jun 21, 2024

Conversation

mjbear
Copy link
Contributor

@mjbear mjbear commented Sep 4, 2023

Normalization across several "discovery protocols", largely CDP and LLDP (though I did find broadcom_icos had ISDP as well). This huge effort started as a comment on #1405 and includes numerous capture group changes so it is likely the community will notice the breaking changes this PR brings.

Based off of #1468 so capture group documentation would end up in data_model.md

To the community: If I broke something, point it out, if I have time chances are I'll take ownership and fix it, but if not please realize I had good intentions and submit fix(es) in PR(s) to ntc-templates.

Hopefully all of this normalization brings positive change and improved usability for the project in the long term.

NOTE: it does seem like example raw Cisco IOS LLDP output had some data seemingly swapped (whether that's the LLDP sending or receiving end), but we end up with the output we have.

@mjbear
Copy link
Contributor Author

mjbear commented Jan 7, 2024

I am fixing up merge conflicts and putting this on @jvanderaa 's list 😅

@mjbear
Copy link
Contributor Author

mjbear commented Feb 21, 2024

ironed out some merge conflicts

@mjbear
Copy link
Contributor Author

mjbear commented Feb 21, 2024

rebasing off of current NTC master branch to help alleviate merge conflicts for the maintainers

@ryanmerolle
Copy link
Contributor

Is this close? Happy to help.

@mjbear
Copy link
Contributor Author

mjbear commented Jun 20, 2024

Hello @ryanmerolle,

This was waiting to be merged. (It was ready.)
I'll see if I can make time to rebase it off the current main branch so Josh doesn't have merge conflicts and so on.

Thank you

@jvanderaa
Copy link
Contributor

Thanks @mjbear I thought that I had all of them from earlier.

mjbear added 15 commits June 21, 2024 11:51
hp_procurve_show_cdp_neighbors_detail to normalize
juniper_junos_show_lldp_neighbors to normalize
hp_procurve_show_lldp_info_remote-device_detail to normalize
hp_procurve_show_lldp_info_remote-device_detail to normalize
hp_procurve_show_cdp_neighbors_detail to normalize
aruba_aoscx_show_lldp_neighbors-info_detail to normalize
…formation_verbose

 - replace NEIGHBOR_INTERFACE with NEIGHBOR_INTERFACE_DESCRIPTION
 - replace NEIGHBOR_PORT_ID with NEIGHBOR_INTERFACE
…in ipinfusion_ocnos_show_lldp_table to normalize
hp_procurve_show_lldp_info_remote-device_detail to normalize
mjbear added 25 commits June 21, 2024 12:08
…ances of system name

with NEIGHBOR_NAME to normalize
hp_procurve_show_cdp_neighbors_detail to normalize
hp_procurve_show_lldp_info_remote-device_detail to normalize
aruba_aoscx_show_lldp_neighbors-info_detail to normalize
LLDP templates
 - replace NEIGHBOR_PORTID with NEIGHBOR_INTERFACE
 - replace NEIGHBOR_DESCR with NEIGHBOR_DESCRIPTION
or LLDP templates
 - replace NEIGHBOR_PORTID with NEIGHBOR_INTERFACE
 - replace SYSTEM_DESCR with NEIGHBOR_DESCRIPTION
LLDP templates
 - replace CHASSIS_DESC with NEIGHBOR_DESCRIPTION
 - replace PORT_ID with NEIGHBOR_PORT_ID
…show_lldp_neighbors_detail

- normalize SOFTWARE_VERSION with NEIGHBOR_DESCRIPTION in cisco_ios_show_cdp_neighbors_detail
…how_cdp_neighbors_detail

- replace SOFTWARE_VERSION with NEIGHBOR_DESCRIPTION in cisco_wlc_ssh_show_cdp_neighbors_detail
hp_procurve_show_lldp_info_remote-device to normalize
…ghbors_detail

- replace MODEL with PLATFORM in cisco_ios_show_lldp_neighbors_detail
- replace MODEL_NAME with PLATFORM in huawei_vrp_display_lldp_neighbor
huawei_vrp_display_lldp_neighbor to normalize
- replace REMOTE_MANAGEMENT_ADDRESS with MGMT_ADDRESS in hp_procurve_show_lldp_info_remote-device_detail
- replace MGMT_ADDR with MGMT_ADDRESS in aruba_aoscx_show_lldp_neighbors-info_detail
- replace MGMT_IP with MGMT_ADDRESS in cisco_nxos and cisco_xr cdp template
- replace MANAGEMENT_IP with MGMT_ADDRESS in several templates

Note: Chose not to include "IP" in the capture group name because Arista data sometimes includes Ethernet MAC addresses
…ighbors_detail

add mgmt_address to data_model.md
broadcom_icos_show_lldp_remote-device_all to normalize
brocade_netiron show_lldp_neighbors_detail templates
- HOLD_TIME > HOLDTIME in brocade_fastiron_show_lldp_neighbors
- VERSION > NEIGHBOR_DESCRIPTION in cisco_nxos_show_cdp_neighbors_detail
- VERSION > NEIGHBOR_DESCRIPTION in cisco_xr_show_cdp_neighbors_detail
@mjbear mjbear force-pushed the normalize_cap_grp_cdp_lldp branch from 96d0b91 to fb98a56 Compare June 21, 2024 16:50
@mjbear
Copy link
Contributor Author

mjbear commented Jun 21, 2024

This has been rebased.

@jvanderaa jvanderaa merged commit 86f5d01 into networktocode:master Jun 21, 2024
14 checks passed
@mjbear mjbear deleted the normalize_cap_grp_cdp_lldp branch June 21, 2024 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants