>RESPONSE: #<HTTParty::Response:0x59c8fd8 parsed_response={"errors"=>["IP assignment mode setting overrides are not supported for template children.", For the first one - if the network is bound to a template you can't apply this config to it. You can only apply it to the template. Once applied to the template the network will automatically inherit this config. For the second one - what you need to be doing is doing what you are doing in the first example - updating an SSID - but using the network number of the template. Here is an example of some code I used to get a network ID. It first tries to find a network with the name, and failing that it then tries to find a template with the name. # This function retrieves the netId
async def getNetId(dashboard,orgId,netName):
netId=None
# Search for the network
for net in await dashboard.organizations.getOrganizationNetworks(orgId):
if net['name'] == netName:
netId=net['id']
break;
# If no network, search for a template
if netId == None:
for net in await dashboard.organizations.getOrganizationConfigTemplates(orgId):
if net['name'] == netName:
netId=net['id']
break;
# Nothing found matching at all
if netId == None:
print("Invalid network name supplied: "+netName)
exit(-1)
return netId
... View more