diff options
| author | Christian Franke <nobody@nowhere.ws> | 2018-11-29 15:29:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-29 15:29:08 +0100 |
| commit | f2ce6a57a86a87b2d38fd5e01bc4ddff3c055005 (patch) | |
| tree | c3d881be5c70f643269704c6d3a7b626ae589b5d /tests/topotests/bgp_l3vpn_to_bgp_direct/scripts/adjacencies.py | |
| parent | d5215d5e169957de399334c2150116ca2fbd0d63 (diff) | |
| parent | 096694da4793bfc199b1a3698b932d0b59de6956 (diff) | |
Merge pull request #3384 from donaldsharp/topotests
Topotests
Diffstat (limited to 'tests/topotests/bgp_l3vpn_to_bgp_direct/scripts/adjacencies.py')
| -rw-r--r-- | tests/topotests/bgp_l3vpn_to_bgp_direct/scripts/adjacencies.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/topotests/bgp_l3vpn_to_bgp_direct/scripts/adjacencies.py b/tests/topotests/bgp_l3vpn_to_bgp_direct/scripts/adjacencies.py new file mode 100644 index 0000000000..7b3a883afa --- /dev/null +++ b/tests/topotests/bgp_l3vpn_to_bgp_direct/scripts/adjacencies.py @@ -0,0 +1,20 @@ +from lutil import luCommand +luCommand('ce1','ping 192.168.1.1 -c 1',' 0. packet loss','pass','CE->PE ping') +luCommand('ce2','ping 192.168.1.1 -c 1',' 0. packet loss','pass','CE->PE ping') +luCommand('ce3','ping 192.168.1.1 -c 1',' 0. packet loss','pass','CE->PE ping') +luCommand('ce1','vtysh -c "show bgp summary"',' 00:0','wait','Adjacencies up',90) +luCommand('ce2','vtysh -c "show bgp summary"',' 00:0','wait','Adjacencies up') +luCommand('ce3','vtysh -c "show bgp summary"',' 00:0','wait','Adjacencies up') +luCommand('r1','ping 2.2.2.2 -c 1',' 0. packet loss','wait','PE->P2 (loopback) ping',60) +luCommand('r3','ping 2.2.2.2 -c 1',' 0. packet loss','wait','PE->P2 (loopback) ping',60) +luCommand('r4','ping 2.2.2.2 -c 1',' 0. packet loss','wait','PE->P2 (loopback) ping',60) +luCommand('r2','vtysh -c "show bgp summary"',' 00:0.* 00:0.* 00:0','wait','Core adjacencies up') +luCommand('r1','vtysh -c "show bgp summary"',' 00:0','pass','Core adjacencies up') +luCommand('r3','vtysh -c "show bgp summary"',' 00:0','pass','Core adjacencies up') +luCommand('r4','vtysh -c "show bgp summary"',' 00:0','pass','Core adjacencies up') +luCommand('r1','vtysh -c "show bgp vrf all summary"',' 00:0.* 00:0','pass','All adjacencies up') +luCommand('r3','vtysh -c "show bgp vrf all summary"',' 00:0.* 00:0','pass','All adjacencies up') +luCommand('r4','vtysh -c "show bgp vrf all summary"',' 00:0.* 00:0','pass','All adjacencies up') +luCommand('r1','ping 3.3.3.3 -c 1',' 0. packet loss','wait','PE->PE3 (loopback) ping') +luCommand('r1','ping 4.4.4.4 -c 1',' 0. packet loss','wait','PE->PE4 (loopback) ping') +luCommand('r4','ping 3.3.3.3 -c 1',' 0. packet loss','wait','PE->PE3 (loopback) ping') |
