Skip to content

Commit

Permalink
Merge pull request #119 from jefvantongerloo/ale_aos8_show_spb_services
Browse files Browse the repository at this point in the history
Ale aos8 show spb services
  • Loading branch information
jefvantongerloo authored Nov 14, 2024
2 parents 7572970 + c9997a6 commit a806715
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Added CLI commands

- aos8 - `show service` [#118](https://github.com/jefvantongerloo/textfsm-aos/pull/118)
- aos8 - `show service spb` [#119](https://github.com/jefvantongerloo/textfsm-aos/pull/119)

### Added

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ Due to sensitive information the gathered live data for integration testing is s
| show running-directory | :x: | :heavy_check_mark: |
| show qos log | :x: | :heavy_check_mark: |
| show services | :x: | :heavy_check_mark: |
| show services spb | :x: | :heavy_check_mark: |
| 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: |
Expand Down
11 changes: 11 additions & 0 deletions tests/ale_aos8_show_service_spb/ale_aos8_show_service_spb.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Legend: * denotes a dynamic object
SPB Service Info
SystemId : e8e7.32e6.c9a1, SrcId : 0x6c9a1, SystemName : net-swi-0001

SAP Bind MCast
ServiceId Adm Oper Stats Count Count Isid BVlan Mode (T/R)
-----------+----+----+-----+-------+-------+---------+-----+--------------
30001 Up Up Y 0 9 130001 4001 Headend (0/0)
30020 Up Up Y 20 9 130020 4001 Headend (0/0)

Total Services: 2
27 changes: 27 additions & 0 deletions tests/ale_aos8_show_service_spb/ale_aos8_show_service_spb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
- system_id: 'e8e7.32e6.c9a1'
src_id: '0x6c9a1'
system_name: 'net-swi-0001'
service_id: '30001'
adm: 'Up'
oper: 'Up'
stats: 'Y'
sap_count: '0'
bind_count: '9'
isid: '130001'
bvlan: '4001'
mcast_mode: 'Headend'
tr: '(0/0)'
- system_id: 'e8e7.32e6.c9a1'
src_id: '0x6c9a1'
system_name: 'net-swi-0001'
service_id: '30020'
adm: 'Up'
oper: 'Up'
stats: 'Y'
sap_count: '20'
bind_count: '9'
isid: '130020'
bvlan: '4001'
mcast_mode: 'Headend'
tr: '(0/0)'
27 changes: 27 additions & 0 deletions textfsm_aos/templates/ale_aos8_show_service_spb.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Value Filldown system_id (\S+)
Value Filldown src_id (\S+)
Value Filldown system_name (.+)
Value Required service_id (\d+)
Value adm (Up|Down)
Value oper (Up|Down)
Value stats (Y|N)
Value sap_count (\d+)
Value bind_count (\d+)
Value isid (\d+)
Value bvlan (\d+)
Value mcast_mode (Headend|Tandem|Hybrid)
Value tr (\(\d+\/\d+\))

Start
^Legend:\s+\*\s+denotes\s+a\s+dynamic\s+object$$
^SPB\s+Service\s+Info$$ -> System

System
^\s+SystemId\s+:\s+${system_id},\s+SrcId\s+:\s+${src_id},\s+SystemName\s+:\s+${system_name}$$ -> Record
^ServiceId\s+Type\s+Adm\s+Oper\s+Stats\s+Count\s+Count\s+Description$$
^[-+\+]+\s*$$ -> Services

Services
^${service_id}\s+${adm}\s+${oper}\s+${stats}\s+${sap_count}\s+${bind_count}\s+${isid}\s+${bvlan}\s+${mcast_mode}\s+${tr}$$ -> Record
^Total Services: \d*$$
^. -> 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_aos8
- command: show service
platform: ale_aos8
- command: show service spb
platform: ale_aos8
- command: show snmp station
platform: ale_aos6
- command: show snmp station
Expand Down

0 comments on commit a806715

Please sign in to comment.