1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Add "add IP range" button to prefix IP ranges view

This commit is contained in:
jeremystretch
2021-12-15 11:03:38 -05:00
parent ff9dde54e3
commit f43ec7c05d
2 changed files with 9 additions and 0 deletions

View File

@@ -488,6 +488,7 @@ class PrefixIPRangesView(generic.ObjectChildrenView):
return {
'bulk_querystring': f"vrf_id={instance.vrf.pk if instance.vrf else '0'}&parent={instance.prefix}",
'active_tab': 'ip-ranges',
'first_available_ip': instance.get_first_available_ip(),
}