Explorar el Código

Tweaked interface LAG validation

Jeremy Stretch hace 9 años
padre
commit
2b9ea58c86
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      netbox/dcim/models.py

+ 2 - 2
netbox/dcim/models.py

@@ -1248,8 +1248,8 @@ class Interface(models.Model):
                 )
             })
 
-        # A LAG interface cannot have a parent LAG
-        if self.form_factor == IFACE_FF_LAG and self.lag is not None:
+        # A virtual interface cannot have a parent LAG
+        if self.form_factor in VIRTUAL_IFACE_TYPES and self.lag is not None:
             raise ValidationError({
                 'lag': u"{} interfaces cannot have a parent LAG interface.".format(self.get_form_factor_display())
             })