diff --git a/templates/cisco_wlc_ssh_show_ap_config_general.template b/templates/cisco_wlc_ssh_show_ap_config_general.template new file mode 100644 index 0000000000..52a35934ad --- /dev/null +++ b/templates/cisco_wlc_ssh_show_ap_config_general.template @@ -0,0 +1,9 @@ +Value AP_SERIAL_NUMBER (\S+) +Value AP_GROUP (\S+) +Value AP_MODE (\S+) + +Start + ^Cisco AP Group Name\.*\s+${AP_GROUP} + ^AP Mode \.*\s+${AP_MODE} + ^AP Serial Number\.*\s+${AP_SERIAL_NUMBER} -> Record + \ No newline at end of file diff --git a/templates/index b/templates/index index 78c825d253..7fda377d51 100644 --- a/templates/index +++ b/templates/index @@ -191,6 +191,7 @@ cisco_nxos_show_vpc.template, .*, cisco_nxos, sh[[ow]] vpc cisco_nxos_show_vrf.template, .*, cisco_nxos, sh[[ow]] vrf cisco_wlc_ssh_show_sysinfo.template, .*, cisco_wlc_ssh, sh[[ow]] sysi[[nfo]] +cisco_wlc_ssh_show_ap_config_general.template, .*, cisco_wlc_ssh, sh[[ow]] ap con[[fig]] gen[[eral]] (\S+) cisco_xr_show_bgp_vrf_all_ipv4_unicast_summary.template, .*, cisco_xr, sh[[ow]] bg[[p]] v[[rf]] all ip[[v4]] uni[[cast]] summ[[ary]] cisco_xr_admin_show_controller_fabric_health.template, .*, cisco_xr, adm[[in]] sh[[ow]] controller fab[[ric]] hea[[lth]] diff --git a/tests/cisco_wlc_ssh/show_ap_config_general/cisco_wlc_ssh_show_config_ap_general.parsed b/tests/cisco_wlc_ssh/show_ap_config_general/cisco_wlc_ssh_show_config_ap_general.parsed new file mode 100644 index 0000000000..fbe5ef8a9b --- /dev/null +++ b/tests/cisco_wlc_ssh/show_ap_config_general/cisco_wlc_ssh_show_config_ap_general.parsed @@ -0,0 +1,24 @@ +--- +parsed_sample: +- admin_state: ADMIN_ENABLED + ap_group: GROUP_PE + ap_lwapp_uptime: '165 days, 11 h 03 m 33 s' + ap_mode: FlexConnect + ap_model: AIR-CAP2702E-E-K9 + ap_name: AP_test_01 + ap_serial_number: FCEDDCCBBAA + ap_uptime: '248 days, 07 h 09 m 00 s' + country_code: IT + ip_address: 10.1.1.1 + ip_address_configuration: 'Static IP assigned' + ip_gateway: 10.1.1.254 + ip_netmask: 255.255.255.0 + join_datetime: 'Wed Jan 17 10:07:12 2018' + mac_address: 00:62:ec:01:02:03 + oper_state: REGISTERED + primary_switch_ip: 10.2.2.2 + primary_switch_name: WLC + secondary_switch_ip: Not + secondary_switch_name: "" + tertiary_switch_ip: Not + tertiary_switch_name: "" \ No newline at end of file diff --git a/tests/cisco_wlc_ssh/show_ap_config_general/cisco_wlc_ssh_show_config_ap_general.raw b/tests/cisco_wlc_ssh/show_ap_config_general/cisco_wlc_ssh_show_config_ap_general.raw new file mode 100644 index 0000000000..0a8dd84eb2 --- /dev/null +++ b/tests/cisco_wlc_ssh/show_ap_config_general/cisco_wlc_ssh_show_config_ap_general.raw @@ -0,0 +1,124 @@ +Cisco AP Identifier.............................. 111 +Cisco AP Name.................................... AP_test_01 +Country code..................................... IT - Italy +Regulatory Domain allowed by Country............. 802.11bg:-E 802.11a:-E +AP Country code.................................. IT - Italy +AP Regulatory Domain............................. -E +Switch Port Number .............................. 8 +MAC Address...................................... 00:62:ec:01:02:03 +IP Address Configuration......................... Static IP assigned +IP Address....................................... 10.1.1.1 +IP NetMask....................................... 255.255.255.0 +Gateway IP Addr.................................. 10.1.1.254 +Domain........................................... +Name Server...................................... 192.168.1.1 +NAT External IP Address.......................... None +CAPWAP Path MTU.................................. 1485 +DHCP Release Override............................ Disabled +Telnet State..................................... Globally Enabled +Ssh State........................................ Globally Enabled +Cisco AP Location................................ default location +Cisco AP Floor Label............................. 0 +Cisco AP Group Name.............................. GROUP_PE +Primary Cisco Switch Name........................ WLC +Primary Cisco Switch IP Address.................. 10.2.2.2 +Secondary Cisco Switch Name...................... +Secondary Cisco Switch IP Address................ Not Configured +Tertiary Cisco Switch Name....................... +Tertiary Cisco Switch IP Address................. Not Configured +Administrative State ............................ ADMIN_ENABLED +Operation State ................................. REGISTERED +Mirroring Mode .................................. Disabled +AP Mode ......................................... FlexConnect +Public Safety ................................... Disabled +AP SubMode ...................................... Not Configured +Rogue Detection ................................. Enabled +AP Vlan Trunking ................................ Enabled (Inherited) +AP Native Vlan ID: .............................. 1 (Inherited) +Remote AP Debug ................................. Disabled +Logging trap severity level ..................... emergencies +Logging syslog facility ......................... kern +S/W Version .................................... 8.2.164.0 +Boot Version ................................... 15.2.4.5 +Mini IOS Version ................................ 8.2.100.0 +Stats Reporting Period .......................... 180 +Stats Collection Mode ........................... normal +Radio Core Mode ................................. Disabled +Slub Debug Mode ................................. Disabled +LED State........................................ Enabled +PoE Pre-Standard Switch.......................... Disabled +PoE Power Injector MAC Addr...................... Disabled +Power Type/Mode.................................. PoE/Medium Power (15.4 W) +Number Of Slots.................................. 2 +AP Model......................................... AIR-CAP2702E-E-K9 +AP Image......................................... C2700-K9W8-M +IOS Version...................................... 15.3(3)JC9$ +Reset Button..................................... Enabled +AP Serial Number................................. FCEDDCCBBAA +AP Certificate Type.............................. Manufacture Installed +AP LAG Configuration Status ..................... Disabled +LAG Support for AP .............................. No +Native Vlan Inheritance: ........................ AP +FlexConnect Vlan mode :.......................... Enabled + Native ID :..................................... 1 + WLAN 13 :....................................... 3 (Wlan-Specific) + WLAN 46 :....................................... 13 (Wlan-Specific) + WLAN 70 :....................................... 254 (Wlan-Specific) +FlexConnect VLAN ACL Mappings +FlexConnect Group................................ Not a member of any group +Group VLAN ACL Mappings + + +Group VLAN Name to Id Mappings + Template in Modified State - apply it to see mappings + +AP-Specific FlexConnect Policy ACLs : +L2Acl Configuration ............................. Not Available +FlexConnect Local-Split ACLs : + +WLAN ID PROFILE NAME ACL TYPE +------- -------------------------------- --------------------------------- ------- + + Flexconnect Central-Dhcp Values : + +WLAN ID PROFILE NAME Central-Dhcp DNS Override Nat-Pat Type +------- --------------------------------- -------------- -------------- --------- ------ + 13 WLAN_13 False False False Wlan + 46 WLAN_46 False False False Wlan + 70 WLAN_70 False False False Wlan + +Flex AVC visibility Configurations.............. + +WlanId PROFILE NAME Inherit-level Visibility Flex Avc-profile +------- -------------------------------- ------------- ---------- -------------------------------- +13 WLAN_13 wlan-spec disable none +46 WLAN_46 wlan-spec disable none +70 WLAN_70 wlan-spec enable none + +FlexConnect Backup Auth Radius Servers : + Primary Radius Server........................... Disabled + Secondary Radius Server......................... Disabled +AP User Mode..................................... AUTOMATIC +AP User Name..................................... admin +AP Dot1x User Mode............................... Not Configured +AP Dot1x User Name............................... Not Configured +Cisco AP system logging host..................... 255.255.255.255 +AP Up Time....................................... 248 days, 07 h 09 m 00 s +AP LWAPP Up Time................................. 165 days, 11 h 03 m 33 s +Join Date and Time............................... Wed Jan 17 10:07:12 2018 +Join Taken Time.................................. 0 days, 00 h 05 m 36 s +Memory Type...................................... DDR3 +Memory Size...................................... 11839 KBytes +CPU Type......................................... PowerPC CPU at 800Mhz, revision number 0x2151 +Flash Type....................................... Onboard Flash +Flash Size....................................... 1564 KBytes +GPS Present...................................... NO +Ethernet Vlan Tag................................ Disabled +Ethernet Port Duplex............................. Auto +Ethernet Port Speed.............................. Auto +AP Link Latency.................................. Disabled +Rogue Detection.................................. Enabled +AP TCP MSS Adjust................................ Disabled +Hotspot Venue Group.............................. Unspecified +Hotspot Venue Type............................... Unspecified + DNS server IP ............................. 192.168.1.1