Skip to content

Commit

Permalink
Set the vmi peroperty before updating it to api server
Browse files Browse the repository at this point in the history
There was a change in the way this API works. Now it requires explicit calls to
set each field otherwise it will not be updated in API server.

Change-Id: Id2517b441cf3e92e5bc37ab8359c83583db6a4ad
Closes-Bug: 1411245
(cherry picked from commit f966b8e)
  • Loading branch information
Sachin Bansal committed Feb 8, 2015
1 parent 187b262 commit 8bdcff0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/config/schema-transformer/to_bgp.py
Expand Up @@ -2329,6 +2329,7 @@ def process_analyzer(self):
if mirror_to.__dict__ == self.interface_mirror.mirror_to.__dict__:
return
vmi_props.set_interface_mirror(self.interface_mirror)
if_obj.set_virtual_machine_interface_properties(vmi_props)
try:
_vnc_lib.virtual_machine_interface_update(if_obj)
except NoIdError:
Expand Down

0 comments on commit 8bdcff0

Please sign in to comment.