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 2020-06-05 22:42:02 +02:00 committed by Alexander Bokovoy
parent 5f239aebca
commit 373f8cdce7

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