From 1d645c8ef30f6a616ab4b40cdf8d6f098674be4f Mon Sep 17 00:00:00 2001 From: Miguel Lavalle Date: Wed, 25 Apr 2018 21:38:46 -0500 Subject: [PATCH] Add port bindings to RPC topics resources This change adds port bindings to the RPC topics resources. It also adds the 'activate' and 'deactivate' messages for this resource. This is done in support of the implementation of multiple port bindings. Change-Id: I5ed542b7a137338a0878f683decc5dcca7f814de Partial-Bug: #1580880 --- neutron_lib/agent/topics.py | 4 ++++ ...port-bindings-resource-messages-rpc-1382ba9842561cdb.yaml | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 releasenotes/notes/add-port-bindings-resource-messages-rpc-1382ba9842561cdb.yaml diff --git a/neutron_lib/agent/topics.py b/neutron_lib/agent/topics.py index b247a5f80..bdc874c7b 100644 --- a/neutron_lib/agent/topics.py +++ b/neutron_lib/agent/topics.py @@ -15,12 +15,14 @@ from neutron_lib.api.definitions import network from neutron_lib.api.definitions import port +from neutron_lib.api.definitions import portbindings_extended from neutron_lib.api.definitions import subnet NETWORK = network.RESOURCE_NAME SUBNET = subnet.RESOURCE_NAME PORT = port.RESOURCE_NAME +PORT_BINDING = portbindings_extended.RESOURCE_NAME SECURITY_GROUP = 'security_group' L2POPULATION = 'l2population' DVR = 'dvr' @@ -29,6 +31,8 @@ RESOURCES = 'resources' CREATE = 'create' DELETE = 'delete' UPDATE = 'update' +ACTIVATE = 'activate' +DEACTIVATE = 'deactivate' AGENT = 'q-agent-notifier' PLUGIN = 'q-plugin' diff --git a/releasenotes/notes/add-port-bindings-resource-messages-rpc-1382ba9842561cdb.yaml b/releasenotes/notes/add-port-bindings-resource-messages-rpc-1382ba9842561cdb.yaml new file mode 100644 index 000000000..98c7ebbb6 --- /dev/null +++ b/releasenotes/notes/add-port-bindings-resource-messages-rpc-1382ba9842561cdb.yaml @@ -0,0 +1,5 @@ +--- +features: + - New ``PORT_BINDING``, ``ACTIVATE`` and ``DEACTIVATE`` definitions have been + added to ``neutron_lib.agent.topics``, to enable plug-ins to notify agents + when a port binding has been activated or de-activated.