nsxv3 multi manager:fix backend cleaup

if multiple manager ips set in localrc, then during unstack backend
cleanup fails with error:-
requests.exceptions.ConnectionError:
HTTPSConnectionPool(host='10.112.202.39,10.112.202.7', port=443)

so this patch fix that issue.
Closes-bug: #1527091
Change-Id: I20ef8c6d08b0d1d85729018dcf65c54dad37db6e
This commit is contained in:
Saurabh Chordiya 2015-12-16 18:11:52 +05:30
parent f465606053
commit 8c90cd921d

View File

@ -40,6 +40,10 @@ elif [[ $Q_PLUGIN == 'vmware_nsx' ]]; then
elif [[ $Q_PLUGIN == 'vmware_nsx_v3' ]]; then
source $dir/lib/vmware_nsx_v3
if [[ "$1" == "unstack" ]]; then
NSX_MANAGER=${NSX_MANAGERS:-$NSX_MANAGER}
IFS=','
NSX_MANAGER=($NSX_MANAGER)
unset IFS
python $dir/tools/nsxt_cleanup.py --mgr-ip $NSX_MANAGER --user $NSX_USER --password $NSX_PASSWORD
fi
elif [[ $Q_PLUGIN == 'vmware_dvs' ]]; then