def start(self): if brctl.exists(self._libvirt_name()): return brctl.create(self._libvirt_name()) try: super().start() except: brctl.destroy(self._libvirt_name())
def stop(self): super().stop() if brctl.exists(self._libvirt_name()): brctl.destroy(self._libvirt_name())
def stop(self): super(BridgeNetwork, self).stop() if brctl.exists(self._libvirt_name()): brctl.destroy(self._libvirt_name())