def delete_floatingip_agent_gateway_port(
        self, context, host_id, ext_net_id):
        # delete any fip agent gw port
        device_filter = {'device_owner': [const.DEVICE_OWNER_AGENT_GW],
                         'network_id': [ext_net_id]}
        ports = self._core_plugin.get_ports(context,
                                            filters=device_filter)
        for p in ports:
            if not host_id or p[portbindings.HOST_ID] == host_id:
                self._core_plugin.ipam.delete_port(context, p['id'])
                if host_id:
                    return
Writes a packet to the server.
dataset/ETHPy150Open openstack/neutron/neutron/db/l3_dvr_db.py/L3_NAT_with_dvr_db_mixin.delete_floatingip_agent_gateway_port--crossover with--dataset/ETHPy150Open ammaraskar/pyCraft/minecraft/networking/connection.py/Connection.write_packet