示例#1
0
文件: virt.py 项目: Apekhsha/lago
    def start(self):
        if brctl.exists(self._libvirt_name()):
            return

        brctl.create(self._libvirt_name())
        try:
            super(BridgeNetwork, self).start()
        except:
            brctl.destroy(self._libvirt_name())
示例#2
0
文件: virt.py 项目: DavideD/lago
 def stop(self):
     super(BridgeNetwork, self).stop()
     if brctl.exists(self._libvirt_name()):
         brctl.destroy(self._libvirt_name())
示例#3
0
 def stop(self):
     super(BridgeNetwork, self).stop()
     if brctl.exists(self._libvirt_name()):
         brctl.destroy(self._libvirt_name())
示例#4
0
 def start(self):
     brctl.create(self._libvirt_name())
     try:
         super(BridgeNetwork, self).start()
     except:
         brctl.destroy(self._libvirt_name())