From 051f55e26686569d8db0c0fe24d5632fb626449b Mon Sep 17 00:00:00 2001 From: linb Date: Tue, 5 Apr 2016 14:51:54 +0800 Subject: [PATCH] Change async static route call to sync If we use async call to update static route, since static route op has dependency relationship with interface/vnic, error would raise if interface/vnic call is executed before asyn static route is executed completely. Closes-bug: #1566753 Change-Id: I4b910a33b03e12d207f32091d7185f0f72823ce0 --- vmware_nsx/plugins/nsx_v/vshield/vcns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmware_nsx/plugins/nsx_v/vshield/vcns.py b/vmware_nsx/plugins/nsx_v/vshield/vcns.py index 48b61f2aae..8cfb0cdfc6 100644 --- a/vmware_nsx/plugins/nsx_v/vshield/vcns.py +++ b/vmware_nsx/plugins/nsx_v/vshield/vcns.py @@ -226,7 +226,7 @@ class Vcns(object): return self.do_request(HTTP_GET, uri) def update_routes(self, edge_id, routes): - uri = "%s/%s/routing/config/static?async=true" % (URI_PREFIX, edge_id) + uri = "%s/%s/routing/config/static" % (URI_PREFIX, edge_id) return self.do_request(HTTP_PUT, uri, routes) def create_lswitch(self, lsconfig):