From e437365bb9049e554ca0c4ffaa63ef999f1de37d Mon Sep 17 00:00:00 2001 From: Lou Berger Date: Tue, 5 Dec 2017 12:04:54 -0500 Subject: [PATCH] bgp_direct_to_bgp_vpn: general cleanup use moved lutil.py improve error information adjust to new luCommand default timeout sdd support for CliOnFail, remove no_test_call_mininet_cli scripts - update to correct stable values use topo test's log dir Signed-off-by: Lou Berger --- .../scripts/add_routes.py | 4 +- .../scripts/adjacencies.py | 2 +- .../scripts/check_routes.py | 10 ++--- .../test_bgp_direct_to_bgp_vpn.py | 42 +++++++++---------- 4 files changed, 28 insertions(+), 30 deletions(-) diff --git a/tests/topotests/bgp_direct_to_bgp_vpn/scripts/add_routes.py b/tests/topotests/bgp_direct_to_bgp_vpn/scripts/add_routes.py index ac25d0b8fc..03e1a16765 100644 --- a/tests/topotests/bgp_direct_to_bgp_vpn/scripts/add_routes.py +++ b/tests/topotests/bgp_direct_to_bgp_vpn/scripts/add_routes.py @@ -5,9 +5,9 @@ luCommand('r4','vtysh -c "add vrf cust1 prefix 99.0.0.3/32"','.','none','IP Addr luCommand('r1','vtysh -c "show vnc registrations local"','99.0.0.1','pass','Local Registration') luCommand('r3','vtysh -c "show vnc registrations local"','99.0.0.2','pass','Local Registration') luCommand('r4','vtysh -c "show vnc registrations local"','99.0.0.3','pass','Local Registration') -luCommand('r1','vtysh -c "show vnc registrations remote"','4 out of 4','wait','Remote Registration') +luCommand('r1','vtysh -c "show vnc registrations remote"','6 out of 6','wait','Remote Registration') luCommand('r3','vtysh -c "show vnc registrations remote"','6 out of 6','wait','Remote Registration') -luCommand('r4','vtysh -c "show vnc registrations remote"','4 out of 4','wait','Remote Registration') +luCommand('r4','vtysh -c "show vnc registrations remote"','6 out of 6','wait','Remote Registration') luCommand('r1','vtysh -c "show vnc registrations"','.','none') luCommand('r3','vtysh -c "show vnc registrations"','.','none') luCommand('r4','vtysh -c "show vnc registrations"','.','none') diff --git a/tests/topotests/bgp_direct_to_bgp_vpn/scripts/adjacencies.py b/tests/topotests/bgp_direct_to_bgp_vpn/scripts/adjacencies.py index 049c1b430d..2645d28f30 100644 --- a/tests/topotests/bgp_direct_to_bgp_vpn/scripts/adjacencies.py +++ b/tests/topotests/bgp_direct_to_bgp_vpn/scripts/adjacencies.py @@ -1,5 +1,5 @@ from lutil import luCommand -luCommand('r1','vtysh -c "show bgp summary"',' 00:0.* 00:0','wait','Adjacencies up') +luCommand('r1','vtysh -c "show bgp summary"',' 00:0.* 00:0','wait','Adjacencies up', 60) luCommand('r2','vtysh -c "show bgp summary"',' 00:0.* 00:0','wait','Adjacencies up') luCommand('r3','vtysh -c "show bgp summary"',' 00:0.* 00:0','wait','Adjacencies up') luCommand('r4','vtysh -c "show bgp summary"',' 00:0.* 00:0','wait','Adjacencies up') diff --git a/tests/topotests/bgp_direct_to_bgp_vpn/scripts/check_routes.py b/tests/topotests/bgp_direct_to_bgp_vpn/scripts/check_routes.py index e4a9044393..0b6f7ff49b 100644 --- a/tests/topotests/bgp_direct_to_bgp_vpn/scripts/check_routes.py +++ b/tests/topotests/bgp_direct_to_bgp_vpn/scripts/check_routes.py @@ -1,13 +1,13 @@ from lutil import luCommand luCommand('ce1','vtysh -c "show bgp ipv4 uni"','7 routes and 7','wait','Local and remote routes') -luCommand('ce2','vtysh -c "show bgp ipv4 uni"','7 routes and 9','wait','Local and remote routes') +luCommand('ce2','vtysh -c "show bgp ipv4 uni"','7 routes and 7','wait','Local and remote routes') luCommand('ce3','vtysh -c "show bgp ipv4 uni"','7 routes and 7','wait','Local and remote routes') luCommand('r1','vtysh -c "show bgp ipv4 uni"','7 routes and 9','pass','Unicast SAFI') luCommand('r2','vtysh -c "show bgp ipv4 uni"','No BGP prefixes displayed','pass','Unicast SAFI') luCommand('r3','vtysh -c "show bgp ipv4 uni"','7 routes and 9','pass','Unicast SAFI') luCommand('r4','vtysh -c "show bgp ipv4 uni"','7 routes and 9','pass','Unicast SAFI') -luCommand('r1','vtysh -c "show bgp ipv4 vpn"','7 routes and 7','pass','VPN SAFI') -luCommand('r2','vtysh -c "show bgp ipv4 vpn"','7 routes and 7','pass','VPN SAFI') -luCommand('r3','vtysh -c "show bgp ipv4 vpn"','7 routes and 7','pass','VPN SAFI') -luCommand('r4','vtysh -c "show bgp ipv4 vpn"','7 routes and 7','pass','VPN SAFI') +luCommand('r1','vtysh -c "show bgp ipv4 vpn"','9 routes and 9','pass','VPN SAFI') +luCommand('r2','vtysh -c "show bgp ipv4 vpn"','9 routes and 9','pass','VPN SAFI') +luCommand('r3','vtysh -c "show bgp ipv4 vpn"','9 routes and 9','pass','VPN SAFI') +luCommand('r4','vtysh -c "show bgp ipv4 vpn"','9 routes and 9','pass','VPN SAFI') diff --git a/tests/topotests/bgp_direct_to_bgp_vpn/test_bgp_direct_to_bgp_vpn.py b/tests/topotests/bgp_direct_to_bgp_vpn/test_bgp_direct_to_bgp_vpn.py index 9101c28dbc..90d7f9ede3 100755 --- a/tests/topotests/bgp_direct_to_bgp_vpn/test_bgp_direct_to_bgp_vpn.py +++ b/tests/topotests/bgp_direct_to_bgp_vpn/test_bgp_direct_to_bgp_vpn.py @@ -1,7 +1,6 @@ #!/usr/bin/env python # -#