f-87: e2e: bordures bd1 et bd2 dans evpn-3hv, VNI 66001, gateway anycast #87
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
8429dfd7e1
commit
811e69dac2
5 changed files with 74 additions and 0 deletions
18
test/e2e/topologies/provision/border.sh
Executable file
18
test/e2e/topologies/provision/border.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
set -eu
|
||||
VNI=66001
|
||||
GATEWAY=240.0.0.1/24
|
||||
GATEWAY_MAC=02:01:00:01:01:d1
|
||||
DESTINATION=240.255.0.1/32
|
||||
VTEP=$(ip -4 -o addr show dev "${LAB_UPLINK}" scope global | awk 'NR == 1 {sub("/.*", "", $4); print $4}')
|
||||
[ -n "${VTEP}" ] || { echo "border: no IPv4 on ${LAB_UPLINK}" >&2; exit 1; }
|
||||
ip link add br-public type bridge
|
||||
ip link set br-public address "${GATEWAY_MAC}"
|
||||
ip link add "vxlan-${VNI}" type vxlan id "${VNI}" local "${VTEP}" dstport 4789 nolearning
|
||||
ip link set "vxlan-${VNI}" mtu 1500 master br-public
|
||||
ip link set "vxlan-${VNI}" up
|
||||
ip link set br-public up
|
||||
ip addr add "${GATEWAY}" dev br-public
|
||||
ip link add internet type dummy
|
||||
ip addr add "${DESTINATION}" dev internet
|
||||
ip link set internet up
|
||||
Loading…
Add table
Add a link
Reference in a new issue