Skip to content

Add aruba_aoscx_show_ip_interface_brief - #2340

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

Add aruba_aoscx_show_ip_interface_brief#2340
Ardeck wants to merge 1 commit into
networktocode:masterfrom
Ardeck:feat/aruba_aoscx_show_ip_interface_brief

Conversation

@Ardeck

@Ardeck Ardeck commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a new TextFSM template to support parsing show ip interface brief for Aruba AOS-CX switches.

Files Added / Modified

  • ntc_templates/templates/aruba_aoscx_show_ip_interface_brief.textfsm
  • ntc_templates/templates/index
  • tests/aruba_aoscx/show_ip_interface_brief/aruba_aoscx_show_ip_interface_brief.raw
  • tests/aruba_aoscx/show_ip_interface_brief/aruba_aoscx_show_ip_interface_brief.yml

Example CLI Output

Interface         IP Address             Interface Status
                                         link/admin
loopback1        192.168.216.15/24           up/up

vlan1            No Address                down/up

vlan300          192.168.200.13/24           up/up

vlan302          No Address                up/up

Parsed Data Structure

[
  {
    "interface": "loopback1",
    "ip_address": "192.168.216.15/24",
    "link_status": "up",
    "admin_status": "up"
  },
  {
    "interface": "vlan1",
    "ip_address": "No Address",
    "link_status": "down",
    "admin_status": "up"
  },
  {
    "interface": "vlan300",
    "ip_address": "192.168.200.13/24",
    "link_status": "up",
    "admin_status": "up"
  },
  {
    "interface": "vlan302",
    "ip_address": "No Address",
    "link_status": "up",
    "admin_status": "up"
  }
]

Verification

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

@mjbear

mjbear commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

@Ardeck
Some "brief" templates were created (on some platforms) before it became evident that this meant double the work to maintain a brief and a normal/detailed template.

So in this aoscx case, show ip interface vs show ip interface brief

If the normal (more verbose) version would suffice your use case, maybe it is amenable to template that instead?

Thank you for considering this suggestion.

@Ardeck

Ardeck commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

In this case, the job is done. I understand your thinking. I did not find any difference, but again for convenience, It is part of a bigger process, so it makes sense for me.

@mjbear mjbear changed the title feat(aruba_aoscx): add aruba_aoscx_show_ip_interface_brief template Add aruba_aoscx_show_ip_interface_brief Aug 8, 2026
@mjbear

mjbear commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Could show ip interface please be templated instead of the brief version?

https://arubanetworking.hpe.com/techdocs/AOS-CX/AOSCX-CLI-Bank/cli_8400/Content/Chp_IPDirBroad/IPDirBroad_cmds/sho-ip-int-ip-dir-bro.htm

This way the project only needs to maintain one template.

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