From 326b8ade8ab6cfb98dc97f4aa179868f5e80abc1 Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Fri, 19 Aug 2016 05:46:21 -0700 Subject: [PATCH] NSX|V: retry on failed virtual wire create In the event that a virtual wire creation fails then we will do a retry. This may be due to the fact that the VC is busy. Change-Id: Ib5af704deac86dfe3414bdb949c534ef8e8ed071 --- vmware_nsx/plugins/nsx_v/vshield/vcns.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vmware_nsx/plugins/nsx_v/vshield/vcns.py b/vmware_nsx/plugins/nsx_v/vshield/vcns.py index d7b56508e9..46c10524bc 100644 --- a/vmware_nsx/plugins/nsx_v/vshield/vcns.py +++ b/vmware_nsx/plugins/nsx_v/vshield/vcns.py @@ -429,6 +429,7 @@ class Vcns(object): uri = self._build_uri_path(edge_id, IPSEC_VPN_SERVICE) return self.do_request(HTTP_GET, uri) + @retry_upon_exception(exceptions.RequestBad) def create_virtual_wire(self, vdn_scope_id, request): """Creates a VXLAN virtual wire