-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
Environment
- Python version: 3.6.9
- NetBox version: 2.10.3
Steps to Reproduce
- Create permission allowing to add only reserved prefixes
- Create reserved prefix
- POST on /ipam/prefixes/{created_prefix_id}/available-prefixes/
- Returned prefix will have active status
Also you can do this:
- Create permission allowing to add only reserved prefixes
- Create active prefix
- POST on /ipam/prefixes/{created_prefix_id}/available-prefixes/ with body {"status" : "reserved"}
- API will return 404 NOT FOUND error
Expected Behavior
In the first case api should return permission error.
In the second create reserved child prefix.
Observed Behavior
We can get around add permissions using parent prefixes.
Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application