09-29-2022 03:23 AM - edited 09-29-2022 03:24 AM
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
Solved! Go to Solution.
09-29-2022 06:13 AM
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
09-29-2022 06:13 AM
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
09-29-2022 07:37 AM
awesome!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide