NSXv3: Always clean client certificate in devstack

Change-Id: Iad8ae7b2fff3301a112ce7e55d0eb639ec089905
This commit is contained in:
Anna Khmelnitsky 2017-03-27 18:11:13 -07:00
parent df7f28f890
commit a464d14181

View File

@ -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