Skip to content

Commit

Permalink
Bugfix: cisco_wlc_ssh_show_interface_summary - Allow space or no spac…
Browse files Browse the repository at this point in the history
…e on Number of Interfaces line (networktocode#810)
  • Loading branch information
wvandeun authored and thomasblass committed Oct 25, 2020
1 parent ca27096 commit 36cb876
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/cisco_wlc_ssh_show_interface_summary.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Value AP_MGR (\S+)
Value GUEST (\S+)

Start
^\s+Number\sof\sInterfaces\.*\s${INT_COUNT}s*$$
^\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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@



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
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"

0 comments on commit 36cb876

Please sign in to comment.