rewrite deploy_nsx

Change-Id: Ic108890ba97c9046173a7c939fde8a29ff2aad62