Skip to content

Can't create prefix via available-prefixes API endpoint with all needed constraint permissions #5869

@Dimaqa

Description

@Dimaqa

Environment

  • Python version: 3.6.9
  • NetBox version: 2.10.3

Steps to Reproduce

  1. As admin create active prefix
  2. Create permission to view all prefixes
  3. Create permission to add reserved prefix
  4. As test user with permissions above POST on /api/ipam/prefixes/{created_active_prefix_id}/available-prefixes/ with body {"status" : "reserved", "prefix_length" : 24}
  5. API will return 404 NOT FOUND error
  6. GET on /api/ipam/prefixes/{created_active_prefix_id}/available-prefixes/ works fine

Expected Behavior

Create reserved child prefix.

Observed Behavior

NOT FOUND error

This is related to #5841, but deserves separate bugreport.
Creation via web interface works fine.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions