Skip to content

Commit

Permalink
Handle non existing router when removing service instance
Browse files Browse the repository at this point in the history
Change-Id: I6f438e901fc8c9688b69a911d445a9ef754a5efa
Closes-Bug: #1468001
  • Loading branch information
lebauce committed Jun 23, 2015
1 parent 05b0d64 commit c02391b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/config/svc-monitor/svc_monitor/snat_agent.py
Expand Up @@ -177,7 +177,10 @@ def delete_snat_instance(self, router_obj):
if vnc_rtr_obj:
# Clear logical gateway virtual network
vnc_rtr_obj.set_service_instance_list([])
self._vnc_lib.logical_router_update(vnc_rtr_obj)
try:
self._vnc_lib.logical_router_update(vnc_rtr_obj)
except vnc_exc.NoIdError:
pass

# Delete service instance
if si_obj:
Expand Down

0 comments on commit c02391b

Please sign in to comment.