forked from networktocode/ntc-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add aruba_os show ap bss-table details (networktocode#1147)
* fix for 1051 * aruba_os_show_ap_radio-database * aruba_os_show_ap_database_long * aruba_os show ap bss-table details
- Loading branch information
hagleyj
authored
Dec 15, 2022
1 parent
61a66db
commit 2a1cbca
Showing
4 changed files
with
159 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
ntc_templates/templates/aruba_os_show_ap_bss-table_details.textfsm
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,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 |
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
20 changes: 20 additions & 0 deletions
20
tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details.raw
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,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 |
102 changes: 102 additions & 0 deletions
102
tests/aruba_os/show_ap_bss-table_details/aruba_os_show_ap_bss-table_details.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,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" |