From 9ec8f881abb0e818cb0ea799c66815d6b746fe1a Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sat, 21 Dec 2019 12:45:50 +0100 Subject: [PATCH] add cidr and network_cidr variable type --- src/rougail/loader.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rougail/loader.py b/src/rougail/loader.py index 63ae26d10..4b17833a3 100644 --- a/src/rougail/loader.py +++ b/src/rougail/loader.py @@ -79,7 +79,9 @@ CONVERT_OPTION = {'number': dict(opttype=IntOption), 'hostname_strict': dict(opttype=DomainnameOption, initkwargs={'type': 'hostname', 'allow_ip': False}), 'web_address': dict(opttype=URLOption, initkwargs={'allow_ip': True, 'allow_without_dot': True}), 'port': dict(opttype=PortOption, initkwargs={'allow_private': True}), - 'mac': dict(opttype=MACOption) + 'mac': dict(opttype=MACOption), + 'cidr': dict(opttype=IPOption, initkwargs={'cidr': True}), + 'network_cidr': dict(opttype=NetworkOption, initkwargs={'cidr': True}), }