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

Closes #11922: Populate assigned VDCs when adding a child interface

This commit is contained in:
Jeremy Stretch
2023-08-04 14:37:40 -04:00
parent 0dd319d0c8
commit 2236b86c35

View File

@ -1042,6 +1042,9 @@ class InterfaceForm(InterfaceCommonForm, ModularDeviceComponentForm):
queryset=VirtualDeviceContext.objects.all(),
required=False,
label='Virtual Device Contexts',
initial_params={
'interfaces': '$parent',
},
query_params={
'device_id': '$device',
}