From 4f1c85ab968ff9ddae43af9d63accf147abf2cce Mon Sep 17 00:00:00 2001 From: Tong Liu Date: Fri, 31 Mar 2017 23:13:57 +0000 Subject: [PATCH] NSXv3: Default native_dhcp_metadata to True Starting newton we added support for native DHCP and metadata provided by NSX. Since now most of the NSXv3 deployment are using native DHCP/Metadata, default this option to True. Change-Id: Id16fb64d898a46016f1e8e929a914d347b659458 --- devstack/lib/vmware_nsx_v3 | 2 +- .../notes/nsxv3-native-dhcp-config-2b6bdd372a2d643f.yaml | 9 +++++++++ vmware_nsx/common/config.py | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/nsxv3-native-dhcp-config-2b6bdd372a2d643f.yaml diff --git a/devstack/lib/vmware_nsx_v3 b/devstack/lib/vmware_nsx_v3 index 09d68b0218..0f490c3fbc 100644 --- a/devstack/lib/vmware_nsx_v3 +++ b/devstack/lib/vmware_nsx_v3 @@ -32,7 +32,7 @@ NSX_GATEWAY_NETWORK_INTERFACE=${NSX_GATEWAY_NETWORK_INTERFACE:-} Q_USE_PROVIDERNET_FOR_PUBLIC=False # Native support from platform -NATIVE_DHCP_METADATA=${NATIVE_DHCP_METADATA:-False} +NATIVE_DHCP_METADATA=${NATIVE_DHCP_METADATA:-True} NATIVE_METADATA_ROUTE=${NATIVE_METADATA_ROUTE:-169.254.169.254/31} METADATA_PROXY_SHARED_SECRET=${METADATA_PROXY_SHARED_SECRET:-} diff --git a/releasenotes/notes/nsxv3-native-dhcp-config-2b6bdd372a2d643f.yaml b/releasenotes/notes/nsxv3-native-dhcp-config-2b6bdd372a2d643f.yaml new file mode 100644 index 0000000000..508c2b83f0 --- /dev/null +++ b/releasenotes/notes/nsxv3-native-dhcp-config-2b6bdd372a2d643f.yaml @@ -0,0 +1,9 @@ +--- +prelude: > + Starting Newton release we added support for native DHCP and metadata + provided by NSXv3 backend. +features: + - Since now most of the NSXv3 deployment are using native DHCP/Metadata, + default this option native_dhcp_metadata to True. By default, it will + use NSXv3 native DHCP and Metadata unless this has been explicitly + set to False. diff --git a/vmware_nsx/common/config.py b/vmware_nsx/common/config.py index 207e848616..0497797239 100644 --- a/vmware_nsx/common/config.py +++ b/vmware_nsx/common/config.py @@ -379,7 +379,7 @@ nsx_v3_opts = [ "for a router only when the router is attached to a " "DHCP-disabled subnet.")), cfg.BoolOpt('native_dhcp_metadata', - default=False, + default=True, help=_("If true, DHCP and metadata proxy services will be " "provided by NSX backend.")), cfg.StrOpt('native_metadata_route',