ironic.dhcp.neutron Module¶ironic.dhcp.neutron.NeutronDHCPApi[source]¶Bases: ironic.dhcp.base.BaseDHCP
API for communicating to neutron 2.x API.
get_ip_addresses(task)[source]¶Get IP addresses for all ports/portgroups in task.
| Parameters: | task – a TaskManager instance. |
|---|---|
| Returns: | List of IP addresses associated with task’s ports/portgroups. |
update_dhcp_opts(task, options, vifs=None)[source]¶Send or update the DHCP BOOT options for this node.
| Parameters: |
|
|---|
update_port_dhcp_opts(port_id, dhcp_options, token=None, context=None)[source]¶Update a port’s attributes.
Update one or more DHCP options on the specified port. For the relevant API spec, see https://developer.openstack.org/api-ref/network/v2/index.html#update-port
| Parameters: |
|
|---|---|
| Raises: | FailedToUpdateDHCPOptOnPort |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.