feat(hp_procurve): add show lldp info local-device template#2284
Open
molhamalnasr wants to merge 1 commit intonetworktocode:masterfrom
Open
feat(hp_procurve): add show lldp info local-device template#2284molhamalnasr wants to merge 1 commit intonetworktocode:masterfrom
molhamalnasr wants to merge 1 commit intonetworktocode:masterfrom
Conversation
Add new TextFSM template for parsing `show lldp info local-device` output on HP ProCurve / Aruba AOS-S switches. The template captures both the device header information and the per-port LLDP table. Values captured: - Header (Filldown): CHASSIS_TYPE, CHASSIS_ID, SYSTEM_NAME, DESCRIPTION, CAPABILITIES_SUPPORTED, CAPABILITIES, MGMT_TYPE, MGMT_ADDRESS - Port table: LOCAL_INTERFACE, PORT_TYPE, PORT_ID, PORT_DESCRIPTION Changes: - Add hp_procurve_show_lldp_info_local-device.textfsm template - Update index file with new entry - Add test data for VSF stacked switch (member/port format) - Add test data for standalone switch (simple port format)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Environment
Proposed Functionality
Add a new TextFSM template hp_procurve_show_lldp_info_local-device.textfsm for parsing the output of
show lldp info local-deviceon HP ProCurve / Aruba AOS-S switches.The template captures both the device header information and the per-port LLDP table:
CHASSIS_TYPE,CHASSIS_ID,SYSTEM_NAME,DESCRIPTION,CAPABILITIES_SUPPORTED,CAPABILITIES,MGMT_TYPE,MGMT_ADDRESSLOCAL_INTERFACE,PORT_TYPE,PORT_ID,PORT_DESCRIPTIONChanges included:
Use Case
The Nautobot Device Onboarding plugin runs the "Sync Devices from Network" job, which requires the output of
show lldp info local-devicefor HP ProCurve / Aruba AOS-S switches. Without a template to parse this command, the job fails during onboarding. This template enables successful device onboarding for anyone using HP ProCurve switches with Nautobot.Add new TextFSM template for parsing
show lldp info local-deviceoutput on HP ProCurve / Aruba AOS-S switches. The template captures both the device header information and the per-port LLDP table.