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
This commit is contained in:
Miguel Lavalle 2018-04-25 21:38:46 -05:00
parent b34d0e94b3
commit 1d645c8ef3
2 changed files with 9 additions and 0 deletions

View File

@ -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'

View File

@ -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.