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:
parent
d186c36403
commit
bc62e7a442
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue