diff options
| author | nguggarigoud <nguggarigoud@vmware.com> | 2020-09-08 11:29:21 +0530 |
|---|---|---|
| committer | nguggarigoud <nguggarigoud@vmware.com> | 2020-09-18 15:13:46 +0530 |
| commit | 035267a3745bbe1f92b612a4414adb0ab65c3596 (patch) | |
| tree | 98a78cef463ad940aea0d104ae32dc0463a9ee49 /tests/topotests/ospf_basic_functionality/test_ospf_ecmp_lan.py | |
| parent | a81774ec7d67f36f1380b9130cbc45a7e8001d1b (diff) | |
tests: Adding daemon check for ospfd in common_config.py
start ospfd only when ospf config is used.
Signed-off-by: nguggarigoud <nguggarigoud@vmware.com>
Diffstat (limited to 'tests/topotests/ospf_basic_functionality/test_ospf_ecmp_lan.py')
| -rw-r--r-- | tests/topotests/ospf_basic_functionality/test_ospf_ecmp_lan.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/topotests/ospf_basic_functionality/test_ospf_ecmp_lan.py b/tests/topotests/ospf_basic_functionality/test_ospf_ecmp_lan.py index c31f7f2bfd..17a3676e2e 100644 --- a/tests/topotests/ospf_basic_functionality/test_ospf_ecmp_lan.py +++ b/tests/topotests/ospf_basic_functionality/test_ospf_ecmp_lan.py @@ -53,6 +53,7 @@ from lib.common_config import ( shutdown_bringup_interface, stop_router, start_router, + topo_daemons ) from lib.bgp import verify_bgp_convergence, create_router_bgp from lib.topolog import logger @@ -146,9 +147,13 @@ 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) |
