Skip to content

OpenAPI schema is incorrect for the ipam_prefixes_available-prefixes_create endpoint  #11729

@Gaardsholt

Description

@Gaardsholt

NetBox version

v3.4.5-dev

Python version

3.9

Steps to Reproduce

  1. Open the API docs at /api/docs/
  2. Find the /ipam/prefixes/{id}/available-prefixes/endpoint
  3. See that it says that you can only specify the prefix_length in the body

Expected Behavior

That I can use all the fields set on a prefix.

I have successfully tested with the following fields:

{ "prefix_length": 0, "site": 0, "role": 0, "tenant": 0, "vrf": 0, "vlan": 0, "status": "container", "is_pool": true, "mark_utilized": true, "description": "string", "comments": "string" }

Observed Behavior

That the API docs shows all the available fields that I can set.

I have been playing around with it locally, so I will be happy to do a pull request for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending closureRequires immediate attention to avoid being closed for inactivityseverity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: needs ownerThis issue is tentatively accepted pending a volunteer committed to its implementationtopic: OpenAPItype: 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