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: I412d3503aa32c283486c24087da13ac76d4334e2
Closes-Bug: 1565142
(cherry picked from commit 79c16a8)
  • Loading branch information
Sachin Bansal committed Apr 3, 2016
1 parent ad7ee75 commit cdfc3d2
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 @@ -324,6 +324,7 @@ def update_autonomous_system(cls, 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)
_vnc_lib.routing_instance_update(left_ri.obj)
try:
RouteTargetST.delete(old_rtgt_obj.get_fq_name()[0])
Expand Down

0 comments on commit cdfc3d2

Please sign in to comment.