available_prefixes method doesn't allow to create prefix in Global if there are intersected prefixes in VRF #10109
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
NetBox version
3.2.8
Python version
3.10
Steps to Reproduce
1. Create container 10.182.0.0/15 in Global
2. Create VRF test
3. Create container 10.182.0.0/16 in VRF test
4. Create container 10.183.0.0/16 in VRF test
4. Use available_prefixes method to create a child inside 10.182.0.0/15 in Global
Response body
[]
Error: response status is 409
Response body
Despite there is a lot of available space in 10.182.0.0/15 in Global we could not create a child.
Expected Behavior
A new prefix 10.182.0.0/24 should have been created in Global
Observed Behavior
"Insufficient space is available to accommodate the requested prefix size(s)" error was returned
But if we use strict method (POST api/ipam/prefixes/) to create a prefix we will succeed
Unfortunately this method is not protected by advisory lock as "available-prefixes"
The text was updated successfully, but these errors were encountered: