summaryrefslogtreecommitdiff
path: root/nova/network/constants.py
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2020-02-04 15:44:54 +0000
committerStephen Finucane <sfinucan@redhat.com>2020-02-04 17:36:24 +0000
commiteef658bf5354e1a47b742851c29a1479c9aebcf8 (patch)
treeb07453c1930e2d2b78b6e70beda67ab69fcc4994 /nova/network/constants.py
parent7601efa5e356c6035dd27a59e883fb0ef98a68f6 (diff)
downloadnova-eef658bf5354e1a47b742851c29a1479c9aebcf8.tar.gz
Handle neutron without the fip-port-details extension
The 'fip-port-details' API extension was added to neutron in Rocky [1] and is optional. As a result, we cannot rely on the 'port_details' field being present in API responses. If it is not, we need to make a second query for all ports and build 'port_details' using the 'port_id' field. [1] https://docs.openstack.org/releasenotes/neutron-lib/rocky.html#relnotes-1-14-0-stable-rocky-new-features Change-Id: Ifb96f31f471cc0a25c1dfce2161a669b97a384ae Signed-off-by: Stephen Finucane <sfinucan@redhat.com> Closes-bug: #1861876
Diffstat (limited to 'nova/network/constants.py')
-rw-r--r--nova/network/constants.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/network/constants.py b/nova/network/constants.py
index 1bb4605c9f..cfa5b1b9d2 100644
--- a/nova/network/constants.py
+++ b/nova/network/constants.py
@@ -18,6 +18,7 @@ NET_EXTERNAL = 'router:external'
VNIC_INDEX_EXT = 'VNIC Index'
DNS_INTEGRATION = 'DNS Integration'
MULTI_NET_EXT = 'Multi Provider Network'
+FIP_PORT_DETAILS = 'Floating IP Port Details Extension'
SUBSTR_PORT_FILTERING = 'IP address substring filtering'
PORT_BINDING_EXTENDED = 'Port Bindings Extended'
LIVE_MIGRATION = 'live-migration'