dn42-ansible/bird-babel.j2

61 lines
1.3 KiB
Django/Jinja

# 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 {
ipv4;
ipv6;
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;
};
};