Browse Source

#1266: Exclude interfaces with existing connections or circuit terminations when creating a new connection

Jeremy Stretch 8 years ago
parent
commit
2d0638821d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      netbox/circuits/forms.py
  2. 1 1
      netbox/dcim/forms.py

+ 1 - 1
netbox/circuits/forms.py

@@ -220,7 +220,7 @@ class CircuitTerminationForm(BootstrapMixin, ChainedFieldsMixin, forms.ModelForm
         label='Interface',
         widget=APISelect(
             api_url='/api/dcim/interfaces/?device_id={{device}}&type=physical',
-            disabled_indicator='connection'
+            disabled_indicator='is_connected'
         )
     )
 

+ 1 - 1
netbox/dcim/forms.py

@@ -1592,7 +1592,7 @@ class InterfaceConnectionForm(BootstrapMixin, ChainedFieldsMixin, forms.ModelFor
         label='Interface',
         widget=APISelect(
             api_url='/api/dcim/interfaces/?device_id={{device_b}}&type=physical',
-            disabled_indicator='connection'
+            disabled_indicator='is_connected'
         )
     )