Skip to content

Commit 62913cb

Browse files
committed
topotests: add bgp_nexthop_mp_ipv4_6 test
Add bgp_nexthop_mp_ipv4_6 topotest to test to nexhop value with MP-BGP IPv4 and IPv6 on IPv4 peering. The test has route-reflector, route-server, iBGP and eBGP peers. Signed-off-by: Louis Scalbert <[email protected]>
1 parent 424fe0b commit 62913cb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1716
-0
lines changed

tests/topotests/bgp_nexthop_mp_ipv4_6/__init__.py

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ipv6 route ::/0 fd00:100::2
2+
ip route 0.0.0.0/0 192.168.1.2
3+
interface eth-r1
4+
ip address 192.168.1.1/24
5+
ipv6 address fd00:100::1/64
6+
!
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ipv6 route ::/0 fd00:700::2
2+
ip route 0.0.0.0/0 192.168.7.2
3+
interface eth-r7
4+
ip address 192.168.7.1/24
5+
ipv6 address fd00:700::1/64
6+
!
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ipv6 route ::/0 fd00:800::2
2+
ip route 0.0.0.0/0 192.168.8.2
3+
interface eth-r8
4+
ip address 192.168.8.1/24
5+
ipv6 address fd00:800::1/64
6+
!
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"routes": {
3+
"192.168.1.0/24": [
4+
{
5+
"valid": true,
6+
"bestpath": true,
7+
"path": "",
8+
"nexthops": [
9+
{
10+
"ip": "0.0.0.0",
11+
"afi": "ipv4",
12+
"used": true
13+
}
14+
]
15+
}
16+
],
17+
"192.168.7.0/24": [
18+
{
19+
"valid": true,
20+
"multipath": true,
21+
"path": "65000 65700",
22+
"nexthops": [
23+
{
24+
"ip": "172.16.1.3",
25+
"afi": "ipv4",
26+
"used": true
27+
}
28+
]
29+
},
30+
{
31+
"valid": true,
32+
"bestpath": true,
33+
"path": "65000 65700",
34+
"nexthops": [
35+
{
36+
"ip": "172.16.0.2",
37+
"afi": "ipv4",
38+
"used": true
39+
}
40+
]
41+
}
42+
],
43+
"192.168.8.0/24": [
44+
{
45+
"valid": true,
46+
"multipath": true,
47+
"path": "65000 65800",
48+
"nexthops": [
49+
{
50+
"ip": "172.16.1.3",
51+
"afi": "ipv4",
52+
"used": true
53+
}
54+
]
55+
},
56+
{
57+
"valid": true,
58+
"bestpath": true,
59+
"path": "65000 65800",
60+
"nexthops": [
61+
{
62+
"ip": "172.16.0.2",
63+
"afi": "ipv4",
64+
"used": true
65+
}
66+
]
67+
}
68+
]
69+
}
70+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"routes": {
3+
"fd00:100::/64": [
4+
{
5+
"valid": true,
6+
"bestpath": true,
7+
"path": "",
8+
"nexthops": [
9+
{
10+
"ip": "::",
11+
"afi": "ipv6",
12+
"used": true
13+
}
14+
]
15+
}
16+
],
17+
"fd00:700::/64": [
18+
{
19+
"valid": true,
20+
"multipath": true,
21+
"path": "65000 65700",
22+
"nexthops": [
23+
{
24+
"ip": "fd00:0:2::3",
25+
"afi": "ipv6",
26+
"scope": "global"
27+
},
28+
{
29+
"afi": "ipv6",
30+
"scope": "link-local",
31+
"used": true
32+
}
33+
]
34+
},
35+
{
36+
"valid": true,
37+
"bestpath": true,
38+
"path": "65000 65700",
39+
"nexthops": [
40+
{
41+
"ip": "fd00:0:1::2",
42+
"afi": "ipv6",
43+
"scope": "global"
44+
},
45+
{
46+
"afi": "ipv6",
47+
"scope": "link-local",
48+
"used": true
49+
}
50+
]
51+
}
52+
],
53+
"fd00:800::/64": [
54+
{
55+
"valid": true,
56+
"multipath": true,
57+
"path": "65000 65800",
58+
"nexthops": [
59+
{
60+
"ip": "fd00:0:2::3",
61+
"afi": "ipv6",
62+
"scope": "global"
63+
},
64+
{
65+
"afi": "ipv6",
66+
"scope": "link-local",
67+
"used": true
68+
}
69+
]
70+
},
71+
{
72+
"valid": true,
73+
"bestpath": true,
74+
"path": "65000 65800",
75+
"nexthops": [
76+
{
77+
"ip": "fd00:0:1::2",
78+
"afi": "ipv6",
79+
"scope": "global"
80+
},
81+
{
82+
"afi": "ipv6",
83+
"scope": "link-local",
84+
"used": true
85+
}
86+
]
87+
}
88+
]
89+
}
90+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
router bgp 65100
2+
no bgp ebgp-requires-policy
3+
neighbor 172.16.0.2 remote-as external
4+
neighbor 172.16.1.3 remote-as external
5+
! neighbor 172.16.0.2 capability extended-nexthop
6+
!
7+
address-family ipv4 unicast
8+
redistribute connected route-map RMAP4
9+
!
10+
address-family ipv6 unicast
11+
redistribute connected route-map RMAP6
12+
neighbor 172.16.0.2 activate
13+
neighbor 172.16.1.3 activate
14+
!
15+
16+
ip prefix-list RANGE4 seq 10 permit 192.168.0.0/16 le 24
17+
ipv6 prefix-list RANGE6 seq 10 permit fd00:100::0/64
18+
19+
route-map RMAP4 permit 10
20+
match ip address prefix-list RANGE4
21+
!
22+
route-map RMAP6 permit 10
23+
match ipv6 address prefix-list RANGE6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
!
2+
interface eth-h1
3+
ip address 192.168.1.2/24
4+
ipv6 address fd00:100::2/64
5+
!
6+
interface eth-r2
7+
ip address 172.16.0.1/24
8+
ipv6 address fd00:0:1::1/64
9+
!
10+
interface eth-r3
11+
ip address 172.16.1.1/24
12+
ipv6 address fd00:0:2::1/64
13+
!
14+
interface lo
15+
ip address 192.0.2.1/32
16+
ipv6 address 2001:db8::1/128
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"routes": {
3+
"192.168.1.0/24": [
4+
{
5+
"valid": true,
6+
"bestpath": true,
7+
"path": "65100",
8+
"nexthops": [
9+
{
10+
"ip": "172.16.0.1",
11+
"afi": "ipv4",
12+
"used": true
13+
}
14+
]
15+
}
16+
],
17+
"192.168.7.0/24": [
18+
{
19+
"valid": true,
20+
"bestpath": true,
21+
"path": "65700",
22+
"nexthops": [
23+
{
24+
"ip": "172.17.0.7",
25+
"afi": "ipv4",
26+
"used": true
27+
}
28+
]
29+
}
30+
],
31+
"192.168.8.0/24": [
32+
{
33+
"valid": true,
34+
"bestpath": true,
35+
"path": "65800",
36+
"nexthops": [
37+
{
38+
"ip": "172.17.0.8",
39+
"afi": "ipv4",
40+
"used": true
41+
}
42+
]
43+
}
44+
]
45+
}
46+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"routes": {
3+
"fd00:100::/64": [
4+
{
5+
"valid": true,
6+
"bestpath": true,
7+
"path": "65100",
8+
"nexthops": [
9+
{
10+
"ip": "fd00:0:1::1",
11+
"afi": "ipv6",
12+
"scope": "global"
13+
},
14+
{
15+
"afi": "ipv6",
16+
"scope": "link-local",
17+
"used": true
18+
}
19+
]
20+
}
21+
],
22+
"fd00:700::/64": [
23+
{
24+
"valid": true,
25+
"bestpath": true,
26+
"path": "65700",
27+
"nexthops": [
28+
{
29+
"ip": "fd00:0:9::7",
30+
"scope": "global",
31+
"afi": "ipv6",
32+
"used": true
33+
}
34+
]
35+
}
36+
],
37+
"fd00:800::/64": [
38+
{
39+
"valid": true,
40+
"bestpath": true,
41+
"path": "65800",
42+
"nexthops": [
43+
{
44+
"ip": "fd00:0:9::8",
45+
"scope": "global",
46+
"afi": "ipv6",
47+
"used": true
48+
}
49+
]
50+
}
51+
]
52+
}
53+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
router bgp 65000
2+
no bgp ebgp-requires-policy
3+
neighbor 172.16.0.1 remote-as external
4+
! neighbor 172.16.0.1 capability extended-nexthop
5+
neighbor 192.0.2.101 remote-as internal
6+
neighbor 192.0.2.101 update-source 192.0.2.2
7+
!
8+
address-family ipv6 unicast
9+
neighbor 172.16.0.1 activate
10+
neighbor 192.0.2.101 activate
11+
!
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
!
2+
interface lo
3+
ip router isis 1
4+
ipv6 router isis 1
5+
isis passive
6+
!
7+
interface eth-rr1
8+
ip router isis 1
9+
ipv6 router isis 1
10+
isis hello-interval 1
11+
isis hello-multiplier 3
12+
isis network point-to-point
13+
!
14+
interface eth-r1
15+
ip router isis 1
16+
ipv6 router isis 1
17+
isis passive
18+
!
19+
router isis 1
20+
net 49.0000.0000.0000.0002.00
21+
is-type level-1
22+
lsp-gen-interval 1
23+
topology ipv6-unicast
24+
!
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
!
2+
interface eth-r1
3+
ip address 172.16.0.2/24
4+
ipv6 address fd00:0:1::2/64
5+
!
6+
interface eth-rr1
7+
ip address 10.0.0.2/24
8+
ipv6 address fd00:0:3::2/64
9+
!
10+
interface lo
11+
ip address 192.0.2.2/32
12+
ipv6 address 2001:db8::2/128

0 commit comments

Comments
 (0)