Skip to content

Allow specifying address when calling available_ips.create() #669

@variable

Description

@variable

pynetbox version

v7.4.1

NetBox version

v4.2.2

Feature type

Data model extension

Proposed functionality

eg. available_ips.create({'address': xxxx}}

last_ip = new_firewall_linknet_prefix.available_ips.list()[-1]
firewall_ip = new_firewall_linknet_prefix.available_ips.create({'address': last_ip.address})

Use case

Currently if I want to create an IP from the last item of available_ips.list(), I will have to create one (which is the next available IP) then update to the address I wanted

last_ip = new_firewall_linknet_prefix.available_ips.list()[-1]
firewall_ip = new_firewall_linknet_prefix.available_ips.create()
firewall_ip.address = last_ip.address
firewall_ip.save()

This does not work

External dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featureIntroduction of new functionality to the application

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions