diff --git a/templates/cisco_wlc_ssh_show_interface_summary.template b/templates/cisco_wlc_ssh_show_interface_summary.template new file mode 100644 index 0000000000..def2fddefd --- /dev/null +++ b/templates/cisco_wlc_ssh_show_interface_summary.template @@ -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 diff --git a/templates/index b/templates/index index 086296e33d..f1f41256b9 100644 --- a/templates/index +++ b/templates/index @@ -249,6 +249,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]] diff --git a/tests/cisco_wlc_ssh/show_interface_summary/cisco_wlc_ssh_show_interface_summary.parsed b/tests/cisco_wlc_ssh/show_interface_summary/cisco_wlc_ssh_show_interface_summary.parsed new file mode 100644 index 0000000000..9d31d679c7 --- /dev/null +++ b/tests/cisco_wlc_ssh/show_interface_summary/cisco_wlc_ssh_show_interface_summary.parsed @@ -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 \ No newline at end of file diff --git a/tests/cisco_wlc_ssh/show_interface_summary/cisco_wlc_ssh_show_interface_summary.raw b/tests/cisco_wlc_ssh/show_interface_summary/cisco_wlc_ssh_show_interface_summary.raw new file mode 100644 index 0000000000..41a8ab649e --- /dev/null +++ b/tests/cisco_wlc_ssh/show_interface_summary/cisco_wlc_ssh_show_interface_summary.raw @@ -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