

def _remove_port(self, lport):
    if (lport.get_device_owner() == common_const.DEVICE_OWNER_ROUTER_INTF):
        return
    parser = self.get_datapath().ofproto_parser
    ofproto = self.get_datapath().ofproto
    dst_ip = lport.get_ip()
    network_id = lport.get_external_value('local_network_id')
    if (netaddr.IPAddress(dst_ip).version == 4):
        match = parser.OFPMatch(eth_type=ether.ETH_TYPE_IP, metadata=network_id, ipv4_dst=dst_ip)
    else:
        match = parser.OFPMatch(eth_type=ether.ETH_TYPE_IPV6, metadata=network_id, ipv6_dst=dst_ip)
    self.mod_flow(datapath=self.get_datapath(), table_id=const.L3_PROACTIVE_LOOKUP_TABLE, command=ofproto.OFPFC_DELETE, priority=const.PRIORITY_HIGH, out_port=ofproto.OFPP_ANY, out_group=parser.OFPG_ANY, match=match)

dataset/ETHPy150Open openstack/dragonflow/dragonflow/controller/l3_proactive_app.py L3ProactiveApp._remove_port/VarMisuse@169/256 `ofproto`->`parser`