]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: Add route-map to initial config creation from JSON
authorKuldeep Kashyap <kashyapk@vmware.com>
Wed, 25 Sep 2019 11:24:56 +0000 (11:24 +0000)
committerKuldeep Kashyap <kashyapk@vmware.com>
Thu, 26 Sep 2019 10:06:16 +0000 (10:06 +0000)
To enable route-map config build from JSON

Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com>
tests/topotests/lib/topojson.py

index 7a00fe4c50f27c3d8b1480b61a9ebd558f5bd086..fff5a1e82f6022b05853c27b5e82a2952673e102 100644 (file)
@@ -35,6 +35,7 @@ from lib.common_config import (
     create_static_routes,
     create_prefix_lists,
     create_route_maps,
+    create_bgp_community_lists
 )
 
 from lib.bgp import create_router_bgp
@@ -179,6 +180,7 @@ def build_config_from_json(tgen, topo, save_bkup=True):
         ("links", create_interfaces_cfg),
         ("static_routes", create_static_routes),
         ("prefix_lists", create_prefix_lists),
+        ("bgp_community_list", create_bgp_community_lists),
         ("route_maps", create_route_maps),
         ("bgp", create_router_bgp)
     ])