Exemplo n.º 1
0
    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,
        )
Exemplo n.º 2
0
    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
Exemplo n.º 3
0
    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