diff --git a/ntc_templates/templates/aruba_os_show_ap_bss-table_details.textfsm b/ntc_templates/templates/aruba_os_show_ap_bss-table_details.textfsm new file mode 100644 index 0000000000..2b152f5588 --- /dev/null +++ b/ntc_templates/templates/aruba_os_show_ap_bss-table_details.textfsm @@ -0,0 +1,36 @@ +Value BSS ([a-fA-F0-9]{2}(:[a-fA-F0-9]{2}){5}) +Value ESS (\S+(\s\S+){0,}) +Value PORT (\S+) +Value IP_ADDRESS ((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])) +Value BAND (\S+) +Value CHANNEL (\S+) +Value TYPE (\S+) +Value CUR_CL (\S+) +Value AP_NAME (\S+) +Value IN_T (\S+) +Value TOT_T (\S+) +Value MTU (\S+) +Value ACL_STATE (\S+) +Value ACL (\S+) +Value FM (\S+) +Value FLAGS (\S+) +Value CLUSTER (\S+) +Value ACTIVE_CLIENTS (\S+) +Value STANDBY_CLIENTS (\S+) +Value DATAZONE (\S+) + +Start + ^${BSS}\s+${ESS}\s+${PORT}\s+${IP_ADDRESS}\s+${BAND}\s+${CHANNEL}\s+${TYPE}\s+${CUR_CL}\s+${AP_NAME}\s+${IN_T}\s+${TOT_T}\s+${MTU}\s+${ACL_STATE}\s+${ACL}\s+${FM}\s+${FLAGS}\s+${CLUSTER}\s+${ACTIVE_CLIENTS}\s+${STANDBY_CLIENTS}\s+${DATAZONE}\s*$$ -> Record + ^Aruba AP + ^.+\.+ + ^bss + ^fm + ^\s*$$ + ^\s+ + ^cluster + ^Channel + ^"Spectrum" + ^Num + ^Flags + ^-+ + ^. -> Error diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index b15db59b51..c02c9c92d1 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -89,6 +89,7 @@ aruba_aoscx_show_bfd_all-vrfs.textfsm, .*, aruba_aoscx, sh[[ow]] bf[[d]] a[[ll-v aruba_aoscx_show_vsf_detail.textfsm , .*, aruba_aoscx, sh[[ow]] vsf d[[etail]] aruba_aoscx_show_interface.textfsm , .*, aruba_aoscx, sh[[ow]] int[[erface]] +aruba_os_show_ap_bss-table_details.textfsm, .*, aruba_os, show ap bss-table details aruba_os_show_ipv6_interface_brief.textfsm, .*, aruba_os, sh[[ow]] ipv6 in[[terface]] b[[rief]] aruba_os_show_ip_interface_brief.textfsm, .*, aruba_os, sh[[ow]] ip in[[terface]] b[[rief]] aruba_os_show_ap_radio-database.textfsm, .*, aruba_os, show ap radio-database diff --git a/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details.raw b/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details.raw new file mode 100644 index 0000000000..c470546885 --- /dev/null +++ b/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details.raw @@ -0,0 +1,20 @@ +fm (forward mode): T-Tunnel, S-Split, D-Decrypt Tunnel, B-Bridge (s-standard, p-persistent, b-backup, a-always), n-anyspot + +cluster (cluster role): U-UAC, A-AAC, sU-Standby UAC, sA-Standby AAC + +Aruba AP BSS Table +------------------ +bss ess port ip band/ht-mode/bandwidth ch/EIRP/max-EIRP type cur-cl ap name in-t(s) tot-t mtu acl-state acl fm flags cluster active-clients standby-clients datazone +--- --- ---- -- ---------------------- ---------------- ---- ------ ------- ------- ----- --- --------- --- -- ----- ------- -------------- --------------- -------- +aa:bb:cc:dd:ee:ff test1 N/A 192.168.1.2 5GHz/HE/40MHz 136-/19.0/27.1 ap 0 test1-ap 0 11h:0m:35s 1500 - 2 T KrT A 0 0 no +aa:bb:cc:dd:ee:fa test1 N/A 192.168.1.2 2.4GHz/HE/20MHz 6/9.0/26.9 ap 0 test1-ap 0 11h:1m:17s 1500 - 119 T KT A 0 0 no +aa:bb:cc:dd:ee:fb test1 N/A 192.168.1.2 6GHz/HE/160MHz 197S/16.0/24.3 ap 0 test1-ap 0 11h:0m:56s 1500 - 119 T KT A 0 0 no +aa:bb:cc:dd:ee:fc multi word ssid N/A 192.168.1.3 2.4GHz/HE/20MHz 6/9.0/26.9 ap 0 test2-ap 0 11h:0m:57s 1500 - 2 T KrT A 0 0 no +aa:bb:cc:dd:ee:fd test 2 N/A 192.168.1.3 5GHz/HE/40MHz 120-/19.0/28.7 ap 0 test2-ap 0 11h:1m:28s 1500 - 119 T KT A 0 0 no + +Channel followed by "*" indicates channel selected due to unsupported configured channel. +"Spectrum" followed by "^" indicates Local Spectrum Override in effect. + +fm (forward mode): T-Tunnel, S-Split, D-Decrypt Tunnel, B-Bridge (s-standard, p-persistent, b-backup, a-always), n-anyspot + +cluster (cluster role): U-UAC, A-AAC, sU-Standby UAC, sA-Standby AAC diff --git a/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details.yml b/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details.yml new file mode 100644 index 0000000000..fd56bc77ca --- /dev/null +++ b/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details.yml @@ -0,0 +1,102 @@ +--- +parsed_sample: + - bss: "aa:bb:cc:dd:ee:ff" + ess: "test1" + port: "N/A" + ip_address: "192.168.1.2" + band: "5GHz/HE/40MHz" + channel: "136-/19.0/27.1" + type: "ap" + cur_cl: "0" + ap_name: "test1-ap" + in_t: "0" + tot_t: "11h:0m:35s" + mtu: "1500" + acl_state: "-" + acl: "2" + fm: "T" + flags: "KrT" + cluster: "A" + active_clients: "0" + standby_clients: "0" + datazone: "no" + - bss: "aa:bb:cc:dd:ee:fa" + ess: "test1" + port: "N/A" + ip_address: "192.168.1.2" + band: "2.4GHz/HE/20MHz" + channel: "6/9.0/26.9" + type: "ap" + cur_cl: "0" + ap_name: "test1-ap" + in_t: "0" + tot_t: "11h:1m:17s" + mtu: "1500" + acl_state: "-" + acl: "119" + fm: "T" + flags: "KT" + cluster: "A" + active_clients: "0" + standby_clients: "0" + datazone: "no" + - bss: "aa:bb:cc:dd:ee:fb" + ess: "test1" + port: "N/A" + ip_address: "192.168.1.2" + band: "6GHz/HE/160MHz" + channel: "197S/16.0/24.3" + type: "ap" + cur_cl: "0" + ap_name: "test1-ap" + in_t: "0" + tot_t: "11h:0m:56s" + mtu: "1500" + acl_state: "-" + acl: "119" + fm: "T" + flags: "KT" + cluster: "A" + active_clients: "0" + standby_clients: "0" + datazone: "no" + - bss: "aa:bb:cc:dd:ee:fc" + ess: "multi word ssid" + port: "N/A" + ip_address: "192.168.1.3" + band: "2.4GHz/HE/20MHz" + channel: "6/9.0/26.9" + type: "ap" + cur_cl: "0" + ap_name: "test2-ap" + in_t: "0" + tot_t: "11h:0m:57s" + mtu: "1500" + acl_state: "-" + acl: "2" + fm: "T" + flags: "KrT" + cluster: "A" + active_clients: "0" + standby_clients: "0" + datazone: "no" + - bss: "aa:bb:cc:dd:ee:fd" + ess: "test 2" + port: "N/A" + ip_address: "192.168.1.3" + band: "5GHz/HE/40MHz" + channel: "120-/19.0/28.7" + type: "ap" + cur_cl: "0" + ap_name: "test2-ap" + in_t: "0" + tot_t: "11h:1m:28s" + mtu: "1500" + acl_state: "-" + acl: "119" + fm: "T" + flags: "KT" + cluster: "A" + active_clients: "0" + standby_clients: "0" + datazone: "no"