tests: Make bgp_multiview_topo1 predictable

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
This commit is contained in:
Martin Winter 2021-08-19 00:01:04 +02:00
parent a7279c5f43
commit 5b78215b28
No known key found for this signature in database
GPG Key ID: 05A4ECF8C0102306
18 changed files with 35 additions and 32 deletions

View File

@ -23,7 +23,7 @@ for i in range(0, numRoutes):
stdout.flush()
# Announce 1 overlapping route per peer
stdout.write("announce route 10.0.1.0/24 next-hop 172.16.1.%i\n" % peer)
stdout.write("announce route 10.0.1.0/24 med %i next-hop 172.16.1.%i\n" % (peer, peer))
stdout.flush()
# Loop endlessly to allow ExaBGP to continue running

View File

@ -23,7 +23,7 @@ for i in range(0, numRoutes):
stdout.flush()
# Announce 1 overlapping route per peer
stdout.write("announce route 10.0.1.0/24 next-hop 172.16.1.%i\n" % peer)
stdout.write("announce route 10.0.1.0/24 med %i next-hop 172.16.1.%i\n" % (peer, peer))
stdout.flush()
# Loop endlessly to allow ExaBGP to continue running

View File

@ -23,7 +23,7 @@ for i in range(0, numRoutes):
stdout.flush()
# Announce 1 overlapping route per peer
stdout.write("announce route 10.0.1.0/24 next-hop 172.16.1.%i\n" % peer)
stdout.write("announce route 10.0.1.0/24 med %i next-hop 172.16.1.%i\n" % (peer, peer))
stdout.flush()
# Loop endlessly to allow ExaBGP to continue running

View File

@ -23,7 +23,7 @@ for i in range(0, numRoutes):
stdout.flush()
# Announce 1 overlapping route per peer
stdout.write("announce route 10.0.1.0/24 next-hop 172.16.1.%i\n" % peer)
stdout.write("announce route 10.0.1.0/24 med %i next-hop 172.16.1.%i\n" % (peer, peer))
stdout.flush()
# Loop endlessly to allow ExaBGP to continue running

View File

@ -23,7 +23,7 @@ for i in range(0, numRoutes):
stdout.flush()
# Announce 1 overlapping route per peer
stdout.write("announce route 10.0.1.0/24 next-hop 172.16.1.%i\n" % peer)
stdout.write("announce route 10.0.1.0/24 med %i next-hop 172.16.1.%i\n" % (peer, peer))
stdout.flush()
# Loop endlessly to allow ExaBGP to continue running

View File

@ -23,7 +23,7 @@ for i in range(0, numRoutes):
stdout.flush()
# Announce 1 overlapping route per peer
stdout.write("announce route 10.0.1.0/24 next-hop 172.16.1.%i\n" % peer)
stdout.write("announce route 10.0.1.0/24 med %i next-hop 172.16.1.%i\n" % (peer, peer))
stdout.flush()
# Loop endlessly to allow ExaBGP to continue running

View File

@ -23,7 +23,7 @@ for i in range(0, numRoutes):
stdout.flush()
# Announce 1 overlapping route per peer
stdout.write("announce route 10.0.1.0/24 next-hop 172.16.1.%i\n" % peer)
stdout.write("announce route 10.0.1.0/24 med %i next-hop 172.16.1.%i\n" % (peer, peer))
stdout.flush()
# Loop endlessly to allow ExaBGP to continue running

View File

@ -23,7 +23,7 @@ for i in range(0, numRoutes):
stdout.flush()
# Announce 1 overlapping route per peer
stdout.write("announce route 10.0.1.0/24 next-hop 172.16.1.%i\n" % peer)
stdout.write("announce route 10.0.1.0/24 med %i next-hop 172.16.1.%i\n" % (peer, peer))
stdout.flush()
# Loop endlessly to allow ExaBGP to continue running

View File

@ -13,6 +13,7 @@ log file bgpd.log
!
router bgp 100 view 1
bgp router-id 172.30.1.1
bgp always-compare-med
no bgp ebgp-requires-policy
network 172.20.0.0/28 route-map local1
timers bgp 60 180
@ -25,6 +26,7 @@ router bgp 100 view 1
!
router bgp 100 view 2
bgp router-id 172.30.1.1
bgp always-compare-med
no bgp ebgp-requires-policy
network 172.20.0.0/28 route-map local2
timers bgp 60 180
@ -35,6 +37,7 @@ router bgp 100 view 2
!
router bgp 100 view 3
bgp router-id 172.30.1.1
bgp always-compare-med
no bgp ebgp-requires-policy
network 172.20.0.0/28
timers bgp 60 180

View File

@ -6,9 +6,9 @@ Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
* 10.0.1.0/24 172.16.1.5 0 65005 i
* 172.16.1.2 0 65002 i
*> 172.16.1.1 0 65001 i
* 10.0.1.0/24 172.16.1.5 5 0 65005 i
* 172.16.1.2 2 0 65002 i
*> 172.16.1.1 1 0 65001 i
*> 10.101.0.0/24 172.16.1.1 100 0 65001 i
*> 10.101.1.0/24 172.16.1.1 100 0 65001 i
*> 10.101.2.0/24 172.16.1.1 100 0 65001 i

View File

@ -7,9 +7,9 @@ Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
* 10.0.1.0/24 172.16.1.5 0 65005 i
* 172.16.1.2 0 65002 i
*> 172.16.1.1 0 65001 i
* 10.0.1.0/24 172.16.1.5 5 0 65005 i
* 172.16.1.2 2 0 65002 i
*> 172.16.1.1 1 0 65001 i
*> 10.101.0.0/24 172.16.1.1 100 0 65001 i
*> 10.101.1.0/24 172.16.1.1 100 0 65001 i
*> 10.101.2.0/24 172.16.1.1 100 0 65001 i

View File

@ -4,9 +4,9 @@ Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
* 10.0.1.0/24 172.16.1.5 0 65005 i
* 172.16.1.2 0 65002 i
*> 172.16.1.1 0 65001 i
* 10.0.1.0/24 172.16.1.5 5 0 65005 i
* 172.16.1.2 2 0 65002 i
*> 172.16.1.1 1 0 65001 i
*> 10.101.0.0/24 172.16.1.1 100 0 65001 i
*> 10.101.1.0/24 172.16.1.1 100 0 65001 i
*> 10.101.2.0/24 172.16.1.1 100 0 65001 i

View File

@ -6,8 +6,8 @@ Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
* 10.0.1.0/24 172.16.1.4 0 65004 i
*> 172.16.1.3 0 65003 i
* 10.0.1.0/24 172.16.1.4 4 0 65004 i
*> 172.16.1.3 3 0 65003 i
*> 10.103.0.0/24 172.16.1.3 100 0 65003 i
*> 10.103.1.0/24 172.16.1.3 100 0 65003 i
*> 10.103.2.0/24 172.16.1.3 100 0 65003 i

View File

@ -7,8 +7,8 @@ Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
* 10.0.1.0/24 172.16.1.4 0 65004 i
*> 172.16.1.3 0 65003 i
* 10.0.1.0/24 172.16.1.4 4 0 65004 i
*> 172.16.1.3 3 0 65003 i
*> 10.103.0.0/24 172.16.1.3 100 0 65003 i
*> 10.103.1.0/24 172.16.1.3 100 0 65003 i
*> 10.103.2.0/24 172.16.1.3 100 0 65003 i

View File

@ -4,8 +4,8 @@ Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
* 10.0.1.0/24 172.16.1.4 0 65004 i
*> 172.16.1.3 0 65003 i
* 10.0.1.0/24 172.16.1.4 4 0 65004 i
*> 172.16.1.3 3 0 65003 i
*> 10.103.0.0/24 172.16.1.3 100 0 65003 i
*> 10.103.1.0/24 172.16.1.3 100 0 65003 i
*> 10.103.2.0/24 172.16.1.3 100 0 65003 i

View File

@ -6,9 +6,9 @@ Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
* 10.0.1.0/24 172.16.1.8 0 65008 i
* 172.16.1.7 0 65007 i
*> 172.16.1.6 0 65006 i
* 10.0.1.0/24 172.16.1.8 8 0 65008 i
* 172.16.1.7 7 0 65007 i
*> 172.16.1.6 6 0 65006 i
*> 10.106.0.0/24 172.16.1.6 100 0 65006 i
*> 10.106.1.0/24 172.16.1.6 100 0 65006 i
*> 10.106.2.0/24 172.16.1.6 100 0 65006 i

View File

@ -7,9 +7,9 @@ Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
* 10.0.1.0/24 172.16.1.8 0 65008 i
* 172.16.1.7 0 65007 i
*> 172.16.1.6 0 65006 i
* 10.0.1.0/24 172.16.1.8 8 0 65008 i
* 172.16.1.7 7 0 65007 i
*> 172.16.1.6 6 0 65006 i
*> 10.106.0.0/24 172.16.1.6 100 0 65006 i
*> 10.106.1.0/24 172.16.1.6 100 0 65006 i
*> 10.106.2.0/24 172.16.1.6 100 0 65006 i

View File

@ -4,9 +4,9 @@ Status codes: s suppressed, d damped, h history, * valid, > best, = multipath,
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
* 10.0.1.0/24 172.16.1.8 0 65008 i
* 172.16.1.7 0 65007 i
*> 172.16.1.6 0 65006 i
* 10.0.1.0/24 172.16.1.8 8 0 65008 i
* 172.16.1.7 7 0 65007 i
*> 172.16.1.6 6 0 65006 i
*> 10.106.0.0/24 172.16.1.6 100 0 65006 i
*> 10.106.1.0/24 172.16.1.6 100 0 65006 i
*> 10.106.2.0/24 172.16.1.6 100 0 65006 i