-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from jefvantongerloo/ale_aos8_show_spb_services
Ale aos8 show spb services
- Loading branch information
Showing
6 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
tests/ale_aos8_show_service_spb/ale_aos8_show_service_spb.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
27
tests/ale_aos8_show_service_spb/ale_aos8_show_service_spb.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters