Skip to content

Commit

Permalink
Fix schema crash when deleting RT
Browse files Browse the repository at this point in the history
Change-Id: Ib277781c2b6862fceb9590f05f4021d6c6f83140
Closes-Bug: #1462921
  • Loading branch information
safchain committed Jun 8, 2015
1 parent 06b82cb commit 7ee732a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/config/schema-transformer/to_bgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,10 @@ def add_connection(self, ri2):
def delete_connection(self, ri2):
self.connections.discard(ri2.get_fq_name_str())
ri2.connections.discard(self.get_fq_name_str())
self.obj = _vnc_lib.routing_instance_read(id=self.obj.uuid)
try:
self.obj = _vnc_lib.routing_instance_read(id=self.obj.uuid)
except NoIdError:
return
self.obj.del_routing_instance(ri2.obj)
_vnc_lib.routing_instance_update(self.obj)
# end delete_connection
Expand Down

0 comments on commit 7ee732a

Please sign in to comment.