Specify min and max values for TTL of a DNS record

Fixes: https://pagure.io/freeipa/issue/8358
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Peter Keresztes Schmidt authored and Alexander Bokovoy committed 2020-06-07 10:14:05 +03:00
1 parent 5f239aebca
commit 373f8cdce7
1 file changed
+2
+2
View File
@@ -3021,6 +3021,8 @@ class dnsrecord(LDAPObject):
cli_name='ttl',
label=_('Time to live'),
doc=_('Time to live'),
minvalue=0,
maxvalue=2147483647, # see RFC 2181,
),
StrEnum('dnsclass?',
# Deprecated