From a464d141811454df524eb46297958aaeec21be99 Mon Sep 17 00:00:00 2001 From: Anna Khmelnitsky Date: Mon, 27 Mar 2017 18:11:13 -0700 Subject: [PATCH] NSXv3: Always clean client certificate in devstack Change-Id: Iad8ae7b2fff3301a112ce7e55d0eb639ec089905 --- devstack/lib/vmware_nsx_v3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devstack/lib/vmware_nsx_v3 b/devstack/lib/vmware_nsx_v3 index a14eb3d59a..09d68b0218 100644 --- a/devstack/lib/vmware_nsx_v3 +++ b/devstack/lib/vmware_nsx_v3 @@ -261,6 +261,9 @@ function init_vmware_nsx_v3 { } function stop_vmware_nsx_v3 { + # Clean client certificate if exists + nsxadmin -o clean -r certificate + if ! is_set NSX_GATEWAY_NETWORK_INTERFACE; then echo "NSX_GATEWAY_NETWORK_INTERFACE was not configured." return @@ -281,9 +284,6 @@ function stop_vmware_nsx_v3 { for address in $addresses; do sudo ip addr add dev $NSX_GATEWAY_NETWORK_INTERFACE $address done - - # Clean client certificate if exists - nsxadmin -o clean -r certificate } # Restore xtrace