Skip to content

Commit 3785873

Browse files
author
JOLY POTTUZ Flavien
committed
Enhanced ShowWlanAll : Add support of SSID with spaces and make "radio_policy" optional
1 parent c9eb789 commit 3785873

File tree

4 files changed

+266
-2
lines changed

4 files changed

+266
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--------------------------------------------------------------------------------
2+
Fix
3+
--------------------------------------------------------------------------------
4+
* IOS-XE
5+
* Modified ShowWlanAllSchema:
6+
* Updated `radio_policy` from schema to Optional
7+
* Modified ShowWlanAll:
8+
* Updated regex pattern `p_name_ssid` to support SSID with spaces
9+
* Modified ShowWlanSummary:
10+
* Updated regex pattern `wlan_info_capture` to support SSID with spaces (2 spaces max between each word)

src/genie/libs/parser/iosxe/show_wlan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class ShowWlanAllSchema(MetaParser):
137137
"media_stream_multicast_direct": str,
138138
"ccx_aironet_support": str,
139139
"p2p_blocking_action": str,
140-
"radio_policy": str,
140+
Optional("radio_policy"): str,
141141
Optional("dtim_period_dot11a"): str,
142142
Optional("dtim_period_dot11b"): str,
143143
"local_eap_authentication": str,
@@ -393,7 +393,7 @@ def cli(self, output=None):
393393
p_description = re.compile(r"^Description\s+:\s+(?P<value>.*)$")
394394

395395
# Network Name (SSID) : north
396-
p_name_ssid = re.compile(r"^Network\s+Name\s+\(SSID\)\s+:\s+(?P<value>\S+)$")
396+
p_name_ssid = re.compile(r"^Network\s+Name\s+\(SSID\)\s+:\s+(?P<value>.*)$")
397397

398398
# Status : Enabled
399399
p_status = re.compile(r"^Status\s+:\s+(?P<value>\S+)$")
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
expected_output = {
2+
"wlan_names": {
3+
'CUSTC_Global_NF_24a65b82': {
4+
'identifier': 21,
5+
'description': 'SSID-for-Factory-users',
6+
'ssid': 'CUST Factory',
7+
'status': 'Enabled',
8+
'broadcast_ssid': 'Enabled',
9+
'advertise_ap_name': 'Disabled',
10+
'universal_ap_admin': 'Disabled',
11+
'max_clients_wlan': 0,
12+
'max_clients_ap': 0,
13+
'max_clients_ap_radio': 200,
14+
'okc': 'Enabled',
15+
'active_clients': 51,
16+
'chd_per_wlan': 'Enabled',
17+
'wmm': 'Allowed',
18+
'wifi_direct_policy': 'Disabled',
19+
'channel_scan_defer_priority': {
20+
'priority': [
21+
5,
22+
6
23+
]
24+
},
25+
'scan_defer_time_msecs': 100,
26+
'media_stream_multicast_direct': 'Disabled',
27+
'ccx_aironet_support': 'Disabled',
28+
'p2p_blocking_action': 'Drop',
29+
'dtim_period_dot11a': '1',
30+
'dtim_period_dot11b': '1',
31+
'local_eap_authentication': 'Disabled',
32+
'mac_filter_authorization_list_name': 'dnac-cts-CUST-abcde86c6',
33+
'mac_filter_override_authorization_list_name': 'Disabled',
34+
'dot1x_authentication_list_name': 'Disabled',
35+
'dot1x_authorization_list_name': 'Disabled',
36+
'security': {
37+
'dot11_authentication': 'Open System',
38+
'static_wep_keys': 'Disabled',
39+
'wifi_protected_access_wpa1_wpa2_wpa3': 'Enabled',
40+
'wifi_protected_access_wpa': {
41+
'wpa_ssn_ie': 'Disabled'},
42+
'wifi_protected_access_wpa2': {
43+
'wpa2_rsn_ie': 'Enabled',
44+
'wpa2_attributes': {
45+
'mpsk': 'Disabled',
46+
'aes': 'Disabled',
47+
'ccmp256': 'Disabled',
48+
'gcmp128': 'Disabled',
49+
'gcmp256': 'Enabled',
50+
'randomized_gtk': 'Disabled'}},
51+
'wifi_protected_access_wpa3': {
52+
'wpa3_ie': 'Disabled'},
53+
'auth_key_mgmt': {
54+
'dot1x': 'Disabled',
55+
'psk': 'Disabled',
56+
'cckm': 'Disabled',
57+
'ft_dot1x': 'Disabled',
58+
'ft_psk': 'Disabled',
59+
'dot1x_sha256': 'Disabled',
60+
'psk_sha256': 'Disabled',
61+
'sae': 'Enabled',
62+
'owe': 'Disabled',
63+
'suiteb_1x': 'Disabled',
64+
'suiteb192_1x': 'Disabled'},
65+
'cckm_tsf_tolerance_msecs': 1000,
66+
'owe_transition_mode': 'Disabled',
67+
'osen': 'Disabled',
68+
'ft_support': {
69+
'ft_support_status': 'Disabled',
70+
'ft_reassociation_timer_secs': 20,
71+
'ft_over_the_ds_mode': 'Disabled'},
72+
'pmf_support': {
73+
'pmf_support_status': 'Disabled',
74+
'pmf_association_comeback_timeout_secs': 1,
75+
'pmf_sa_query_time_msecs': 200},
76+
'web_based_authenticaion': 'Disabled',
77+
'conditional_web_redirect': 'Disabled',
78+
'splash_page_web_redirect': 'Disabled',
79+
'webauth_on_mac_filter_failure': 'Disabled',
80+
'webauth_authentication_list_name': 'Disabled',
81+
'webauth_authorization_list_name': 'Disabled',
82+
'webauth_parameter_map': 'Disabled'},
83+
'band_select': 'Disabled',
84+
'load_balancing': 'Enabled',
85+
'multicast_buffer': 'Enabled',
86+
'multicast_buffer_frames': 50,
87+
'ip_source_guard': 'Disabled',
88+
'assisted_roaming': {
89+
'neighbbor_list': 'Disabled',
90+
'prediction_list': 'Disabled',
91+
'dual_band_support': 'Disabled'},
92+
'ieee_dot11v_parameters': {
93+
'directed_multicast_service': 'Disabled',
94+
'bss_max_idle': {
95+
'bss_max_idle_status': 'Enabled',
96+
'protected_mode': 'Disabled'},
97+
'traffic_filtering_servce': 'Disabled',
98+
'bss_transition': {
99+
'bss_transition_status': 'Disabled',
100+
'disassociation_imminent': {
101+
'disassociation_imminent_status': 'Disabled',
102+
'optimised_roaming_timer': 40,
103+
'timer': 200},
104+
'dual_neighbor_list': 'Disabled'},
105+
'wmn_sleep_mode': 'Disabled'},
106+
'dot11ac_mu_mimo': 'Disabled',
107+
'dot11ax_parameters': {
108+
'ofdma_downlink': 'Enabled',
109+
'ofdma_uplink': 'Enabled',
110+
'mu_mimo_downlink': 'Enabled',
111+
'mu_mimo_uplink': 'Enabled',
112+
'bss_target_wake_up_time': 'Enabled',
113+
'bss_target_wake_up_time_broadcast_support': 'Enabled'},
114+
'mdns_gateway_status': 'Bridge',
115+
'wifi_alliance_agile_multiband': 'Disabled',
116+
'device_analytics': {
117+
'advertise_support': 'Disabled',
118+
'share_data_with_client': 'Disabled'},
119+
'client_scan_report_11k_beacon_radio_measurement': {
120+
'request_on_association': 'Disabled',
121+
'request_on_roam': 'Disabled'},
122+
'wifi_to_cellular_steering': 'Disabled'}
123+
}
124+
}
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
WLAN Profile Name : CUSTC_Global_NF_24a65b82
2+
================================================
3+
Identifier : 21
4+
Description : SSID-for-Factory-users
5+
Network Name (SSID) : CUST Factory
6+
Status : Enabled
7+
Broadcast SSID : Enabled
8+
Advertise-Apname : Disabled
9+
Universal AP Admin : Disabled
10+
Max Associated Clients per WLAN : 0
11+
Max Associated Clients per AP per WLAN : 0
12+
Max Associated Clients per AP Radio per WLAN : 200
13+
OKC : Enabled
14+
Number of Active Clients : 51
15+
CHD per WLAN : Enabled
16+
WMM : Allowed
17+
WiFi Direct Policy : Disabled
18+
Channel Scan Defer Priority:
19+
Priority (default) : 5
20+
Priority (default) : 6
21+
Scan Defer Time (msecs) : 100
22+
Media Stream Multicast-direct : Disabled
23+
CCX - AironetIe Support : Disabled
24+
Peer-to-Peer Blocking Action : Drop
25+
Configured Radio Bands
26+
5ghz : Enabled
27+
Slot : Enabled on all slots
28+
Operational State of Radio Bands
29+
5ghz : UP
30+
Slot : Enabled on all slots
31+
DTIM period for 802.11a radio : 1
32+
DTIM period for 802.11b radio : 1
33+
Local EAP Authentication : Disabled
34+
Mac Filter Authorization list name : dnac-cts-CUST-abcde86c6
35+
Mac Filter Override Authorization list name : Disabled
36+
Accounting list name :
37+
802.1x authentication list name : Disabled
38+
802.1x authorization list name : Disabled
39+
Security
40+
802.11 Authentication : Open System
41+
Static WEP Keys : Disabled
42+
Wi-Fi Protected Access (WPA/WPA2/WPA3) : Enabled
43+
WPA (SSN IE) : Disabled
44+
WPA2 (RSN IE) : Enabled
45+
MPSK : Disabled
46+
EasyPSK : Disabled
47+
AES Cipher : Disabled
48+
CCMP256 Cipher : Disabled
49+
GCMP128 Cipher : Disabled
50+
GCMP256 Cipher : Enabled
51+
Randomized GTK : Disabled
52+
WPA3 (WPA3 IE) : Disabled
53+
Auth Key Management
54+
802.1x : Disabled
55+
PSK : Disabled
56+
CCKM : Disabled
57+
FT dot1x : Disabled
58+
FT PSK : Disabled
59+
FT SAE : Disabled
60+
Dot1x-SHA256 : Disabled
61+
PSK-SHA256 : Disabled
62+
SAE : Enabled
63+
OWE : Disabled
64+
SUITEB-1X : Disabled
65+
SUITEB192-1X : Disabled
66+
SAE PWE Method : Hash to Element, Hunting and Pecking(H2E-HNP)
67+
Transition Disable : Disabled
68+
CCKM TSF Tolerance (msecs) : 1000
69+
OWE Transition Mode : Disabled
70+
OSEN : Disabled
71+
FT Support : Disabled
72+
FT Reassociation Timeout (secs) : 20
73+
FT Over-The-DS mode : Disabled
74+
PMF Support : Disabled
75+
PMF Association Comeback Timeout (secs): 1
76+
PMF SA Query Time (msecs) : 200
77+
Web Based Authentication : Disabled
78+
Conditional Web Redirect : Disabled
79+
Splash-Page Web Redirect : Disabled
80+
Webauth On-mac-filter Failure : Disabled
81+
Webauth Authentication List Name : Disabled
82+
Webauth Authorization List Name : Disabled
83+
Webauth Parameter Map : Disabled
84+
Band Select : Disabled
85+
Load Balancing : Enabled
86+
Multicast Buffer : Enabled
87+
Multicast Buffers (frames) : 50
88+
IP Source Guard : Disabled
89+
Assisted-Roaming
90+
Neighbor List : Disabled
91+
Prediction List : Disabled
92+
Dual Band Support : Disabled
93+
IEEE 802.11v parameters
94+
Directed Multicast Service : Disabled
95+
BSS Max Idle : Enabled
96+
Protected Mode : Disabled
97+
Traffic Filtering Service : Disabled
98+
BSS Transition : Disabled
99+
Disassociation Imminent : Disabled
100+
Optimised Roaming Timer (TBTTS) : 40
101+
Timer (TBTTS) : 200
102+
Dual Neighbor List : Disabled
103+
WNM Sleep Mode : Disabled
104+
802.11ac MU-MIMO : Disabled
105+
802.11ax parameters
106+
802.11ax Operation Status : Enabled
107+
OFDMA Downlink : Enabled
108+
OFDMA Uplink : Enabled
109+
MU-MIMO Downlink : Enabled
110+
MU-MIMO Uplink : Enabled
111+
BSS Target Wake Up Time : Enabled
112+
BSS Target Wake Up Time Broadcast Support : Enabled
113+
802.11 protocols in 2.4ghz band
114+
Protocol : dot11bg
115+
Advanced Scheduling Requests Handling : Disabled
116+
mDNS Gateway Status : Bridge
117+
WIFI Alliance Agile Multiband : Disabled
118+
Device Analytics
119+
Advertise Support : Disabled
120+
Advertise Support for PC analytics : Disabled
121+
Share Data with Client : Disabled
122+
Client Scan Report (11k Beacon Radio Measurement)
123+
Request on Association : Disabled
124+
Request on Roam : Disabled
125+
WiFi to Cellular Steering : Disabled
126+
Advanced Scheduling Requests Handling : Disabled
127+
6Ghz Client Steering : Disabled
128+
Locally Administered Address Configuration
129+
Deny LAA clients : Disabled
130+
Latency Measurements Announcements : Disabled

0 commit comments

Comments
 (0)