mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-19 17:59:11 -06:00
Closes #11922: Populate assigned VDCs when adding a child interface
This commit is contained in:
parent
0dd319d0c8
commit
2236b86c35
@ -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