summaryrefslogtreecommitdiffstats
path: root/ipatests/test_ipapython
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-09-02 17:07:03 +0200
committerDavid Kupka <dkupka@redhat.com>2016-09-07 16:22:03 +0200
commit71ad8d4fc982b5349248d50338e1d16ce45c523e (patch)
tree4e59604db2722432ef625f8da575a029a94a0bf7 /ipatests/test_ipapython
parent81d64d530cca148198312d3d993502575b288f63 (diff)
downloadfreeipa-71ad8d4fc982b5349248d50338e1d16ce45c523e.tar.gz
freeipa-71ad8d4fc982b5349248d50338e1d16ce45c523e.tar.xz
freeipa-71ad8d4fc982b5349248d50338e1d16ce45c523e.zip
Allow broadcast ip addresses
Currently environments may use prefix /31 on point-to-point connections what makes IPA validators to fail. IPA should not care if IP address is broadcast or not. In some cases (when prefix is not specified) IPA cannot decide properly if broadcast address is really broadcast. This commit allows usage of broadcast 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 'ipatests/test_ipapython')
-rw-r--r--ipatests/test_ipapython/test_ipautil.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipatests/test_ipapython/test_ipautil.py b/ipatests/test_ipapython/test_ipautil.py
index ea9251bc2..be59665ba 100644
--- a/ipatests/test_ipapython/test_ipautil.py
+++ b/ipatests/test_ipapython/test_ipautil.py
@@ -55,8 +55,10 @@ def test_ip_address():
('241.1.2.3',),
('169.254.1.2',),
('10.11.12.0/24', (10, 11, 12, 0), 24),
+ ('10.0.0.255', (10, 0, 0, 255), 8),
('224.5.6.7',),
- ('10.11.12.255/24',),
+ ('10.11.12.255/24', (10, 11, 12, 255), 24),
+ ('255.255.255.255',),
('::/0',),
('2001::1', (0x2001, 0, 0, 0, 0, 0, 0, 1), 64),