NetBox v3.4.1 - [API] Can't create specific IP addresses in prefix #13613
-
Hello everyone! Can u give me some klues?
For example here is my json: [
{
"family": 4,
"address": "185.31.34.4/29",
"vrf": null,
"tenant":4
},
{
"family": 4,
"address": "185.31.34.5/29",
"vrf": null,
"tenant":4
}
] But in NetBox I get 185.31.34.1 and 185.31.34.2. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Having the same issue here! Is there anyone with a solution? |
Beta Was this translation helpful? Give feedback.
-
@UnLuckyAki: The information you give is incomplete and inconsistent.
|
Beta Was this translation helpful? Give feedback.
-
@candlerb Now I see what I did wrong. I did a POST with /api/ipam/ip-addresses/ "10.10.10.1" and I forgot to add the prefix after the IP. So /api/ipam/ip-addresses/ "10.10.10.1/24" adds the IP address to the correct prefix. |
Beta Was this translation helpful? Give feedback.
@UnLuckyAki: The information you give is incomplete and inconsistent.
/ipam/prefixes/{id}/available-ips/
, but you say you are using the API. If that's true, it would bePOST /api/ipam/prefixes/{id}/available-ips/
GET /api/ipam/prefixes/{id}/
show?