meraki / dashboard-api-python

Official Dashboard API library (SDK) for Python
MIT License
293 stars 154 forks source link

Function "updateNetworkWirelessSsidEapOverride" not fully working (possibly) #164

Closed sstone173 closed 3 years ago

sstone173 commented 3 years ago

Thanks for getting this function added, I ran some tests today and found a weird issue where the Meraki Dashboard is not displaying the correct updated values, but the https API viewer is. Would this be an issue with the code or should I open a ticket with Meraki?

Python snippet:

response = dashboard.wireless.updateNetworkWirelessSsidEapOverride(
    network_id, number,
    maxRetries=4,
    timeout=10,
    eapolKey={'retries':'4', 'timeoutInMs':'5000'},
    identity={'retries':'4', 'timeout':'10'}
)

Output:

user@computer:~/dev$ python3 d_meraki_put_ssid.py 2021-08-19 14:01:26 meraki: INFO > Meraki dashboard API session initialized with these parameters: {'version': '1.12.0', 'api_key': '****************************************', 'base_url': 'https://api.meraki.com/api/v1', 'single_request_timeout': 60, 'certificate_path': '', 'requests_proxy': '', 'wait_on_rate_limit': True, 'nginx_429_retry_wait_time': 60, 'action_batch_retry_wait_time': 60, 'retry_4xx_error': False, 'retry_4xx_error_wait_time': 60, 'maximum_retries': 2, 'simulate': False, 'be_geo_id': None, 'caller': None, 'use_iterator_for_get_pages': False} 2021-08-19 14:01:26 meraki: DEBUG > {'tags': ['wireless', 'configure', 'ssids', 'eapOverride'], 'operation': 'updateNetworkWirelessSsidEapOverride', 'method': 'PUT', 'url': '/networks/N_******************/wireless/ssids/1/eapOverride', 'json': {'maxRetries': 5, 'timeout': 7, 'eapolKey': {'retries': '3', 'timeoutInMs': '200'}, 'identity': {'retries': '3', 'timeout': '3'}}} 2021-08-19 14:01:26 meraki: INFO > PUT https://api.meraki.com/api/v1/networks/N_******************/wireless/ssids/1/eapOverride 2021-08-19 14:01:27 meraki: INFO > wireless, updateNetworkWirelessSsidEapOverride - 200 OK

Web Output:

{"timeout":10,"maxRetries":4,"identity":{"timeout":10,"retries":4},"eapolKey":{"timeoutInMs":5000,"retries":4}}
TKIPisalegacycipher commented 3 years ago

Thanks for reporting this, @sstone173! This looks like an issue with the GUI. Since the API endpoint returns the settings PUT after a GET, then I'm pretty confident the API is working correctly and there's simply a GUI rendering issue. You could report this to Meraki support. I'll close this since the SDK is working as designed.