This Page

The quantum.db.dhcp_rpc_base Module

class quantum.db.dhcp_rpc_base.DhcpRpcCallbackMixin

Bases: object

A mix-in that enable DHCP agent support in plugin implementations.

get_active_networks(context, **kwargs)

Retrieve and return a list of the active network ids.

get_dhcp_port(context, **kwargs)

Allocate a DHCP port for the host and return port information.

This method will re-use an existing port if one already exists. When a port is re-used, the fixed_ip allocation will be updated to the current network state.

get_network_info(context, **kwargs)

Retrieve and return a extended information about a network.

release_dhcp_port(context, **kwargs)

Release the port currently being used by a DHCP agent.

release_port_fixed_ip(context, **kwargs)

Release the fixed_ip associated the subnet on a port.

update_lease_expiration(context, **kwargs)

Release the fixed_ip associated the subnet on a port.