Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ale_aos8_show_linkagg #55

Merged
merged 1 commit into from
Jun 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- aos8 - `show arp` [#54](https://github.com/jefvantongerloo/textfsm-aos/pull/54)
- aos8 - `show interfaces` [#53](https://github.com/jefvantongerloo/textfsm-aos/pull/53)
- aos8 - `show linkagg` [#55](https://github.com/jefvantongerloo/textfsm-aos/pull/55)
- aos8 - `show port-security brief` [#51](https://github.com/jefvantongerloo/textfsm-aos/pull/51)
- aos8 - `show qos port` [#52](https://github.com/jefvantongerloo/textfsm-aos/pull/52)

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ parsed result
| show ip interface | :heavy_check_mark: | :heavy_check_mark: |
| show ip route | :heavy_check_mark: | `alias: show ip routes` |
| show ip routes | `alias: show ip route` | :heavy_check_mark: |
| show linkagg | :x: | :heavy_check_mark: |
| show lld remote system | :heavy_check_mark: | :x: |
| show log events | :x: | :heavy_check_mark: |
| show mac-address-table | :heavy_check_mark: | `alias: show mac-learning` |
Expand Down
5 changes: 5 additions & 0 deletions tests/ale_aos8_show_linkagg/ale_aos8_show_linkagg.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

Number Aggregate SNMP Id Size Admin State Oper State Att/Sel Ports
-------+-------------+---------+----+------------+--------------+-------------
1 Dynamic 40000001 4 ENABLED UP 2 2
32 Dynamic 40000032 4 ENABLED UP 2 2
17 changes: 17 additions & 0 deletions tests/ale_aos8_show_linkagg/ale_aos8_show_linkagg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
- number: '1'
aggregate: 'Dynamic'
snmp_id: '40000001'
size: '4'
admin_state: 'ENABLED'
oper_state: 'UP'
att_ports: '2'
sel_ports: '2'
- number: '32'
aggregate: 'Dynamic'
snmp_id: '40000032'
size: '4'
admin_state: 'ENABLED'
oper_state: 'UP'
att_ports: '2'
sel_ports: '2'
16 changes: 16 additions & 0 deletions textfsm_aos/templates/ale_aos8_show_linkagg.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Value Key,Required number (\d{1,3})
Value aggregate (Static|Dynamic|Loopback)
Value snmp_id (\d+)
Value size (\d+)
Value admin_state (ENABLED|DISABLED)
Value oper_state (UP|DOWN)
Value att_ports (\d+)
Value sel_ports (\d+)

Start
^Number\s+Aggregate\s+SNMP Id\s+Size\s+Admin State\s+Oper State\s+Att\/Sel Ports$$
^[-+\+]+\s*$$ -> Linkagg

Linkagg
^\s+${number}\s+${aggregate}\s+${snmp_id}\s+${size}\s+${admin_state}\s+${oper_state}\s+${att_ports}\s+${sel_ports}$$ -> Record
^. -> Error
2 changes: 2 additions & 0 deletions textfsm_aos/templates/templates_index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
platform: ale_aos6
- command: show ip routes
platform: ale_aos8
- command: show linkagg
platform: ale_aos8
- command: show lldp remote-system
platform: ale_aos6
- command: show log events
Expand Down