cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
738
Views
5
Helpful
2
Replies

Subnet add/delete via Postman

Qwr!
Level 1
Level 1

I was trying to create a subnet but 400-Bad request. The request cannot be fulfilled due to bad syntax. Here is the payload and URLs I tried. I'm just wondering if I get some direction 

{
"totalCount": "1",
"imdata": [
{
"fvSubnet": {
"attributes": {
"annotation": "",
"ctrl": "",
"descr": "",
"dn": "uni/tn-Heroes/BD-Hero_Land/subnet-[9.9.9.9/32]",
"ip": "9.9.9.9/32",
"ipDPLearning": "enabled",
"name": "",
"nameAlias": "",
"preferred": "no",
"scope": "private",
"userdom": ":all:",
"virtual": "no"
}
}
}
]
}

https://10.10.10.10/#dn=uni/tn-Heroes/BD-Hero_Land/subnet-[9.9.9.9/32].json
https://10.10.10.10/#dn=uni/tn-Heroes/BD-Hero_Land
https://10.10.10.10/api/node/mo/uni/tn-Heroes/BD-Hero_Land/subnet-[9.9.9.9/32].json
https://10.10.10.10/api/node/mo/uni/tn-Heroes/BD-Hero_Land

1 Accepted Solution

Accepted Solutions

Sergiu.Daniluk
VIP Alumni
VIP Alumni

Hi @Qwr! 

The problem you have is because you cannot, by default, configure /32 subnets on BD. You get an error as well if you try and configure it via GUI:

Error: 400 - Invalid Configuration : Subnet cannot have a netmask of /32 or /128with default gateway

If you really need that /32 on your BD, what you must do is use the "ctrl":"no-default-gateway" attribute.

 

Cheers,

Sergiu

View solution in original post

2 Replies 2

Sergiu.Daniluk
VIP Alumni
VIP Alumni

Hi @Qwr! 

The problem you have is because you cannot, by default, configure /32 subnets on BD. You get an error as well if you try and configure it via GUI:

Error: 400 - Invalid Configuration : Subnet cannot have a netmask of /32 or /128with default gateway

If you really need that /32 on your BD, what you must do is use the "ctrl":"no-default-gateway" attribute.

 

Cheers,

Sergiu

Qwr!
Level 1
Level 1

awesome!

Review Cisco Networking for a $25 gift card

Save 25% on Day-2 Operations Add-On License