ironic/releasenotes/notes/deprecate-dhcp-update-mac-address-f12a4959432c8e20.yaml
Sam Betts 9088891ce7 Add Virtual Network Interface Driver APIs
This patch adds the driver API interfaces for the virtual network
interface API in order to abstract the task of assigning logical network
interfaces to physical network interfaces.

Since the OpenStack Newton release, Ironic provides an interface for
pluggable network implementations. Different network implementations may
want to handle how logical to physical network interface assignment
happens. To do this the new API calls into new functions on the network
implementation loaded for the specified node.

This is part 1 of 3, and adds four new functions vif_attach, vif_detach,
vif_list, port_changed, portgroup_changed, get_current_vif to the base
network interface class, which should be overridden by network interface
implementations.

DHCP provider update_mac_address method was deprecated, network
interface port_changed() and portgroup_changed() should be used instead.

Co-Authored-By: Vasyl Saienko (vsaienko@mirantis.com)
Change-Id: I0b84cfd85557d18254697f2e539c583ea0f8e88c
Partial-Bug: #1582188
Closes-Bug: #1158684
2016-12-23 11:58:02 +00:00

26 lines
916 B
YAML

---
features:
- |
Adds new methods to network interfaces, they will become
mandatory in Pike release:
* ``vif_list`` - List attached VIF IDs for a node
* ``vif_attach`` - Attach a virtual network interface to a node
* ``vif_detach`` - Detach a virtual network interface from a node
* ``port_changed`` - Handle any actions required when a port
changes
* ``portgroup_changed`` - Handle any actions required when a
portgroup changes
* ``get_current_vif`` - Return VIF ID attached to port or portgroup
object.
deprecations:
- |
``update_mac_address`` method in DHCP providers is
deprecated and will be removed in the Pike release.
The logic should be moved to a custom network
interface's ``port_changed`` and ``portgroup_changed``.
fixes:
- |
An issue when pre-created tenant port was automatically
deleted by Ironic on instance delete.