We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a67236f commit e6642b5Copy full SHA for e6642b5
netbox/ipam/models/vlans.py
@@ -224,11 +224,11 @@ def clean(self):
224
225
# Validate VLAN group (if assigned)
226
if self.group and self.site and self.group.scope != self.site:
227
- raise ValidationError({
228
- 'group': _(
+ raise ValidationError(
+ _(
229
"VLAN is assigned to group {group} (scope: {scope}); cannot also assign to site {site}."
230
).format(group=self.group, scope=self.group.scope, site=self.site)
231
- })
+ )
232
233
# Validate group min/max VIDs
234
if self.group and not self.group.min_vid <= self.vid <= self.group.max_vid:
0 commit comments