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.
New Template: WLC - show interface summary (networktocode#539)
- Loading branch information
1 parent
c47da0e
commit eccf53b
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
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 @@ | ||
Value Filldown INT_COUNT (\d+) | ||
Value Required NAME (\S+) | ||
Value PORT (\S+) | ||
Value VLAN (\S+) | ||
Value IP_ADDR (([\d1-9]+\.?){4}) | ||
Value TYPE (\S+) | ||
Value AP_MGR (\S+) | ||
Value GUEST (\S+) | ||
|
||
Start | ||
^\s+Number\sof\sInterfaces\.*\s${INT_COUNT}s*$$ | ||
^Interface\s+Name\s+Port\s+Vlan\s+Id\s+IP\s+Address\s+Type\s+Ap\s+Mgr\s+Guest -> Type_One | ||
^\s*$$ | ||
^. -> Error | ||
|
||
Type_One | ||
^-+\s | ||
^${NAME}\s\s+${PORT}\s+${VLAN}\s+${IP_ADDR}\s+${TYPE}\s+${AP_MGR}\s+${GUEST} -> Record | ||
^\s*$$ | ||
^. -> 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
26 changes: 26 additions & 0 deletions
26
tests/cisco_wlc_ssh/show_interface_summary/cisco_wlc_ssh_show_interface_summary.parsed
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 @@ | ||
--- | ||
parsed_sample: | ||
- ap_mgr: 'Yes' | ||
guest: N/A | ||
int_count: '3' | ||
ip_addr: 192.168.1.11 | ||
name: management | ||
port: '1' | ||
type: Static | ||
vlan: untagged | ||
- ap_mgr: 'No' | ||
guest: N/A | ||
int_count: '3' | ||
ip_addr: 11.1.1.1 | ||
name: service-port | ||
port: N/A | ||
type: Static | ||
vlan: N/A | ||
- ap_mgr: 'No' | ||
guest: N/A | ||
int_count: '3' | ||
ip_addr: 1.1.1.1 | ||
name: virtual | ||
port: N/A | ||
type: Static | ||
vlan: N/A |
9 changes: 9 additions & 0 deletions
9
tests/cisco_wlc_ssh/show_interface_summary/cisco_wlc_ssh_show_interface_summary.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,9 @@ | ||
|
||
|
||
Number of Interfaces.......................... 3 | ||
|
||
Interface Name Port Vlan Id IP Address Type Ap Mgr Guest | ||
-------------------------------- ---- -------- --------------- ------- ------ ----- | ||
management 1 untagged 192.168.1.11 Static Yes N/A | ||
service-port N/A N/A 11.1.1.1 Static No N/A | ||
virtual N/A N/A 1.1.1.1 Static No N/A |