From 5cbfecc7bc7d184e484163c549b723e5976dc320 Mon Sep 17 00:00:00 2001 From: Boden R Date: Wed, 6 Feb 2019 09:30:57 -0700 Subject: [PATCH] rehome trunk related callback resource names This patch rehomes the SUBPORTS, TRUNK and TRUNK_PLUGIN constants from neutron.services.trunk.constants into the neutron-lib callback resources as they are used in callbacks today [1]. [1] http://codesearch.openstack.org/?q=%5C.(SUBPORTS%7CTRUNK%7CTRUNK_PLUGIN)%2C Change-Id: I26d9e748cdf1425d206d3e63056986011a518d6f --- neutron_lib/callbacks/resources.py | 3 +++ .../rehome-trunk-callback-resources-be40f8382490ef0d.yaml | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 releasenotes/notes/rehome-trunk-callback-resources-be40f8382490ef0d.yaml diff --git a/neutron_lib/callbacks/resources.py b/neutron_lib/callbacks/resources.py index 8a87d0711..1019f6d03 100644 --- a/neutron_lib/callbacks/resources.py +++ b/neutron_lib/callbacks/resources.py @@ -32,3 +32,6 @@ SEGMENT_HOST_MAPPING = 'segment_host_mapping' SUBNET = 'subnet' SUBNETS = 'subnets' SUBNETPOOL_ADDRESS_SCOPE = 'subnetpool_address_scope' +SUBPORTS = 'subports' +TRUNK = 'trunk' +TRUNK_PLUGIN = 'trunk_plugin' diff --git a/releasenotes/notes/rehome-trunk-callback-resources-be40f8382490ef0d.yaml b/releasenotes/notes/rehome-trunk-callback-resources-be40f8382490ef0d.yaml new file mode 100644 index 000000000..e7c19bbe3 --- /dev/null +++ b/releasenotes/notes/rehome-trunk-callback-resources-be40f8382490ef0d.yaml @@ -0,0 +1,5 @@ +--- +features: + - The ``SUBPORTS``, ``TRUNK`` and ``TRUNK_PLUGIN`` constants are now + available in ``neutron_lib.callbacks.resources`` for defining Trunk + related callback resources.