]> git.proxmox.com Git - mirror_frr.git/blame - tests/topotests/bgp_multiview_topo1/README.md
tests: Make checkRouterRunning() `show logging`
[mirror_frr.git] / tests / topotests / bgp_multiview_topo1 / README.md
CommitLineData
33ae1f75 1# Simple FreeRangeRouting Route-Server Test
d71f3675
MW
2
3## Topology
4 +----------+ +----------+ +----------+ +----------+ +----------+
5 | peer1 | | peer2 | | peer3 | | peer4 | | peer5 |
6 | AS 65001 | | AS 65002 | | AS 65003 | | AS 65004 | | AS 65005 |
7 +-----+----+ +-----+----+ +-----+----+ +-----+----+ +-----+----+
8 | .1 | .2 | .3 | .4 | .5
9 | ______/ / / _________/
10 \ / ________________/ / /
11 | | / _________________________/ / +----------+
12 | | | / __________________________/ ___| peer6 |
13 | | | | / ____________________________/.6 | AS 65006 |
14 | | | | | / _________________________ +----------+
15 | | | | | | / __________________ \ +----------+
16 | | | | | | | / \ \___| peer7 |
17 | | | | | | | | \ .7 | AS 65007 |
18 ~~~~~~~~~~~~~~~~~~~~~ \ +----------+
19 ~~ SW1 ~~ \ +----------+
20 ~~ Switch ~~ \_____| peer8 |
21 ~~ 172.16.1.0/24 ~~ .8 | AS 65008 |
22 ~~~~~~~~~~~~~~~~~~~~~ +----------+
23 |
24 | .254
25 +---------+---------+
33ae1f75 26 | FRR R1 |
d71f3675
MW
27 | BGP Multi-View |
28 | Peer 1-3 > View 1 |
29 | Peer 4-5 > View 2 |
30 | Peer 6-8 > View 3 |
31 +---------+---------+
32 | .1
33 |
34 ~~~~~~~~~~~~~ Stub Network is redistributed
35 ~~ SW0 ~~ into each BGP view with different
36 ~~ 172.20.0.1/28 ~~ attributes (using route-map)
37 ~~ Stub Switch ~~
38 ~~~~~~~~~~~~~
39
33ae1f75 40## FRR Configuration
d71f3675
MW
41
42Full config as used is in r1 subdirectory
43
44Simplified `R1` config:
45
46 hostname r1
47 !
48 interface r1-stub
49 description Stub Network
50 ip address 172.20.0.1/28
51 no link-detect
52 !
53 interface r1-eth0
54 description to PE router - vlan1
55 ip address 172.16.1.254/24
56 no link-detect
57 !
58 bgp multiple-instance
59 !
60 router bgp 100 view 1
61 bgp router-id 172.30.1.1
62 network 172.20.0.0/28 route-map local1
63 timers bgp 60 180
64 neighbor 172.16.1.1 remote-as 65001
65 neighbor 172.16.1.2 remote-as 65002
66 neighbor 172.16.1.5 remote-as 65005
67 !
68 router bgp 100 view 2
69 bgp router-id 172.30.1.1
70 network 172.20.0.0/28 route-map local2
71 timers bgp 60 180
72 neighbor 172.16.1.3 remote-as 65003
73 neighbor 172.16.1.4 remote-as 65004
74 !
75 router bgp 100 view 3
76 bgp router-id 172.30.1.1
77 network 172.20.0.0/28
78 timers bgp 60 180
79 neighbor 172.16.1.6 remote-as 65006
80 neighbor 172.16.1.7 remote-as 65007
81 neighbor 172.16.1.8 remote-as 65008
82 !
83 route-map local1 permit 10
84 set community 100:9999 additive
85 set metric 0
86 !
87 route-map local2 permit 10
88 set as-path prepend 100 100 100 100 100
89 set community 100:1 additive
90 set metric 9999
91 !
92
93## Tests executed
94
33ae1f75 95### Check if FRR is running
d71f3675
MW
96
97Test is executed by running
98
4aaea8fb 99 vtysh -c "show logging" | grep "Logging configuration for"
d71f3675
MW
100
101on router `R1`. This should return the logging information for all daemons registered
102to Zebra and the list of running daemons is compared to the daemons started for this
103test (`zebra` and `bgpd`)
104
105### Verify for BGP to converge
106
107BGP is expected to converge on each view within 60s total time. Convergence is verified by executing
108
109 vtysh -c "show ip bgp view 1 summary"
110 vtysh -c "show ip bgp view 2 summary"
111 vtysh -c "show ip bgp view 3 summary"
112
113and expecting 11 routes seen in the last column for each peer. (Each peer sends 11 routes)
114
b2764f90 115### Verifying BGP Routing Tables
d71f3675
MW
116
117Routing table is verified by running
118
119 vtysh -c "show ip bgp view 1"
120 vtysh -c "show ip bgp view 2"
121 vtysh -c "show ip bgp view 3"
122
123and comparing the result against the stored table in the r1/show_ip_bgp_view_NN.ref files
124(with NN 1, 2, 3) (A few header and trailer lines are cut/adjusted ahead of the compare to
125adjust for different output based on recent changes)
126
127