-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtopo.yaml
57 lines (57 loc) · 1.99 KB
/
topo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: fpm-demo
topology:
kinds:
linux:
cmd: bash
nodes:
router0:
kind: linux
image: frrouting/frr:latest
exec:
# Boiler plate to make FRR work
- touch /etc/frr/vtysh.conf
- sed -i -e 's/bgpd=no/bgpd=yes/g' /etc/frr/daemons
- sed -i -e 's/zebra_options.*/zebra_options=\" -A 127.0.0.1 -s 90000000 -M dplane_fpm_nl\"/g' /etc/frr/daemons
- /usr/lib/frr/frrinit.sh start
# FRR configuration
- >-
vtysh -c 'conf t'
-c 'fpm address 127.0.0.1 port 2620'
-c '!'
-c 'router bgp 65000'
-c ' no bgp ebgp-requires-policy'
-c ' bgp router-id 10.0.0.1'
-c ' neighbor PEERS peer-group'
-c ' neighbor PEERS remote-as external'
-c ' neighbor PEERS capability extended-nexthop'
-c ' neighbor net0 interface peer-group PEERS'
-c '!'
router1:
kind: linux
image: frrouting/frr:latest
exec:
- touch /etc/frr/vtysh.conf
- sed -i -e 's/bgpd=no/bgpd=yes/g' /etc/frr/daemons
- sed -i -e 's/zebra_options.*/zebra_options=\" -A 127.0.0.1 -s 90000000 -M dplane_fpm_nl\"/g' /etc/frr/daemons
- /usr/lib/frr/frrinit.sh start
- >-
vtysh -c 'conf t'
-c 'router bgp 65001'
-c ' no bgp ebgp-requires-policy'
-c ' bgp router-id 10.0.0.1'
-c ' neighbor PEERS peer-group'
-c ' neighbor PEERS remote-as external'
-c ' neighbor PEERS capability extended-nexthop'
-c ' neighbor net0 interface peer-group PEERS'
-c ' address-family ipv4 unicast'
-c ' redistribute connected'
-c ' exit-address-family'
-c '!'
fpm-logger:
kind: linux
image: yutarohayakawa/fpm-logger:latest
network-mode: container:router0
startup-delay: 3
cmd: "bash -c \"fpm-logger | ip monitor all file /dev/stdin\""
links:
- endpoints: ["router0:net0", "router1:net0"]