Skip to content

Commit

Permalink
set pending_field_update after updating static routes so that it is r…
Browse files Browse the repository at this point in the history
…eflected in api server

Change-Id: If42a04863d598286ddb18727340897d0d8302ed0
Closes-Bug: 1377467
  • Loading branch information
Sachin Bansal committed Oct 9, 2014
1 parent d76dc91 commit f2dc240
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 @@ -790,6 +790,7 @@ def delete_route(self, prefix):
static_route.route_target.remove(self.get_route_target())
if static_route.route_target == []:
static_route_entries.delete_route(static_route)
left_ri.obj._pending_field_updates.add('static_route_entries')
_vnc_lib.routing_instance_update(left_ri.obj)
return
# end delete_route
Expand Down

0 comments on commit f2dc240

Please sign in to comment.