From 72babe7cf3273a9c5264a260e093ce53100adf37 Mon Sep 17 00:00:00 2001 From: naveen Date: Tue, 21 Jul 2020 19:34:42 +0530 Subject: [PATCH] tests: Incorporated new static route del behaviour Updated 2 testcases with static route deletion with admin distance as a key. Signed-off-by: naveen --- .../static_routing_with_ebgp/test_static_routes_topo1_ebgp.py | 2 ++ .../static_routing_with_ibgp/test_static_routes_topo1_ibgp.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/topotests/static_routing_with_ebgp/test_static_routes_topo1_ebgp.py b/tests/topotests/static_routing_with_ebgp/test_static_routes_topo1_ebgp.py index f9da188688..a9e6228252 100644 --- a/tests/topotests/static_routing_with_ebgp/test_static_routes_topo1_ebgp.py +++ b/tests/topotests/static_routing_with_ebgp/test_static_routes_topo1_ebgp.py @@ -703,6 +703,7 @@ def test_static_route_2nh_admin_dist_p0_tc_2_ebgp(request): { "network": NETWORK[addr_type], "next_hop": NEXT_HOP_IP["nh1"][addr_type], + "admin_distance": 10, "delete": True, } ] @@ -789,6 +790,7 @@ def test_static_route_2nh_admin_dist_p0_tc_2_ebgp(request): { "network": NETWORK[addr_type], "next_hop": NEXT_HOP_IP["nh2"][addr_type], + "admin_distance": 20, "delete": True, } ] diff --git a/tests/topotests/static_routing_with_ibgp/test_static_routes_topo1_ibgp.py b/tests/topotests/static_routing_with_ibgp/test_static_routes_topo1_ibgp.py index cf48681239..6476d9cb0c 100644 --- a/tests/topotests/static_routing_with_ibgp/test_static_routes_topo1_ibgp.py +++ b/tests/topotests/static_routing_with_ibgp/test_static_routes_topo1_ibgp.py @@ -702,6 +702,7 @@ def test_static_route_2nh_admin_dist_p0_tc_2_ibgp(request): { "network": NETWORK[addr_type], "next_hop": NEXT_HOP_IP["nh1"][addr_type], + "admin_distance": 10, "delete": True, } ] @@ -788,6 +789,7 @@ def test_static_route_2nh_admin_dist_p0_tc_2_ibgp(request): { "network": NETWORK[addr_type], "next_hop": NEXT_HOP_IP["nh2"][addr_type], + "admin_distance": 20, "delete": True, } ] -- 2.39.5