def bridge_start(self): if self.server.network_mode != BRIDGE: return self.bridge_interface, self.host_interface_data = add_interface( self.server.network, self.interface, )
def bridge_start(self): if self.server.network_mode != BRIDGE: return try: self.bridge_interface, self.host_interface_data = add_interface( self.server.network, self.interface, ) except BridgeLookupError: self.server.output.push_output( 'ERROR Failed to find bridged network interface') raise