mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 11:26:26 -06:00
Tweaked interface LAG validation
This commit is contained in:
parent
9847b5187f
commit
91d689d122
@ -1248,8 +1248,8 @@ class Interface(models.Model):
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
# A LAG interface cannot have a parent LAG
|
# A virtual interface cannot have a parent LAG
|
||||||
if self.form_factor == IFACE_FF_LAG and self.lag is not None:
|
if self.form_factor in VIRTUAL_IFACE_TYPES and self.lag is not None:
|
||||||
raise ValidationError({
|
raise ValidationError({
|
||||||
'lag': u"{} interfaces cannot have a parent LAG interface.".format(self.get_form_factor_display())
|
'lag': u"{} interfaces cannot have a parent LAG interface.".format(self.get_form_factor_display())
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user