mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-29 20:06:25 -06:00
Closes #11922: Populate assigned VDCs when adding a child interface
This commit is contained in:
parent
5e8b6664ab
commit
e30fe8cfe7
@ -1042,6 +1042,9 @@ class InterfaceForm(InterfaceCommonForm, ModularDeviceComponentForm):
|
|||||||
queryset=VirtualDeviceContext.objects.all(),
|
queryset=VirtualDeviceContext.objects.all(),
|
||||||
required=False,
|
required=False,
|
||||||
label='Virtual Device Contexts',
|
label='Virtual Device Contexts',
|
||||||
|
initial_params={
|
||||||
|
'interfaces': '$parent',
|
||||||
|
},
|
||||||
query_params={
|
query_params={
|
||||||
'device_id': '$device',
|
'device_id': '$device',
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user