summaryrefslogtreecommitdiffstats
path: root/tests/topotests/bgp_distance_change
diff options
context:
space:
mode:
Diffstat (limited to 'tests/topotests/bgp_distance_change')
-rwxr-xr-xtests/topotests/bgp_distance_change/test_bgp_admin_dist.py9
-rw-r--r--tests/topotests/bgp_distance_change/test_bgp_distance_change.py6
2 files changed, 3 insertions, 12 deletions
diff --git a/tests/topotests/bgp_distance_change/test_bgp_admin_dist.py b/tests/topotests/bgp_distance_change/test_bgp_admin_dist.py
index 0bd3d281..0307ee2f 100755
--- a/tests/topotests/bgp_distance_change/test_bgp_admin_dist.py
+++ b/tests/topotests/bgp_distance_change/test_bgp_admin_dist.py
@@ -215,7 +215,6 @@ def test_bgp_admin_distance_ebgp_ecmp_p0():
step("Configure static route in R4 and R5, redistribute in bgp")
for addr_type in ADDR_TYPES:
-
input_dict = {
"r4": {
"static_routes": [{"network": NETWORK[addr_type], "next_hop": "Null0"}]
@@ -228,7 +227,6 @@ def test_bgp_admin_distance_ebgp_ecmp_p0():
)
for addr_type in ADDR_TYPES:
-
input_dict = {
"r5": {
"static_routes": [{"network": NETWORK[addr_type], "next_hop": "Null0"}]
@@ -268,7 +266,6 @@ def test_bgp_admin_distance_ebgp_ecmp_p0():
step("Configure the static route in R3 (Dut).")
for addr_type in ADDR_TYPES:
-
input_dict = {
"r3": {
"static_routes": [
@@ -305,7 +302,6 @@ def test_bgp_admin_distance_ebgp_ecmp_p0():
step(" Configure the admin distance of 254 to static route in R3.")
for addr_type in ADDR_TYPES:
-
input_dict = {
"r3": {
"static_routes": [
@@ -571,7 +567,6 @@ def test_bgp_admin_distance_ebgp_ecmp_p0():
step("Reconfigure the static route without admin distance")
for addr_type in ADDR_TYPES:
-
input_dict = {
"r3": {
"static_routes": [
@@ -993,7 +988,6 @@ def test_bgp_admin_distance_ibgp_p0():
step("Configure static route Without any admin distance")
for addr_type in ADDR_TYPES:
-
input_dict = {
"r3": {
"static_routes": [{"network": NETWORK[addr_type], "next_hop": "Null0"}]
@@ -1009,7 +1003,6 @@ def test_bgp_admin_distance_ibgp_p0():
protocol = "static"
for addr_type in ADDR_TYPES:
-
input_dict = {
"r3": {
"static_routes": [{"network": NETWORK[addr_type], "next_hop": "Null0"}]
@@ -1023,7 +1016,6 @@ def test_bgp_admin_distance_ibgp_p0():
step("Configure static route with admin distance of 253")
for addr_type in ADDR_TYPES:
-
input_dict = {
"r3": {
"static_routes": [
@@ -1086,7 +1078,6 @@ def test_bgp_admin_distance_ibgp_p0():
step("Delete the static route.")
for addr_type in ADDR_TYPES:
-
input_dict = {
"r3": {
"static_routes": [
diff --git a/tests/topotests/bgp_distance_change/test_bgp_distance_change.py b/tests/topotests/bgp_distance_change/test_bgp_distance_change.py
index 2ca50aa5..87802511 100644
--- a/tests/topotests/bgp_distance_change/test_bgp_distance_change.py
+++ b/tests/topotests/bgp_distance_change/test_bgp_distance_change.py
@@ -51,7 +51,7 @@ def setup_module(mod):
router_list = tgen.routers()
- for i, (rname, router) in enumerate(router_list.items(), 1):
+ for _, (rname, router) in enumerate(router_list.items(), 1):
router.load_config(
TopoRouter.RD_ZEBRA, os.path.join(CWD, "{}/zebra.conf".format(rname))
)
@@ -101,14 +101,14 @@ def test_bgp_maximum_prefix_invalid():
return topotest.json_cmp(output, expected)
test_func = functools.partial(_bgp_converge, router)
- success, result = topotest.run_and_expect(test_func, None, count=15, wait=0.5)
+ _, result = topotest.run_and_expect(test_func, None, count=15, wait=0.5)
assert result is None, 'Failed to see BGP convergence in "{}"'.format(router)
_bgp_distance_change(router)
test_func = functools.partial(_bgp_check_distance_change, router)
- success, result = topotest.run_and_expect(test_func, None, count=15, wait=0.5)
+ _, result = topotest.run_and_expect(test_func, None, count=15, wait=0.5)
assert result is None, 'Failed to see applied BGP distance in RIB "{}"'.format(
router