Lines 1237-1242
class reverseLookupSubnet(simple):
|
Link Here
|
---|
|
1237 |
regex = re.compile(r'^((%s)|(%s))$' % (regex_IPv4, regex_IPv6, )) |
1237 |
regex = re.compile(r'^((%s)|(%s))$' % (regex_IPv4, regex_IPv6, )) |
1238 |
error_message = _('A subnet for reverse lookup consists of the first one to three parts of an IPv4 address (example: "192.168.0") or of the first 1 to 31 nibbles of an IPv6 address with leading zeroes and without :: substitution (example: "2001:0db8:010")') |
1238 |
error_message = _('A subnet for reverse lookup consists of the first one to three parts of an IPv4 address (example: "192.168.0") or of the first 1 to 31 nibbles of an IPv6 address with leading zeroes and without :: substitution (example: "2001:0db8:010")') |
1239 |
|
1239 |
|
|
|
1240 |
@classmethod |
1241 |
def parse(cls, text): |
1242 |
text = super(reverseLookupSubnet, cls).parse(text) |
1243 |
if text in ('0', '127', '255'): |
1244 |
raise univention.admin.uexceptions.valueError(_("The subnets 0, 127 and 255 are preserved.")) |
1245 |
return text |
1246 |
|
1240 |
class reverseLookupZoneName(simple): |
1247 |
class reverseLookupZoneName(simple): |
1241 |
# <- IPv6 reverse zone -> <- IPv4 reverse zone -> |
1248 |
# <- IPv6 reverse zone -> <- IPv4 reverse zone -> |
1242 |
# nibble dot-separated ...arpa <- 0-255 -> dot-separated .arpa |
1249 |
# nibble dot-separated ...arpa <- 0-255 -> dot-separated .arpa |