Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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#2313
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

@julmanglano
Copy link
Copy Markdown
Contributor

ISSUE TYPE
  • New Template Pull Request
COMPONENT

hp_procurve, show lldp info local-device

SUMMARY

Adds a new template for the HP/Aruba ProCurve show lldp info local-device command. 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_DESCRIPTION has two fallback rules: when the description
starts with the vendor token (ProCurve|HP|Aruba), the part-number
is captured separately into MODEL; otherwise the whole string is
captured into SYSTEM_DESCRIPTION.

CHASSIS_ID is anchored on \S.*\S rather than \S+ because
ProCurve emits the chassis MAC in two different formats depending on
firmware:

  • compact dash-separated: 548028-aabbcf (stack/newer firmware)
  • space-separated bytes: 54 80 28 aa bb cd (standalone/older firmware)

The two fixtures cover both formats.

The LLDP Port Information section is acknowledged but not parsed
into capture groups (it would duplicate show lldp info remote-device
output — out of scope here).

Index entry inserted at the correct length-sorted position within the
hp_procurve block (length 47, between length-48 and length-45 rows).

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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.