Skip to content

Commit

Permalink
tests: test nexthop-local unchanged with route-server
Browse files Browse the repository at this point in the history
Test nexthop-local unchanged with route-server.

Signed-off-by: Louis Scalbert <[email protected]>
  • Loading branch information
louis-6wind committed Oct 11, 2024
1 parent 91512c3 commit 5f035ed
Show file tree
Hide file tree
Showing 15 changed files with 1,144 additions and 31 deletions.
53 changes: 53 additions & 0 deletions tests/topotests/bgp_route_server_client/exabgp.env
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@
"used": true
}
]
},
{
"nexthops": [
{
"ip": "2001:db8:1::4",
"hostname": "r2",
"afi": "ipv6",
"scope": "global",
"used": true
}
]
}
],
"2001:db8:3::/64": [
Expand Down Expand Up @@ -53,6 +64,32 @@
}
]
}
],
"2001:db8:f::4/128": [
{
"nexthops": [
{
"ip": "2001:db8:1::3",
"hostname": "r2",
"afi": "ipv6",
"scope": "global",
"used": true
}
]
}
],
"2001:db8:f::5/128": [
{
"nexthops": [
{
"ip": "2001:db8:1::4",
"hostname": "r2",
"afi": "ipv6",
"scope": "global",
"used": true
}
]
}
]
}
}
113 changes: 113 additions & 0 deletions tests/topotests/bgp_route_server_client/r1/show_bgp_ipv6_step2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
{
"routerId": "10.10.10.1",
"localAS": 65001,
"routes": {
"2001:db8:1::/64": [
{
"nexthops": [
{
"ip": "::",
"hostname": "r1",
"afi": "ipv6",
"scope": "global",
"used": true
}
]
},
{
"nexthops": [
{
"ip": "2001:db8:1::4",
"hostname": "r2",
"afi": "ipv6",
"scope": "global",
"used": true
}
]
}
],
"2001:db8:3::/64": [
{
"nexthops": [
{
"ip": "2001:db8:3::2",
"hostname": "r2",
"afi": "ipv6",
"scope": "global"
},
{
"ip": "link-local:r2:r2-eth0",
"hostname": "r2",
"afi": "ipv6",
"scope": "link-local",
"used": true
}
]
}
],
"2001:db8:f::1/128": [
{
"nexthops": [
{
"ip": "::",
"hostname": "r1",
"afi": "ipv6",
"scope": "global",
"used": true
}
]
}
],
"2001:db8:f::3/128": [
{
"nexthops": [
{
"ip": "2001:db8:3::2",
"hostname": "r2",
"afi": "ipv6",
"scope": "global"
},
{
"ip": "link-local:r2:r2-eth0",
"hostname": "r2",
"afi": "ipv6",
"scope": "link-local",
"used": true
}
]
}
],
"2001:db8:f::4/128": [
{
"nexthops": [
{
"ip": "2001:db8:1::3",
"hostname": "r2",
"afi": "ipv6",
"scope": "global"
},
{
"ip": "link-local:r4:r4-eth0",
"hostname": "r2",
"afi": "ipv6",
"scope": "link-local",
"used": true
}
]
}
],
"2001:db8:f::5/128": [
{
"nexthops": [
{
"ip": "2001:db8:1::4",
"hostname": "r2",
"afi": "ipv6",
"scope": "global",
"used": true
}
]
}
]
}
}
10 changes: 10 additions & 0 deletions tests/topotests/bgp_route_server_client/r2/bgpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,24 @@ router bgp 65000 view RS
neighbor 2001:db8:1::2 remote-as external
neighbor 2001:db8:1::2 timers 3 10
neighbor 2001:db8:1::2 timers connect 5
neighbor 2001:db8:1::3 remote-as external
neighbor 2001:db8:1::3 timers 3 10
neighbor 2001:db8:1::3 timers connect 5
neighbor 2001:db8:1::4 remote-as external
neighbor 2001:db8:1::4 timers 3 10
neighbor 2001:db8:1::4 timers connect 5
neighbor 2001:db8:3::2 remote-as external
neighbor 2001:db8:3::2 timers 3 10
neighbor 2001:db8:3::2 timers connect 5
address-family ipv6 unicast
redistribute connected
neighbor 2001:db8:1::2 activate
neighbor 2001:db8:1::3 activate
neighbor 2001:db8:1::4 activate
neighbor 2001:db8:3::2 activate
neighbor 2001:db8:1::2 route-server-client
neighbor 2001:db8:1::3 route-server-client
neighbor 2001:db8:1::4 route-server-client
neighbor 2001:db8:3::2 route-server-client
exit-address-family
!
Loading

0 comments on commit 5f035ed

Please sign in to comment.