From 608b76d27eda2ec7eba47e84a17b21d678ef54a4 Mon Sep 17 00:00:00 2001 From: Sachin Bansal Date: Fri, 1 Apr 2016 16:41:10 -0700 Subject: [PATCH] Call set_static_route_entries to update static routes 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 79c16a8402ea37875f7e2500d239c8317bfb306e) --- src/config/schema-transformer/to_bgp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config/schema-transformer/to_bgp.py b/src/config/schema-transformer/to_bgp.py index a5bc4c744dd..49982cd7ee9 100644 --- a/src/config/schema-transformer/to_bgp.py +++ b/src/config/schema-transformer/to_bgp.py @@ -312,6 +312,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])