Commit 21e502e5 authored by Jan Moskyto Matejka's avatar Jan Moskyto Matejka

Birdlab: BGP to all virtuals, atd1 as RR

parent dd0b3f1c
......@@ -49,15 +49,11 @@ protocol device {
protocol kernel {
# learn;
# persist;
import all;
# import all;
export all;
scan time 20;
}
protocol direct {
import all;
}
EOF
for T in ${TOK[@]}; do
......@@ -88,12 +84,26 @@ protocol bgp {
table b4;
}
protocol bgp {
template bgp bc {
local 10.55.1.1 as 65123;
neighbor 10.55.1.17 as 65123;
rr client;
export all;
table b4;
multihop;
next hop self;
}
protocol bgp from bc {
neighbor 10.55.1.5 as 65123;
}
protocol bgp from bc {
neighbor 10.55.1.9 as 65123;
}
protocol bgp from bc {
neighbor 10.55.1.13 as 65123;
}
protocol bgp from bc {
neighbor 10.55.1.17 as 65123;
}
EOF
......@@ -106,34 +116,119 @@ protocol bgp {
table b6;
}
protocol bgp {
template bgp bc {
local fd01:55::1 as 65123;
neighbor fd01:55::17 as 65123;
rr client;
export all;
table b6;
next hop self;
}
protocol bgp from bc {
neighbor fd01:55::5 as 65123;
}
protocol bgp from bc {
neighbor fd01:55::9 as 65123;
}
protocol bgp from bc {
neighbor fd01:55::13 as 65123;
}
protocol bgp from bc {
neighbor fd01:55::17 as 65123;
}
EOF
cf o1-4 -- cat <<EOF
table b;
protocol bgp {
local 10.55.1.5 as 65123;
neighbor 10.55.1.1 as 65123;
import all;
table b;
multihop;
}
EOF
cf o1-6 -- cat <<EOF
table b;
protocol bgp {
local fd01:55::5 as 65123;
neighbor fd01:55::1 as 65123;
import all;
table b;
multihop;
}
EOF
cf f1-4 -- cat <<EOF
table b;
protocol bgp {
local 10.55.1.9 as 65123;
neighbor 10.55.1.1 as 65123;
import filter { if net ~ 64.0.0.0/7 then accept; reject; };
table b;
multihop;
}
EOF
cf f1-6 -- cat <<EOF
table b;
protocol bgp {
local fd01:55::9 as 65123;
neighbor fd01:55::1 as 65123;
import all;
table b;
multihop;
}
EOF
cf n1-4 -- cat <<EOF
table b;
protocol bgp {
local 10.55.1.13 as 65123;
neighbor 10.55.1.1 as 65123;
import filter { if net ~ 64.0.0.0/7 then accept; reject; };
table b;
multihop;
}
EOF
cf n1-6 -- cat <<EOF
table b;
protocol bgp {
local fd01:55::13 as 65123;
neighbor fd01:55::1 as 65123;
import all;
table b;
multihop;
}
EOF
cf d2-4 -- cat <<EOF
table b;
protocol bgp {
local 10.55.1.17 as 65123;
neighbor 10.55.1.1 as 65123;
import filter { if net ~ 64.0.0.0/7 then accept; reject; };
table b;
multihop;
}
EOF
cf d2-6 -- cat <<EOF
table b;
protocol bgp {
local fd01:55::17 as 65123;
neighbor fd01:55::1 as 65123;
import all;
table b;
multihop;
}
EOF
for T in ${MACH[@]}; do
cat <<'EOF' > rc/rc-loc-at$T
OSPF_INAME_SED="x;"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment