Просмотр исходного кода

Fixes #6106: Allow assigning a virtual interface as the parent of an existing interface

jeremystretch 4 лет назад
Родитель
Сommit
81193eb550
2 измененных файлов с 2 добавлено и 4 удалено
  1. 1 0
      docs/release-notes/version-2.11.md
  2. 1 4
      netbox/dcim/forms.py

+ 1 - 0
docs/release-notes/version-2.11.md

@@ -7,6 +7,7 @@
 * [#6100](https://github.com/netbox-community/netbox/issues/6100) - Fix VM interfaces table "add interfaces" link
 * [#6104](https://github.com/netbox-community/netbox/issues/6104) - Fix location column on racks table
 * [#6105](https://github.com/netbox-community/netbox/issues/6105) - Hide checkboxes for VMs under cluster VMs view
+* [#6106](https://github.com/netbox-community/netbox/issues/6106) - Allow assigning a virtual interface as the parent of an existing interface
 
 ---
 

+ 1 - 4
netbox/dcim/forms.py

@@ -3072,10 +3072,7 @@ class InterfaceForm(BootstrapMixin, InterfaceCommonForm, CustomFieldModelForm):
     parent = DynamicModelChoiceField(
         queryset=Interface.objects.all(),
         required=False,
-        label='Parent interface',
-        query_params={
-            'kind': 'physical',
-        }
+        label='Parent interface'
     )
     lag = DynamicModelChoiceField(
         queryset=Interface.objects.all(),