summaryrefslogtreecommitdiff
path: root/tests/topotests/bgp-path-attributes-topo1/test_bgp_path_attributes.py
diff options
context:
space:
mode:
authorAshish Pant <ashish12pant@gmail.com>2019-06-25 11:26:46 +0530
committerAshish Pant <ashish12pant@gmail.com>2019-07-09 10:26:53 +0530
commit6bb29e5ea95dac98a3f7b229f029e036154fa12c (patch)
tree323a0b312a74552d2b4d6c9527addb8aa0318d3b /tests/topotests/bgp-path-attributes-topo1/test_bgp_path_attributes.py
parenteb0a7b65a058c1879817f60d303b2e3e786d5eff (diff)
tests: Fix logdir creation
Signed-off-by: Ashish Pant <ashish12pant@gmail.com> Creates logdir everytime in start_topology, removed stop_topoloy. Using tgen.stop_topology in test case now.
Diffstat (limited to 'tests/topotests/bgp-path-attributes-topo1/test_bgp_path_attributes.py')
-rwxr-xr-xtests/topotests/bgp-path-attributes-topo1/test_bgp_path_attributes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/topotests/bgp-path-attributes-topo1/test_bgp_path_attributes.py b/tests/topotests/bgp-path-attributes-topo1/test_bgp_path_attributes.py
index 7400d9ee54..abd6b396d1 100755
--- a/tests/topotests/bgp-path-attributes-topo1/test_bgp_path_attributes.py
+++ b/tests/topotests/bgp-path-attributes-topo1/test_bgp_path_attributes.py
@@ -72,7 +72,7 @@ from lib.topogen import Topogen, TopoRouter, get_topogen
# Required to instantiate the topology builder class.
from lib.common_config import (
- start_topology, stop_topology, write_test_header,
+ start_topology, write_test_header,
write_test_footer, reset_config_on_routers,
verify_rib, create_static_routes,
create_prefix_lists, verify_prefix_lists,
@@ -158,7 +158,7 @@ def teardown_module():
tgen = get_topogen()
# Stop toplogy and Remove tmp files
- stop_topology(tgen)
+ tgen.stop_topology()
logger.info("Testsuite end time: %s",
time.asctime(time.localtime(time.time())))