'Plug port with linux bridge in the middle.'

def hybrid_plug_port(self, port_name):

    ip_wrapper = ip_lib.IPWrapper(self.namespace)
    (qvb_name, qvo_name) = self._get_veth_pair_names(self.port_id)
    (qvb, qvo) = self.useFixture(NamedVethFixture(qvb_name, qvo_name)).ports
    qvb.link.set_up()
    qvo.link.set_up()
    qbr_name = self._get_br_name(self.port_id)
    self.qbr = self.useFixture(LinuxBridgeFixture(qbr_name, namespace=None, prefix_is_full_name=True)).bridge
    self.qbr.link.set_up()
    self.qbr.setfd(0)
    self.qbr.disable_stp()
    self.qbr.addif(qvb_name)
    qvo_attrs = ('external_ids', {'iface-id': self.port_id, 'iface-status': 'active', 'attached-mac': self.mac})
    self.bridge.add_port(qvo_name, qvo_attrs)
    hybrid_port_name = iptables_firewall.get_hybrid_port_name(self.port_id)
    (bridge_port, self.port) = self.useFixture(NamedVethFixture(hybrid_port_name)).ports
    self.addCleanup(self.port.link.delete)
    ip_wrapper.add_device_to_namespace(self.port)
    bridge_port.link.set_up()
    self.qbr.addif(bridge_port)
    self.port.link.set_address(self.mac)
    self.port.link.set_up()
