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_single_area.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_single_area.py')
| -rw-r--r-- | tests/topotests/ospf_basic_functionality/test_ospf_single_area.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/topotests/ospf_basic_functionality/test_ospf_single_area.py b/tests/topotests/ospf_basic_functionality/test_ospf_single_area.py index 29f61827f9..b70c25ff1e 100644 --- a/tests/topotests/ospf_basic_functionality/test_ospf_single_area.py +++ b/tests/topotests/ospf_basic_functionality/test_ospf_single_area.py @@ -53,6 +53,7 @@ from lib.common_config import ( create_route_maps, shutdown_bringup_interface, create_interfaces_cfg, + topo_daemons ) from lib.topolog import logger from lib.topojson import build_topo_from_json, build_config_from_json @@ -134,9 +135,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) |
