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 --- .../topotests/ospf_basic_functionality/test_ospf_authentication.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/topotests/ospf_basic_functionality/test_ospf_authentication.py') diff --git a/tests/topotests/ospf_basic_functionality/test_ospf_authentication.py b/tests/topotests/ospf_basic_functionality/test_ospf_authentication.py index e6485de250..a2f9c03ab4 100644 --- a/tests/topotests/ospf_basic_functionality/test_ospf_authentication.py +++ b/tests/topotests/ospf_basic_functionality/test_ospf_authentication.py @@ -48,6 +48,7 @@ from lib.common_config import ( reset_config_on_routers, step, shutdown_bringup_interface, + topo_daemons ) from lib.topolog import logger from lib.topojson import build_topo_from_json, build_config_from_json @@ -119,9 +120,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