Skip to content

Commit

Permalink
Closes #11922: Populate assigned VDCs when adding a child interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Aug 4, 2023
1 parent 0dd319d commit 2236b86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions netbox/dcim/forms/model_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}
Expand Down

0 comments on commit 2236b86

Please sign in to comment.