TVD: Fix devstack calls to certificate create/delete

Change-Id: I47e70569e31e1ae4417f456520cb27e5745a3deb
This commit is contained in:
Adit Sarfaty 2018-04-25 10:21:16 +03:00
parent 976057b154
commit 27d7f53f10

View File

@ -188,7 +188,7 @@ function init_vmware_nsx_tvd {
fi
# Generate client certificate
if [[ "$NSX_USE_CLIENT_CERT_AUTH" == "True" ]]; then
nsxadmin -o generate -r certificate
nsxadmin --plugin nsxv3 -o generate -r certificate
fi
if ! is_set NSX_GATEWAY_NETWORK_INTERFACE; then
echo "NSX_GATEWAY_NETWORK_INTERFACE not set not configuring routes"
@ -225,7 +225,7 @@ function init_vmware_nsx_tvd {
function stop_vmware_nsx_tvd {
# Clean client certificate if exists
nsxadmin -o clean -r certificate
nsxadmin --plugin nsxv3 -o clean -r certificate
if ! is_set NSX_GATEWAY_NETWORK_INTERFACE; then
echo "NSX_GATEWAY_NETWORK_INTERFACE was not configured."