diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b9c982..a8cf7ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 14eac22..642773e 100644 --- a/README.md +++ b/README.md @@ -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: | diff --git a/tests/ale_aos8_show_service_spb/ale_aos8_show_service_spb.txt b/tests/ale_aos8_show_service_spb/ale_aos8_show_service_spb.txt new file mode 100644 index 0000000..bc2f62a --- /dev/null +++ b/tests/ale_aos8_show_service_spb/ale_aos8_show_service_spb.txt @@ -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 \ No newline at end of file diff --git a/tests/ale_aos8_show_service_spb/ale_aos8_show_service_spb.yml b/tests/ale_aos8_show_service_spb/ale_aos8_show_service_spb.yml new file mode 100644 index 0000000..f921b4f --- /dev/null +++ b/tests/ale_aos8_show_service_spb/ale_aos8_show_service_spb.yml @@ -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)' \ No newline at end of file diff --git a/textfsm_aos/templates/ale_aos8_show_service_spb.textfsm b/textfsm_aos/templates/ale_aos8_show_service_spb.textfsm new file mode 100644 index 0000000..4b24f7a --- /dev/null +++ b/textfsm_aos/templates/ale_aos8_show_service_spb.textfsm @@ -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 \ No newline at end of file diff --git a/textfsm_aos/templates/templates_index.yml b/textfsm_aos/templates/templates_index.yml index 08c4b60..a12f5ce 100644 --- a/textfsm_aos/templates/templates_index.yml +++ b/textfsm_aos/templates/templates_index.yml @@ -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