modified: ri_cmd.py

modified:   ri_data.py
	modified:   ../xml/interface.xml
    add check network hostname ip netmask DNS.
This commit is contained in:
fling
2010-12-07 14:44:36 +08:00
parent 1c05b41ccc
commit e332f9de9c
3 changed files with 32 additions and 2 deletions

View File

@@ -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 = {}