def _validate(self, value):
ip = IP('{0}/32'.format(value))
if ip.iptype() == 'RESERVED':
- raise ValueError(_("IP mustn't not be in reserved class"))
+ raise ValueError(_("IP shall not be in reserved class"))
if self._only_private and not ip.iptype() == 'PRIVATE':
raise ValueError(_("IP must be in private class"))
def _validate(self, value):
ip = IP(value)
if ip.iptype() == 'RESERVED':
- raise ValueError(_("network mustn't not be in reserved class"))
+ raise ValueError(_("network shall not be in reserved class"))
class NetmaskOption(Option):