dn42-ansible/bird-babel.j2

68 lines
1.6 KiB
Text
Raw Permalink Normal View History

# Babel does not have the concept of stub areas. Instead, we should use Bird's
# "direct" protocol to read prefixes attached to interfaces and send them across
# the network.
protocol direct {
2024-12-02 07:42:47 +00:00
ipv4 {
2024-12-03 17:30:54 +00:00
import where net ~ [ 172.20.0.0/14+, 172.31.0.0/16+, 10.0.0.0/8+ ];
export where net ~ [ 172.20.0.0/14+, 172.31.0.0/16+, 10.0.0.0/8+ ];
2024-12-02 07:42:47 +00:00
};
ipv6 {
import where net ~ [ fd00::/8+ ];
export where net ~ [ fd00::/8+ ];
};
interface "igp-dummy*";
interface "host0";
interface "host0*";
interface "zt*";
interface "en*";
interface "br*";
interface "int-*";
interface "bond*";
interface "eth*";
interface "intbr0";
};
protocol babel int_babel {
randomize router id on;
ipv4 {
import where source != RTS_BGP && (is_self_net() || is_my_anycast_v4());
export where source != RTS_BGP && (is_self_net() || is_my_anycast_v4());
};
ipv6 {
import where source != RTS_BGP && (is_self_net_v6() || is_my_anycast_v6());
export where source != RTS_BGP && (is_self_net_v6() || is_my_anycast_v6());
};
interface "intbr0" {
type wired;
};
interface "ztwfugvwdo" {
type tunnel;
};
interface "host0*" {
type wired;
};
interface "host0" {
type wired;
};
interface "zt*" {
type tunnel;
};
interface "en*" {
type wired;
};
interface "br*" {
type wired;
};
interface "int-*" {
type tunnel;
};
interface "bond*" {
type wired;
};
interface "wl*" {
type wireless;
};
};