|
|
|
@ -105,7 +105,7 @@ CMD_OPTIONS = [{'shortOption':"d",
|
|
|
|
|
'help':_("get ip address by %s for specified interface")%"DHCP"
|
|
|
|
|
},
|
|
|
|
|
{'longOption':"ip",
|
|
|
|
|
'optVal':"IFACE:IP",
|
|
|
|
|
'optVal':"[IFACE:]IP",
|
|
|
|
|
'action':'append',
|
|
|
|
|
'help':_("ip address with net (example:%s)")%"192.168.1.1/24"
|
|
|
|
|
},
|
|
|
|
@ -223,7 +223,7 @@ class install_cmd(share_cmd):
|
|
|
|
|
self.optobj.error(errMsg)
|
|
|
|
|
if values.ip:
|
|
|
|
|
for ipaddr in values.ip:
|
|
|
|
|
if not re.match("^\w+:%s$"%iputils.IP_ADDR_NET,ipaddr):
|
|
|
|
|
if not re.match("^(\w+:)?%s$"%iputils.IP_ADDR_NET,ipaddr):
|
|
|
|
|
self.optobj.error(_("option %s:") %"--ip" +\
|
|
|
|
|
" " + _("ip specifing error: '{ip}' "
|
|
|
|
|
"(example: '{example}')").format(\
|
|
|
|
|