Skip to content

Commit

Permalink
Call set_static_route_entries to update static routes
Browse files Browse the repository at this point in the history
A call to set_static_route_entries was missing before updating the routing
instance when global ASN changes. This causes the static routes to remain
unchanged.

Change-Id: Ie156e6ac888104fbfde740b5bf5219f415a107f3
Closes-Bug: 1565142
  • Loading branch information
Sachin Bansal committed Apr 4, 2016
1 parent d09bcd9 commit e4aa336
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/config/schema-transformer/config_db.py
Expand Up @@ -465,6 +465,7 @@ def update_autonomous_system(self, new_asn):
if old_rtgt_name in static_route.route_target:
static_route.route_target.remove(old_rtgt_name)
static_route.route_target.append(new_rtgt_name)
left_ri.obj.set_static_route_entries(static_route_entries)
self._vnc_lib.routing_instance_update(left_ri.obj)
try:
RouteTargetST.delete(old_rtgt_obj.get_fq_name()[0])
Expand Down

0 comments on commit e4aa336

Please sign in to comment.