hp_procurve_show_lldp_info_local-device: new template#2313
Open
julmanglano wants to merge 1 commit intonetworktocode:masternetworktocode/ntc-templates:masterfrom
julmanglano:pr/hp-procurve-show-lldp-info-local-devicejulmanglano/ntc-templates:pr/hp-procurve-show-lldp-info-local-deviceCopy head branch name to clipboard
Open
hp_procurve_show_lldp_info_local-device: new template#2313julmanglano wants to merge 1 commit intonetworktocode:masternetworktocode/ntc-templates:masterfrom julmanglano:pr/hp-procurve-show-lldp-info-local-devicejulmanglano/ntc-templates:pr/hp-procurve-show-lldp-info-local-deviceCopy head branch name to clipboard
julmanglano wants to merge 1 commit intonetworktocode:masternetworktocode/ntc-templates:masterfrom
julmanglano:pr/hp-procurve-show-lldp-info-local-devicejulmanglano/ntc-templates:pr/hp-procurve-show-lldp-info-local-deviceCopy head branch name to clipboard
Conversation
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.
ISSUE TYPE
COMPONENT
hp_procurve,
show lldp info local-deviceSUMMARY
Adds a new template for the HP/Aruba ProCurve
show lldp info local-devicecommand. Captures the device's own LLDP advertisement —chassis info, system name/description, capabilities, and management
address.
Capture groups (cross-vendor aligned with other LLDP templates):
CHASSIS_TYPE, CHASSIS_ID, SYSTEM_NAME, SYSTEM_DESCRIPTION, MODEL,
CAPABILITIES_SUPPORTED, CAPABILITIES_ENABLED, MGMT_ADDRESS_TYPE,
MGMT_ADDRESS.
SYSTEM_DESCRIPTIONhas two fallback rules: when the descriptionstarts with the vendor token (
ProCurve|HP|Aruba), the part-numberis captured separately into
MODEL; otherwise the whole string iscaptured into
SYSTEM_DESCRIPTION.CHASSIS_IDis anchored on\S.*\Srather than\S+becauseProCurve emits the chassis MAC in two different formats depending on
firmware:
548028-aabbcf(stack/newer firmware)54 80 28 aa bb cd(standalone/older firmware)The two fixtures cover both formats.
The
LLDP Port Informationsection is acknowledged but not parsedinto capture groups (it would duplicate
show lldp info remote-deviceoutput — out of scope here).
Index entry inserted at the correct length-sorted position within the
hp_procurveblock (length 47, between length-48 and length-45 rows).