File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -872,14 +872,14 @@ def clean(self):
872
872
"The selected parent interface ({interface}) belongs to a different device ({device})"
873
873
).format (interface = self .parent , device = self .parent .device )
874
874
})
875
- elif self .parent .device .virtual_chassis != self .parent .virtual_chassis :
875
+ elif self .parent .device .virtual_chassis != self .device .virtual_chassis :
876
876
raise ValidationError ({
877
877
'parent' : _ (
878
878
"The selected parent interface ({interface}) belongs to {device}, which is not part of "
879
879
"virtual chassis {virtual_chassis}."
880
880
).format (
881
881
interface = self .parent ,
882
- device = self .parent_device ,
882
+ device = self .parent . device ,
883
883
virtual_chassis = self .device .virtual_chassis
884
884
)
885
885
})
@@ -890,7 +890,7 @@ def clean(self):
890
890
if self .pk and self .bridge_id == self .pk :
891
891
raise ValidationError ({'bridge' : _ ("An interface cannot be bridged to itself." )})
892
892
893
- # A bridged interface belong to the same device or virtual chassis
893
+ # A bridged interface belongs to the same device or virtual chassis
894
894
if self .bridge and self .bridge .device != self .device :
895
895
if self .device .virtual_chassis is None :
896
896
raise ValidationError ({
You can’t perform that action at this time.
0 commit comments