bug 4.3/950
check net. modified: ri_tk_cmd.py modified: ../operation/configure_network.sh
This commit is contained in:
@@ -138,11 +138,12 @@ def network_quit():
|
||||
|
||||
if not ri_data.Network.hostname:
|
||||
ri_widget.MessageBox.dict['check_ip_hostname'].show()
|
||||
ri_widget.Sequence.previous()
|
||||
elif ri_data.Network.configuration == "static" and \
|
||||
(not ri_data.Network.ip or \
|
||||
not ri_data.Network.mask or \
|
||||
not ri_data.Network.gateway or \
|
||||
not ri_data.Network.primary_dns) :
|
||||
(not re.match("^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$",ri_data.Network.ip) or \
|
||||
not re.match("^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$",ri_data.Network.mask) or \
|
||||
not re.match("^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$",ri_data.Network.gateway) or \
|
||||
not re.match("^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$",ri_data.Network.primary_dns)):
|
||||
ri_widget.MessageBox.dict['check_ip_hostname'].show()
|
||||
ri_widget.Sequence.previous()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user