From 035267a3745bbe1f92b612a4414adb0ab65c3596 Mon Sep 17 00:00:00 2001 From: nguggarigoud Date: Tue, 8 Sep 2020 11:29:21 +0530 Subject: tests: Adding daemon check for ospfd in common_config.py start ospfd only when ospf config is used. Signed-off-by: nguggarigoud --- tests/topotests/ospf_basic_functionality/test_ospf_rte_calc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/topotests/ospf_basic_functionality/test_ospf_rte_calc.py') diff --git a/tests/topotests/ospf_basic_functionality/test_ospf_rte_calc.py b/tests/topotests/ospf_basic_functionality/test_ospf_rte_calc.py index a46fa6fcce..5e0e35854e 100644 --- a/tests/topotests/ospf_basic_functionality/test_ospf_rte_calc.py +++ b/tests/topotests/ospf_basic_functionality/test_ospf_rte_calc.py @@ -50,6 +50,7 @@ from lib.common_config import ( create_static_routes, step, shutdown_bringup_interface, + topo_daemons ) from lib.bgp import verify_bgp_convergence, create_router_bgp from lib.topolog import logger @@ -136,9 +137,12 @@ def setup_module(mod): tgen = Topogen(CreateTopo, mod.__name__) # ... and here it calls Mininet initialization functions. + # get list of daemons needs to be started for this suite. + daemons = topo_daemons(tgen, topo) + # Starting topology, create tmp files which are loaded to routers # to start deamons and then start routers - start_topology(tgen) + start_topology(tgen, daemons) # Creating configuration from JSON build_config_from_json(tgen, topo) -- cgit v1.2.3