From 91d689d12257d368ea0e6745a6288d6c8f9de0f8 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Mon, 27 Feb 2017 17:13:58 -0500 Subject: [PATCH] Tweaked interface LAG validation --- netbox/dcim/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/dcim/models.py b/netbox/dcim/models.py index f589c49a2..622019997 100644 --- a/netbox/dcim/models.py +++ b/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()) })