if self._cu.get_port_vlan_master_if(port_meta) != self._cu.PORT_VLAN_UNSPECIFIED:
master_if = self._cu.get_port_vlan_master_if(
port_meta)
- if self._cu._port_to_br.has_key(master_if):
+ if master_if in self._cu._port_to_br:
self._cu._port_to_br[port_name] = br_src
port_src = port_name
port_dst = master_if
if peer_dst in self._port_to_br:
self._cu.add_linkpair(
Device(br_name, Device.BR_TYPE),
- Device(self._port_to_br[peer_dst], Device.BR_TYPE),
+ Device(self._port_to_br[
+ peer_dst], Device.BR_TYPE),
Port(peer_src),
Port(peer_dst),
self._formatter.VETH_FORMAT)