From f382631f1c6028eb856257b60c0e99b12ab47368 Mon Sep 17 00:00:00 2001 From: LIU Yulong Date: Wed, 30 Jan 2019 17:06:14 +0800 Subject: [PATCH] Adds PORT_FORWARDING_FLOATINGIP_KEY Let's make the constants to the consistent place. Originally from: neutron/services/portforwarding/pf_plugin.py [1]. This constant will not be not widely used, and it is only for port forwarding floating IPs QoS only. [1] https://review.openstack.org/#/c/631448/ Change-Id: I80da2eed0fd8c78e6d15755ac0a4ed79c6f2143b Related-Bug: #1796925 --- neutron_lib/constants.py | 1 + .../Adds-PORT_FORWARDING_FLOATINGIP_KEY-ee2c7d164bea04b4.yaml | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 releasenotes/notes/Adds-PORT_FORWARDING_FLOATINGIP_KEY-ee2c7d164bea04b4.yaml diff --git a/neutron_lib/constants.py b/neutron_lib/constants.py index 371899cad..253b11d00 100644 --- a/neutron_lib/constants.py +++ b/neutron_lib/constants.py @@ -78,6 +78,7 @@ ROUTER_INTERFACE_OWNERS_SNAT = (DEVICE_OWNER_ROUTER_INTF, DEVICE_ID_RESERVED_DHCP_PORT = 'reserved_dhcp_port' FLOATINGIP_KEY = '_floatingips' +PORT_FORWARDING_FLOATINGIP_KEY = '_pf_floatingips' INTERFACE_KEY = '_interfaces' HA_INTERFACE_KEY = '_ha_interface' diff --git a/releasenotes/notes/Adds-PORT_FORWARDING_FLOATINGIP_KEY-ee2c7d164bea04b4.yaml b/releasenotes/notes/Adds-PORT_FORWARDING_FLOATINGIP_KEY-ee2c7d164bea04b4.yaml new file mode 100644 index 000000000..5c6f0d4fb --- /dev/null +++ b/releasenotes/notes/Adds-PORT_FORWARDING_FLOATINGIP_KEY-ee2c7d164bea04b4.yaml @@ -0,0 +1,4 @@ +--- +other: + - | + Add new ``PORT_FORWARDING_FLOATINGIP_KEY`` constant.