- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to update the dot11r for SSID? (python)
Hi,
I need to update the dot11r settings for my network.
The code I used to update the settings are:
response = dashboard.wireless.updateNetworkWirelessSsid(
n['id'], ssid['number'],
ssid['dot11r']= {'enabled': True, 'adaptive': True}
)
Python error message is
Traceback (most recent call last):
File "/home/user/updatessid.py", line 31, in <module>
response = dashboard.wireless.updateNetworkWirelessSsid(
TypeError: Wireless.updateNetworkWirelessSsid() takes 3 positional arguments but 4 were given
I tried to follow the example here
https://developer.cisco.com/meraki/api-v1/#!update-network-wireless-ssid
response = dashboard.wireless.updateNetworkWirelessSsid( network_id, number, name='My SSID', enabled=True )
What is the correct way to update the dot11r settings?
Solved! Go to solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
import requests url = "https://api.meraki.com/api/v1/networks/{networkId}/wireless/ssids/{number}" payload = '''{ "dot11w": {}, "dot11r": { "adaptive": true }, "oauth": {}, "localRadius": { "passwordAuthentication": {}, "certificateAuthentication": { "clientRootCaCertificate": {} } },
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think that there is no PAI to update 802.11, look:
https://developer.cisco.com/meraki/api/#!update-network-ssid
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry I'm worng:
https://developer.cisco.com/meraki/api-v1/#!update-network-wireless-ssid
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
https://developer.cisco.com/meraki/api-v1/#!update-network-wireless-ssid
what's different between your link and mine?
Not supported?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
the first link is API v0 second Is v1.
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried again with new code.
response = dashboard.wireless.updateNetworkWirelessSsid(
n['id'], ssid['number'],
dot11r=[{'enabled': True, 'adaptive': True}]
)
Here is what I got.
meraki.exceptions.APIError: wireless, updateNetworkWirelessSsid - 400 Bad Request, {'errors': ["'dot11r' must be an object"]}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
import requests url = "https://api.meraki.com/api/v1/networks/{networkId}/wireless/ssids/{number}" payload = '''{ "dot11w": {}, "dot11r": { "adaptive": true }, "oauth": {}, "localRadius": { "passwordAuthentication": {}, "certificateAuthentication": { "clientRootCaCertificate": {} } },
Please, if this post was useful, leave your kudos and mark it as solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Got it workinig with following code.
response = dashboard.wireless.updateNetworkWirelessSsid(
n['id'], ssid['number'],
dot11r={'enabled': True, 'adaptive': True}
)
Thank you!
