summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-09-02 13:25:19 +0200
committerDavid Kupka <dkupka@redhat.com>2016-09-07 16:22:03 +0200
commit81d64d530cca148198312d3d993502575b288f63 (patch)
tree9bb1467d829f6fb59b2393c60246ac1e15a9bd7a /ipaserver/plugins
parentdaeaf2a8234ba684352d98fbc8d734100e6d63d1 (diff)
downloadfreeipa-81d64d530cca148198312d3d993502575b288f63.tar.gz
freeipa-81d64d530cca148198312d3d993502575b288f63.tar.xz
freeipa-81d64d530cca148198312d3d993502575b288f63.zip
Allow network ip addresses
Currently cloud environments uses heavily prefix /32 (/128) what makes IPA validators to fail. IPA should not care if IP address is network or not. This commit allows usage of network addresses in: * host plugin * dns plugin * server-installer * client-installer https://fedorahosted.org/freeipa/ticket/5814 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaserver/plugins')
-rw-r--r--ipaserver/plugins/dns.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/ipaserver/plugins/dns.py b/ipaserver/plugins/dns.py
index f048351e6..a5f11a47f 100644
--- a/ipaserver/plugins/dns.py
+++ b/ipaserver/plugins/dns.py
@@ -413,8 +413,7 @@ def _validate_bind_aci(ugettext, bind_acis):
bind_aci = bind_aci[1:]
try:
- ip = CheckedIPAddress(bind_aci, parse_netmask=True,
- allow_network=True, allow_loopback=True)
+ CheckedIPAddress(bind_aci, parse_netmask=True, allow_loopback=True)
except (netaddr.AddrFormatError, ValueError) as e:
return unicode(e)
except UnboundLocalError:
@@ -439,7 +438,7 @@ def _normalize_bind_aci(bind_acis):
try:
ip = CheckedIPAddress(bind_aci, parse_netmask=True,
- allow_network=True, allow_loopback=True)
+ allow_loopback=True)
if '/' in bind_aci: # addr with netmask
netmask = "/%s" % ip.prefixlen
else: