From d9808498a82fa8662e5bc1bc1fca4d175fe9447c Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Thu, 16 Jun 2011 10:47:11 +0200 Subject: Improve IP address handling in IPA option parser Implements a way to pass match_local and parse_netmask parameters to IP option checker. Now, there is just one common option type "ip" with new optional attributes "ip_local" and "ip_netmask" which can be used to pass IP address validation parameters. https://fedorahosted.org/freeipa/ticket/1333 --- install/tools/ipa-replica-prepare | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'install/tools/ipa-replica-prepare') diff --git a/install/tools/ipa-replica-prepare b/install/tools/ipa-replica-prepare index 8117bfcdd..97dd96a19 100755 --- a/install/tools/ipa-replica-prepare +++ b/install/tools/ipa-replica-prepare @@ -54,7 +54,8 @@ def parse_options(): parser.add_option("-p", "--password", dest="password", help="Directory Manager (existing master) password") parser.add_option("--ip-address", dest="ip_address", - type="ipnet", help="Add A and PTR records of the future replica") + type="ip", ip_netmask=True, + help="Add A and PTR records of the future replica") parser.add_option("--ca", dest="ca_file", default="/root/cacert.p12", help="Location of CA PKCS#12 file, default /root/cacert.p12") parser.add_option("--no-pkinit", dest="setup_pkinit", action="store_false", -- cgit