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 index 2b152f5588..19565890e9 100644 --- a/ntc_templates/templates/aruba_os_show_ap_bss-table_details.textfsm +++ b/ntc_templates/templates/aruba_os_show_ap_bss-table_details.textfsm @@ -2,25 +2,28 @@ 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 BAND (((2.4|5|6).*z)|N/A) 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 MTU ((\d+|N/A|.*?)) +Value PHY (\S+) Value ACL_STATE (\S+) Value ACL (\S+) Value FM (\S+) -Value FLAGS (\S+) -Value CLUSTER (\S+) +Value FLAGS ((\S+|.*?)) +Value CLUSTER ((A|sA|sU|U|N/A).*?) 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 + ^bss\s+ess\s+port\s+ip\s+phy\s* -> Before_ArubaOS_8_9 + ^bss\s+ess\s+port\s+ip\s+band\s* -> After_ArubaOS_8_9 ^Aruba AP ^.+\.+ ^bss @@ -34,3 +37,21 @@ Start ^Flags ^-+ ^. -> Error + + +Before_ArubaOS_8_9 + ^-+\s+-+ + ^${BSS}\s+${ESS}\s+${PORT}\s+${IP_ADDRESS}\s+${PHY}\s+${TYPE}\s+${CHANNEL}\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+ -> Record + ^Aruba AP + ^-\s* + ^bss + ^Channel -> Start + ^Num -> End + ^. -> Error + +After_ArubaOS_8_9 + ^-+\s+-+ + ^${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 + ^Channel -> Start + ^Num -> End + ^. -> Error \ No newline at end of file diff --git a/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details2.raw b/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details2.raw new file mode 100644 index 0000000000..e106fe79eb --- /dev/null +++ b/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details2.raw @@ -0,0 +1,14 @@ +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 phy type ch/EIRP/max-EIRP 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.0.1 g-HE ap 1/14.0/24.7 2 test1-ap 9d:11h:29m:4s 1500 - 2 T T U (AAC=192.168.0.21) 1 0 no +aa:bb:cc:dd:ee:fa test1 N/A 192.168.0.1 g-HT ap 1/12.0/21.1 0 test1-ap 0 204d:0h:47m:6s 1500 - 2 T A 0 0 no +aa:bb:cc:dd:ee:fb multi word ssid N/A 192.168.0.2 a-VHT ap 100/17.0/30.0 29 test2-ap 0 3h:43m:36s 1500 - 2 T T U sU (AAC=192.168.0.30) 7 7 no +aa:bb:cc:dd:ee:fc test3 N/A 192.168.0.3 g-HE ap 1/14.0/24.7 0 test1-ap3 0 16d:1h:14m:48s 1500 - 2 T T A 0 0 no +aa:bb:cc:dd:ee:fd test3 N/A 192.168.0.3 g-HE ap 11/14.0/24.7 0 test1-ap3 0 26d:2h:7m:52s 1500 - 2 T T A 0 0 no + diff --git a/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details2.yml b/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details2.yml new file mode 100644 index 0000000000..ca32d8dc3b --- /dev/null +++ b/tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details2.yml @@ -0,0 +1,107 @@ +--- +parsed_sample: + - acl: "T" + acl_state: "2" + active_clients: "" + ap_name: "test1-ap" + band: "" + bss: "aa:bb:cc:dd:ee:ff" + channel: "1/14.0/24.7" + cluster: "U" + cur_cl: "2" + datazone: "" + ess: "test1" + flags: "" + fm: "T" + in_t: "9d:11h:29m:4s" + ip_address: "192.168.0.1" + mtu: "-" + phy: "g-HE" + port: "N/A" + standby_clients: "" + tot_t: "1500" + type: "ap" + - acl: "2" + acl_state: "-" + active_clients: "" + ap_name: "test1-ap" + band: "" + bss: "aa:bb:cc:dd:ee:fa" + channel: "1/12.0/21.1" + cluster: "A" + cur_cl: "0" + datazone: "" + ess: "test1" + flags: "" + fm: "T" + in_t: "0" + ip_address: "192.168.0.1" + mtu: "1500" + phy: "g-HT" + port: "N/A" + standby_clients: "" + tot_t: "204d:0h:47m:6s" + type: "ap" + - acl: "2" + acl_state: "-" + active_clients: "" + ap_name: "test2-ap" + band: "" + bss: "aa:bb:cc:dd:ee:fb" + channel: "100/17.0/30.0" + cluster: "U" + cur_cl: "29" + datazone: "" + ess: "multi word ssid" + flags: "T" + fm: "T" + in_t: "0" + ip_address: "192.168.0.2" + mtu: "1500" + phy: "a-VHT" + port: "N/A" + standby_clients: "" + tot_t: "3h:43m:36s" + type: "ap" + - acl: "2" + acl_state: "-" + active_clients: "" + ap_name: "test1-ap3" + band: "" + bss: "aa:bb:cc:dd:ee:fc" + channel: "1/14.0/24.7" + cluster: "A" + cur_cl: "0" + datazone: "" + ess: "test3" + flags: "T" + fm: "T" + in_t: "0" + ip_address: "192.168.0.3" + mtu: "1500" + phy: "g-HE" + port: "N/A" + standby_clients: "" + tot_t: "16d:1h:14m:48s" + type: "ap" + - acl: "2" + acl_state: "-" + active_clients: "" + ap_name: "test1-ap3" + band: "" + bss: "aa:bb:cc:dd:ee:fd" + channel: "11/14.0/24.7" + cluster: "A" + cur_cl: "0" + datazone: "" + ess: "test3" + flags: "T" + fm: "T" + in_t: "0" + ip_address: "192.168.0.3" + mtu: "1500" + phy: "g-HE" + port: "N/A" + standby_clients: "" + tot_t: "26d:2h:7m:52s" + type: "ap"