Skip to content

Add aruba_aoscx show lldp neighbor info - #2341

Open
Ardeck wants to merge 1 commit into
networktocode:masterfrom
Ardeck:feat/aruba_aoscx_show_lldp_neighbor_info
Open

Add aruba_aoscx show lldp neighbor info#2341
Ardeck wants to merge 1 commit into
networktocode:masterfrom
Ardeck:feat/aruba_aoscx_show_lldp_neighbor_info

Conversation

@Ardeck

@Ardeck Ardeck commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a new TextFSM template to support parsing show lldp neighbor-info for Aruba AOS-CX switches.

Files Added / Modified

  • ntc_templates/templates/aruba_aoscx_show_lldp_neighbor_info.textfsm
  • ntc_templates/templates/index
  • tests/aruba_aoscx/show_lldp_neighbor_info/aruba_aoscx_show_lldp_neighbor_info.raw
  • tests/aruba_aoscx/show_lldp_neighbor_info/aruba_aoscx_show_lldp_neighbor_info.yml

Example CLI Output

LLDP Neighbor Information
=========================

Total Neighbor Entries          : 6
Total Neighbor Entries Deleted  : 69
Total Neighbor Entries Dropped  : 0
Total Neighbor Entries Aged-Out : 69

LOCAL-PORT  CHASSIS-ID          PORT-ID                     PORT-DESC                    TTL      SYS-NAME
-----------------------------------------------------------------------------------------------------------
1/1/1       80:8d:b7:c7:33:ec   80:8d:b7:c7:33:ec           bond0                        120      SwitchA
1/1/5       192.168.202.193     38:25:17:ae:be:04           1                            120      Polycom VVX 150
1/1/6       192.168.202.200     38:24:27:ae:c0:77           1                            120      Polycom VVX 150
1/1/7       192.168.202.174     38:24:37:ae:bf:9e           1                            120      Polycom VVX 150
1/1/9       FW                  e5:b7:7a:f2:d2:66                                        3601
1/1/49      44:5b:ed:94:23:00   1/5/20                      SwitchB                      120      SwitchB

Parsed Data Structure

[
  {
    "local_port": "1/1/1",
    "chassis_id": "80:8d:b7:c7:33:ec",
    "port_id": "80:8d:b7:c7:33:ec",
    "port_desc": "bond0",
    "ttl": "120",
    "sys_name": "SwitchA"
  },
  {
    "local_port": "1/1/5",
    "chassis_id": "192.168.202.193",
    "port_id": "38:25:17:ae:be:04",
    "port_desc": "1",
    "ttl": "120",
    "sys_name": "Polycom VVX 150"
  },
  {
    "local_port": "1/1/9",
    "chassis_id": "FW",
    "port_id": "e5:b7:7a:f2:d2:66",
    "port_desc": "",
    "ttl": "3601",
    "sys_name": ""
  },
  {
    "local_port": "1/1/49",
    "chassis_id": "44:5b:ed:94:23:00",
    "port_id": "1/5/20",
    "port_desc": "SwitchB",
    "ttl": "120",
    "sys_name": "SwitchB"
  }
]

Verification

  • Generated YAML test files (invoke gen-yaml-folder)
  • Tested with poetry run pytest -k aruba_aoscx_show_lldp_neighbor_info (All tests pass)
  • Passed style and quality checks (invoke yamllint black flake8)

---

@mjbear mjbear changed the title feat(aruba_aoscx): add aruba_aoscx_show_lldp_neighbor_info template Add aruba_aoscx show lldp neighbor info Jul 30, 2026
@mjbear

mjbear commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

@Ardeck
The detailed version show lldp neighbor info detail already exists.

Is there something that template doesn't provide that this one does?

@Ardeck

Ardeck commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

That should not be the case.
Long story short, I use this command because it is more standardized over multiple vendor/version, it is simpler/faster to process.

However after some testing, I found some issue with the detail template when there are more than one entry on the interface. I should create a fix for this also but that would probably be breaking because entries would have to be moved to lists...

That was not my intention when creating this template, as it is for convenience for some code downstreams but it still has some usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants