raiseCloudInternalException("Missing device configuration, Need to add your network configuration into /etc/network/interfaces at first")
else:
raiseCloudInternalException("Missing bridge/device network configuration, need to add your network configuration into /etc/network/interfaces at first")
raiseCloudInternalException("Missing device configuration, Need to add your network configuration into /etc/sysconfig/network-scripts at first")
else:
raiseCloudInternalException("Missing bridge/device network configuration, need to add your network configuration into /etc/sysconfig/network-scripts at first")
defaddBridge(self, brName, dev):
bash("ifdown %s"%dev.name)
ifnotos.path.exists(self.brCfgFile):
shutil.copy(self.devCfgFile, self.brCfgFile)
#config device file at first: disable nm, set onboot=yes if not