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.
Create aruba_os_show_ap_database_long (networktocode#1134)
* fix for 1051 * aruba_os_show_ap_radio-database * aruba_os_show_ap_database_long Co-authored-by: Jeff Hagley <[email protected]>
- Loading branch information
Showing
4 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
ntc_templates/templates/aruba_os_show_ap_database_long.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,26 @@ | ||
Value AP_NAME (\S+) | ||
Value GROUP (\S+) | ||
Value AP_MODEL (\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 STATUS (.+?) | ||
Value FLAGS (\S+) | ||
Value PRIMARY ((([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 STANDBY ((([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 MAC ([a-fA-F0-9]{2}(:[a-fA-F0-9]{2}){5}) | ||
Value SERIAL (\S+) | ||
Value PORT (.+?) | ||
Value FQLN (.+?) | ||
Value OUTER_IP (.+?) | ||
Value USER (.+?) | ||
|
||
Start | ||
^${AP_NAME}\s+${GROUP}\s+${AP_MODEL}\s+${IP_ADDRESS}\s+${STATUS}\s+${FLAGS}\s+${PRIMARY}\s+${STANDBY}\s+${MAC}\s+${SERIAL}\s+${PORT}\s+${FQLN}\s+${OUTER_IP}\s+${USER}\s*$$ -> Record | ||
^AP Database | ||
^.+\.+ | ||
^Name\s+Group\s+AP Type\s+IP Address\s+Status\s+Flags\s+Switch IP\s+Standby IP\s+Wired MAC Address\s+Serial #\s+Port\s+FQLN\s+Outer IP\s+User\s*$$ | ||
^Flags: | ||
^\s*$$ | ||
^\s+ | ||
^Total | ||
^-+ | ||
^. -> 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
23 changes: 23 additions & 0 deletions
23
tests/aruba_os/show_ap_database_long/aruba_os_show_ap_database_long.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,23 @@ | ||
|
||
AP Database | ||
----------- | ||
Name Group AP Type IP Address Status Flags Switch IP Standby IP Wired MAC Address Serial # Port FQLN Outer IP User | ||
---- ----- ------- ---------- ------ ----- --------- ---------- ----------------- -------- ---- ---- -------- ---- | ||
ap-building-1 building 635 192.168.1.1 Up 2d:17h:8m:4s 2Sf 192.168.2.2 192.168.2.3 cc:88:c7:11:22:33 CNM12345 N/A N/A N/A N/A | ||
ap-building-2 building 515 192.168.1.2 Up 2d:17h:8m:23s 2Sf 192.168.2.2 192.168.2.3 cc:88:c7:11:22:34 CNM12346 N/A N/A N/A N/A | ||
ap-building-3 building 505H 192.168.1.3 Up 2d:16h:57m:55s 2Sf 192.168.2.2 192.168.2.3 cc:88:c7:11:22:35 CNM12347 N/A N/A N/A N/A | ||
|
||
|
||
Flags: 1 = 802.1x authenticated AP use EAP-PEAP; 1+ = 802.1x use EST; 1- = 802.1x use factory cert | ||
2 = Using IKE version 2; 4 = WiFi Uplink | ||
B = Built-in AP; C = Cellular RAP; D = Dirty or no config | ||
E = Regulatory Domain Mismatch; F = AP failed 802.1x authentication | ||
G = No such group; I = Inactive; J = USB cert at AP; L = Unlicensed | ||
M = Mesh node | ||
N = Duplicate name; P = PPPoe AP; R = Remote AP; R- = Remote AP requires Auth | ||
S = Standby-mode AP; T = Thermal ShutDown; U = Unprovisioned; X = Maintenance Mode | ||
Y = Mesh Recovery | ||
b = bypass of AP1x timeout; c = CERT-based RAP; e = Custom EST cert; f = No Spectrum FFT support | ||
i = Indoor; o = Outdoor; l = LAG 802.3ad; m = Protocol Mismatch | ||
p = In deep-sleep status; r = Power Restricted; s = LACP striping; t = Temperature Restricted | ||
u = Custom-Cert RAP; z = Datazone AP |
44 changes: 44 additions & 0 deletions
44
tests/aruba_os/show_ap_database_long/aruba_os_show_ap_database_long.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,44 @@ | ||
--- | ||
parsed_sample: | ||
- ap_name: "ap-building-1" | ||
group: "building" | ||
ap_model: "635" | ||
ip_address: "192.168.1.1" | ||
status: "Up 2d:17h:8m:4s" | ||
flags: "2Sf" | ||
primary: "192.168.2.2" | ||
standby: "192.168.2.3" | ||
mac: "cc:88:c7:11:22:33" | ||
serial: "CNM12345" | ||
port: "N/A" | ||
fqln: "N/A" | ||
outer_ip: "N/A" | ||
user: "N/A" | ||
- ap_name: "ap-building-2" | ||
group: "building" | ||
ap_model: "515" | ||
ip_address: "192.168.1.2" | ||
status: "Up 2d:17h:8m:23s" | ||
flags: "2Sf" | ||
primary: "192.168.2.2" | ||
standby: "192.168.2.3" | ||
mac: "cc:88:c7:11:22:34" | ||
serial: "CNM12346" | ||
port: "N/A" | ||
fqln: "N/A" | ||
outer_ip: "N/A" | ||
user: "N/A" | ||
- ap_name: "ap-building-3" | ||
group: "building" | ||
ap_model: "505H" | ||
ip_address: "192.168.1.3" | ||
status: "Up 2d:16h:57m:55s" | ||
flags: "2Sf" | ||
primary: "192.168.2.2" | ||
standby: "192.168.2.3" | ||
mac: "cc:88:c7:11:22:35" | ||
serial: "CNM12347" | ||
port: "N/A" | ||
fqln: "N/A" | ||
outer_ip: "N/A" | ||
user: "N/A" |