From eef658bf5354e1a47b742851c29a1479c9aebcf8 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 4 Feb 2020 15:44:54 +0000 Subject: 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 Closes-bug: #1861876 --- nova/network/constants.py | 1 + 1 file changed, 1 insertion(+) (limited to 'nova/network/constants.py') 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' -- cgit v1.2.1