Hi all,
I want to read an SSID from one network and push it to another.
When reading it, I get an object/dict like the following:
{'authMode': '8021x-radius',
'availabilityTags': [],
'availableOnAllAps': True,
'bandSelection': 'Dual band operation',
'defaultVlanId': 999,
'dot11r': {'adaptive': False, 'enabled': False},
'dot11w': {'enabled': True, 'required': True},
'enabled': True,
'encryptionMode': 'wpa-eap',
'ipAssignmentMode': 'Bridge mode',
...
'splashPage': 'None',
'ssidAdminAccessible': False,
'useVlanTagging': True,
'visible': True,
'wpaEncryptionMode': 'WPA2 only'}
but to push it, the API wants all elements individually:
response = dashboard.wireless.updateNetworkWirelessSsid(
network_id, number,
name='My SSID',
enabled=True,
authMode='8021x-radius',
enterpriseAdminAccess='access enabled',
encryptionMode='wpa',
psk='deadbeef',
wpaEncryptionMode='WPA2 only',
...
)
This problem is more based on my miserable programming skills, but how do I pass this source dictionary to the API call?
If you found this post helpful, please give it Kudos. If my answer solves your problem, please click Accept as Solution so others can benefit from it.