Skip to content

Commit

Permalink
add ale_aos8_show_spantree_ports
Browse files Browse the repository at this point in the history
  • Loading branch information
jefvantongerloo committed Jun 28, 2022
1 parent 8c58ea4 commit aeb509a
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ parsed result
| show snmp station | :heavy_check_mark: | :heavy_check_mark: |
| show snmp community map | :heavy_check_mark: | `alias: show snmp community-map` |
| show snmp community-map | `alias: show snmp community map` | :heavy_check_mark: |
| show spantree ports | :x: | :heavy_check_mark: |
| show system | :heavy_check_mark: | :heavy_check_mark: |
| show transceivers | :x: | :heavy_check_mark: |
| show vlan | :heavy_check_mark: | :heavy_check_mark: |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Vlan Port Oper Status Path Cost Role Loop Guard Note
-----+-------+------------+---------+-------+----------+------
1 1/1/7 DIS 0 DIS DIS
3200 0/1 FORW 1 DESG DIS
3200 0/32 FORW 3 DESG DIS
3201 1/1/15 FORW 4 DESG DIS
3201 1/1/16 FORW 4 DESG DIS
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
- cist_param: '1'
port: '1/1/7'
oper_status: 'DIS'
path_cost: '0'
role: 'DIS'
loop_guard: 'DIS'
note: ''
- cist_param: '3200'
port: '0/1'
oper_status: 'FORW'
path_cost: '1'
role: 'DESG'
loop_guard: 'DIS'
note: ''
- cist_param: '3200'
port: '0/32'
oper_status: 'FORW'
path_cost: '3'
role: 'DESG'
loop_guard: 'DIS'
note: ''
- cist_param: '3201'
port: '1/1/15'
oper_status: 'FORW'
path_cost: '4'
role: 'DESG'
loop_guard: 'DIS'
note: ''
- cist_param: '3201'
port: '1/1/16'
oper_status: 'FORW'
path_cost: '4'
role: 'DESG'
loop_guard: 'DIS'
note: ''
15 changes: 15 additions & 0 deletions textfsm_aos/templates/ale_aos8_show_spantree_ports.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Value cist_param (\d{1,4})
Value port ((\d{1,2}\/)+\d*)
Value oper_status (\w+)
Value path_cost (\d+)
Value role (\w+)
Value loop_guard (ENA|DIS)
Value note (.*)

Start
^\s+(Bridge|Msti|Vlan)\s+Port\s+Oper Status\s+Path Cost\s+Role\s+Loop Guard\s+Note$$
^[-+\+]+\s*$$ -> Spantree_ports

Spantree_ports
^\s+${cist_param}\s+${port}\s+${oper_status}\s+${path_cost}\s+${role}\s+${loop_guard}\s+${note}\s*$$ -> 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 @@ -83,6 +83,8 @@
platform: ale_aos6
- command: show snmp community-map
platform: ale_aos8
- command: show spantree ports
platform: ale_aos8
- command: show system
platform: ale_aos6
- command: show system
Expand Down

0 comments on commit aeb509a

Please sign in to comment.