-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bgp_nexthop_ipv6 to check the ipv6 link-local nexthop conformity in several situations. Signed-off-by: Louis Scalbert <[email protected]>
- Loading branch information
1 parent
5bb99cc
commit 6dc4d95
Showing
30 changed files
with
2,854 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
[exabgp.api] | ||
encoder = text | ||
highres = false | ||
respawn = false | ||
socket = '' | ||
|
||
[exabgp.bgp] | ||
openwait = 60 | ||
|
||
[exabgp.cache] | ||
attributes = true | ||
nexthops = true | ||
|
||
[exabgp.daemon] | ||
daemonize = true | ||
pid = '/var/run/exabgp/exabgp.pid' | ||
user = 'exabgp' | ||
##daemonize = false | ||
|
||
[exabgp.log] | ||
all = false | ||
configuration = true | ||
daemon = true | ||
destination = '/var/log/exabgp.log' | ||
enable = true | ||
level = INFO | ||
message = false | ||
network = true | ||
packets = false | ||
parser = false | ||
processes = true | ||
reactor = true | ||
rib = false | ||
routes = false | ||
short = false | ||
timers = false | ||
|
||
[exabgp.pdb] | ||
enable = false | ||
|
||
[exabgp.profile] | ||
enable = false | ||
file = '' | ||
|
||
[exabgp.reactor] | ||
speed = 1.0 | ||
|
||
[exabgp.tcp] | ||
acl = false | ||
bind = '' | ||
delay = 0 | ||
once = false | ||
port = 179 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
router bgp 65000 | ||
no bgp ebgp-requires-policy | ||
neighbor fd00:0:2::9 remote-as internal | ||
neighbor fd00:0:2::9 timers 3 10 | ||
address-family ipv4 unicast | ||
redistribute connected route-map RMAP4 | ||
! | ||
address-family ipv6 unicast | ||
redistribute connected route-map RMAP6 | ||
neighbor fd00:0:2::9 activate | ||
|
||
ip prefix-list RANGE4 seq 10 permit 172.16.0.0/16 le 24 | ||
ip prefix-list RANGE4 seq 20 permit 10.0.0.0/8 ge 32 | ||
|
||
ipv6 prefix-list RANGE6 seq 10 permit fd00:100::0/64 | ||
ipv6 prefix-list RANGE6 seq 20 permit 2001:db8::0/64 ge 128 | ||
|
||
route-map RMAP4 permit 10 | ||
match ip address prefix-list RANGE4 | ||
! | ||
route-map RMAP6 permit 10 | ||
match ipv6 address prefix-list RANGE6 |
162 changes: 162 additions & 0 deletions
162
tests/topotests/bgp_nexthop_ipv6/r1/show_bgp_ipv6_step1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
{ | ||
"routerId": "10.1.1.1", | ||
"localAS": 65000, | ||
"routes": { | ||
"2001:db8::1/128": [ | ||
{ | ||
"nexthops": [ | ||
{ | ||
"ip": "::", | ||
"hostname": "r1", | ||
"afi": "ipv6", | ||
"scope": "global", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"2001:db8::2/128": [ | ||
{ | ||
"nexthops": [ | ||
{ | ||
"ip": "fd00:0:2::2", | ||
"hostname": "rr", | ||
"afi": "ipv6", | ||
"scope": "global", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"2001:db8::3/128": [ | ||
{ | ||
"nexthops": [ | ||
{ | ||
"ip": "fd00:0:2::3", | ||
"hostname": "rr", | ||
"afi": "ipv6", | ||
"scope": "global", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"2001:db8::4/128": [ | ||
{ | ||
"nexthops": [ | ||
{ | ||
"ip": "fd00:0:2::4", | ||
"hostname": "rr", | ||
"afi": "ipv6", | ||
"scope": "global", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"2001:db8::5/128": [ | ||
{ | ||
"nexthops": [ | ||
{ | ||
"ip": "fd00:0:3::5", | ||
"hostname": "rr", | ||
"afi": "ipv6", | ||
"scope": "global", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"2001:db8::6/128": [ | ||
{ | ||
"nexthops": [ | ||
{ | ||
"ip": "fd00:0:4::6", | ||
"hostname": "rr", | ||
"afi": "ipv6", | ||
"scope": "global", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"fd00:100::/64": [ | ||
{ | ||
"nexthops": [ | ||
{ | ||
"ip": "::", | ||
"hostname": "r1", | ||
"afi": "ipv6", | ||
"scope": "global", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"fd00:200::/64": [ | ||
{ | ||
"nexthops": [ | ||
{ | ||
"ip": "fd00:0:2::2", | ||
"hostname": "rr", | ||
"afi": "ipv6", | ||
"scope": "global", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"fd00:300::/64": [ | ||
{ | ||
"nexthops": [ | ||
{ | ||
"ip": "fd00:0:2::3", | ||
"hostname": "rr", | ||
"afi": "ipv6", | ||
"scope": "global", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"fd00:400::/64": [ | ||
{ | ||
"nexthops": [ | ||
{ | ||
"ip": "fd00:0:2::4", | ||
"hostname": "rr", | ||
"afi": "ipv6", | ||
"scope": "global", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"fd00:500::/64": [ | ||
{ | ||
"nexthops": [ | ||
{ | ||
"ip": "fd00:0:3::5", | ||
"hostname": "rr", | ||
"afi": "ipv6", | ||
"scope": "global", | ||
"used": true | ||
} | ||
] | ||
} | ||
], | ||
"fd00:600::/64": [ | ||
{ | ||
"nexthops": [ | ||
{ | ||
"ip": "fd00:0:4::6", | ||
"hostname": "rr", | ||
"afi": "ipv6", | ||
"scope": "global", | ||
"used": true | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.