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

Fixes #9938: Exclude virtual interfaces from terminations list when connecting a cable

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

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

@@ -99,6 +99,7 @@ Custom field UI visibility has no impact on API operation.
 
 ### Bug Fixes (from Beta2)
 
+* [#9938](https://github.com/netbox-community/netbox/issues/9938) - Exclude virtual interfaces from terminations list when connecting a cable
 * [#9939](https://github.com/netbox-community/netbox/issues/9939) - Fix list of next nodes for split paths under trace view
 
 ### Plugins API

+ 1 - 0
netbox/dcim/forms/connections.py

@@ -84,6 +84,7 @@ def get_cable_form(a_type, b_type):
                         disabled_indicator='_occupied',
                         query_params={
                             'device_id': f'$termination_{cable_end}_device',
+                            'kind': 'physical',  # Exclude virtual interfaces
                         }
                     )