mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #15015: Pre-populate assigned tenant when allocating next available IP address under prefix view
This commit is contained in:
@ -134,7 +134,7 @@
|
|||||||
{% with first_available_ip=object.get_first_available_ip %}
|
{% with first_available_ip=object.get_first_available_ip %}
|
||||||
{% if first_available_ip %}
|
{% if first_available_ip %}
|
||||||
{% if perms.ipam.add_ipaddress %}
|
{% if perms.ipam.add_ipaddress %}
|
||||||
<a href="{% url 'ipam:ipaddress_add' %}?address={{ first_available_ip }}{% if object.vrf %}&vrf={{ object.vrf_id }}{% endif %}">{{ first_available_ip }}</a>
|
<a href="{% url 'ipam:ipaddress_add' %}?address={{ first_available_ip }}{% if object.vrf %}&vrf={{ object.vrf_id }}{% endif %}{% if object.tenant %}&tenant={{ object.tenant.pk }}{% endif %}">{{ first_available_ip }}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ first_available_ip }}
|
{{ first_available_ip }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Reference in New Issue
Block a user