summaryrefslogtreecommitdiff
path: root/tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-03-16 21:37:07 -0400
committerGitHub <noreply@github.com>2020-03-16 21:37:07 -0400
commit328ecc394b4c537aef7892248ddf8b07efdc45d3 (patch)
treecba5d68d2e9eca689f0b72490630612261ed7ad3 /tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py
parentb5eda2a733e22dd2b8b5478cd2cc8acaa8f8219d (diff)
parentaf9c65d44a4f21ac3899b28dd0dbbe900b17f544 (diff)
Merge pull request #6009 from kuldeepkash/bgp_basic_functionality
tests: Optimize bgp-basic-functionality-topo1 test suite
Diffstat (limited to 'tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py')
-rwxr-xr-xtests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py b/tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py
index e99111d90b..43639a81d1 100755
--- a/tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py
+++ b/tests/topotests/bgp-basic-functionality-topo1/test_bgp_basic_functionality.py
@@ -79,6 +79,9 @@ try:
except IOError:
assert False, "Could not read file {}".format(jsonFile)
+#Global Variable
+KEEPALIVETIMER = 2
+HOLDDOWNTIMER = 6
class CreateTopo(Topo):
"""
@@ -292,8 +295,8 @@ def test_bgp_timers_functionality(request):
"r2": {
"dest_link":{
"r1": {
- "keepalivetimer": 60,
- "holddowntimer": 180,
+ "keepalivetimer": KEEPALIVETIMER,
+ "holddowntimer": HOLDDOWNTIMER
}
}
}
@@ -319,8 +322,6 @@ def test_bgp_timers_functionality(request):
write_test_footer(tc_name)
-
-
def test_static_routes(request):
""" Test to create and verify static routes. """