'Release the port currently being used by a DHCP agent.'

@db_api.retry_db_errors
def release_dhcp_port(self, context, **kwargs):

    host = kwargs.get('host')
    network_id = kwargs.get('network_id')
    device_id = kwargs.get('device_id')
    LOG.debug('DHCP    port    deletion    for    %(network_id)s    request    from    %(host)s', {'network_id': network_id, 'host': host})
    plugin = directory.get_plugin()
    plugin.delete_ports_by_device_id(context, device_id, network_id)
