NSXv: ensure that update_interface is synchronous

When multiple updates occur at the same time we need to make sure
that the edge interface update is atomic.

Change-Id: Ic2f82cd23473efd41911ea41e2175e2833cc4a30
Closes-bug: #1476970
This commit is contained in:
Gary Kotton 2015-07-22 00:28:52 -07:00
parent d186c36403
commit bc62e7a442
1 changed files with 2 additions and 2 deletions

View File

@ -158,8 +158,8 @@ class Vcns(object):
return self.do_request(HTTP_GET, uri, decode=True)
def update_interface(self, edge_id, vnic):
uri = "%s/%s/vnics/%d?async=true" % (URI_PREFIX, edge_id,
vnic['index'])
uri = "%s/%s/vnics/%d" % (URI_PREFIX, edge_id,
vnic['index'])
return self.do_request(HTTP_PUT, uri, vnic, decode=True)
def delete_interface(self, edge_id, vnic_index):