Skip to content

Commit

Permalink
New Template: WLC - show interface summary (networktocode#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
timjsmith24 authored and thomasblass committed Oct 25, 2020
1 parent c47da0e commit eccf53b
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
20 changes: 20 additions & 0 deletions templates/cisco_wlc_ssh_show_interface_summary.template
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
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ cisco_wlc_ssh_show_802.11a_cleanair_config.template, .*, cisco_wlc_ssh, sh[[ow]]
cisco_wlc_ssh_show_cdp_neighbors_detail.template, .*, cisco_wlc_ssh, sh[[ow]] c[[dp]] neig[[hbors]] det[[ail]]
cisco_wlc_ssh_show_rf-profile_summary.template, .*, cisco_wlc_ssh, sh[[ow]] rf-[[profile]] s[[ummary]]
cisco_wlc_ssh_show_ap_config_general.template, .*, cisco_wlc_ssh, sh[[ow]] ap con[[fig]] ge[[neral]]
cisco_wlc_ssh_show_interface_summary.template, .*, cisco_wlc_ssh, sh[[ow]] int[[erface]] s[[ummary]]
cisco_wlc_ssh_show_client_detail.template, .*, cisco_wlc_ssh, sh[[ow]] cl[[ient]] det[[ail]]
cisco_wlc_ssh_show_exclusionlist.template, .*, cisco_wlc_ssh, sh[[ow]] ex[[clusionlist]]
cisco_wlc_ssh_show_ap_summary.template, .*, cisco_wlc_ssh, sh[[ow]] ap sum[[mary]]
Expand Down
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
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

0 comments on commit eccf53b

Please sign in to comment.