modified: ri_cmd.py
modified: ri_data.py
modified: ../xml/interface.xml
add check network hostname ip netmask DNS.
This commit is contained in:
@@ -450,6 +450,13 @@ p_node - xml node (parent node)'''
|
||||
to_xml_attr(doc, ntwk, Network, nm)
|
||||
p_node.appendChild(ntwk)
|
||||
|
||||
@staticmethod
|
||||
def check_ip() :
|
||||
"""check network ip"""
|
||||
if Network.ip and Network.mask and Network.gateway and Network.primary_dns:
|
||||
return True
|
||||
return False
|
||||
|
||||
class Group:
|
||||
''' software package group '''
|
||||
dict = {}
|
||||
|
||||
Reference in New Issue
Block a user