diff --git a/netbox/ipam/models/vlans.py b/netbox/ipam/models/vlans.py index 8ebefe083..0288daf2e 100644 --- a/netbox/ipam/models/vlans.py +++ b/netbox/ipam/models/vlans.py @@ -291,7 +291,7 @@ class VLAN(PrimaryModel): if self.site not in self.group.scope.sites.all(): raise ValidationError( _( - "VLAN is assigned to group {group} (scope: {scope}); cannot also assign to site {site}." + "The assigned site {site} is not a member of the assigned group {group} (scope: {scope})." ).format(group=self.group, scope=self.group.scope, site=self.site) ) diff --git a/netbox/ipam/tests/test_models.py b/netbox/ipam/tests/test_models.py index 7996636ad..e8cd11a87 100644 --- a/netbox/ipam/tests/test_models.py +++ b/netbox/ipam/tests/test_models.py @@ -691,7 +691,7 @@ class TestVLAN(TestCase): site=sites[0], ) - # VLAN Group 0 and 1 should be valid + # VLAN Group 1 and 2 should be valid vlan.full_clean() vlan.group = vlangroups[1] vlan.full_clean()