cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
510
Views
0
Helpful
3
Replies

DNA - Provisioning Wireless Controller API Failure

mitshett
Cisco Employee
Cisco Employee

When we try to provision wireless controller in DNAC, API docs says interfaceIPAddress is optional. But if we don't provide it fails saying we need to pass interfaceIPAddress. 

Can some one help us how to fix this problem? Below is the request body used for provisioning

[
{
"deviceName": "CNXS",
"site": "Global/Team/Bldg-1/Flr-1",
"managedAPLocations": [ "Global/Team/Bldg-1/Flr-1" ],
"dynamicInterfaces": [
{
"interfaceIPAddress": null,
"interfaceNetmaskInCIDR": null,
"interfaceGateway": null,
"lagOrPortNumber": null,
"vlanId": "88",
"interfaceName": "GigabitEthernet4"
}
]
}
]
3 Replies 3

Dan Rowe
Cisco Employee
Cisco Employee

You may need to remove the variables which are optional completely, rather than setting them to Null... Try the API call using the following request body:

 

[
{
"deviceName""CNXS",
"site""Global/Team/Bldg-1/Flr-1",
"managedAPLocations": [ "Global/Team/Bldg-1/Flr-1" ],
"dynamicInterfaces": [
{
"vlanId""88",
"interfaceName""GigabitEthernet4"
}
]
}
]

mitshett
Cisco Employee
Cisco Employee

We did try this too, same behaviour API responds failure with bapierror mentioning to pass interfaceIPAddress

Here is the exact error when we send empty object ->
Interface Input Error: Invalid Dynamic Interface IP Address
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: