From 4c39634d2853c8a5fa8e7bb481c079ba384c9fab Mon Sep 17 00:00:00 2001 From: Miguel Lavalle Date: Sun, 15 Oct 2017 18:21:23 -0500 Subject: [PATCH] Add new resource for port bindings As a result of implementing providing Nova port binding information for live migration [1], a new resource for callbacks is required. This resource will be used by the multiple port binding service plugin [2] to notify the core plugin and other subscribers when create, update and delete operations are performed on a port binding. [1] https://review.openstack.org/#/c/460021 [2] https://review.openstack.org/#/c/414251 Related-Bug: #1580880 Change-Id: Ibbc7af67cf1282cbf7d9d3a681b9a04a7922c24a --- neutron_lib/callbacks/resources.py | 1 + .../notes/add-port-binding-resource-73f9800dbda121ca.yaml | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 releasenotes/notes/add-port-binding-resource-73f9800dbda121ca.yaml diff --git a/neutron_lib/callbacks/resources.py b/neutron_lib/callbacks/resources.py index c91d9e3e6..5886e56ba 100644 --- a/neutron_lib/callbacks/resources.py +++ b/neutron_lib/callbacks/resources.py @@ -17,6 +17,7 @@ NETWORK = 'network' NETWORKS = 'networks' PORT = 'port' PORTS = 'ports' +PORT_BINDING = 'port_binding' PORT_DEVICE = 'port_device' PROCESS = 'process' ROUTER = 'router' diff --git a/releasenotes/notes/add-port-binding-resource-73f9800dbda121ca.yaml b/releasenotes/notes/add-port-binding-resource-73f9800dbda121ca.yaml new file mode 100644 index 000000000..ce2800294 --- /dev/null +++ b/releasenotes/notes/add-port-binding-resource-73f9800dbda121ca.yaml @@ -0,0 +1,7 @@ +--- +features: + - A new ``PORT_BINDING`` resource definition has been added to + ``neutron_lib.callbacks.resources``, to enable the multiple port + binding service plugin to notify the core plugin and other + subscribers when create, update and delete operations are performed + on a port binding.