Files
bird_config/bird/function/dn42.conf
2025-10-30 13:29:32 +08:00

31 lines
524 B
Plaintext

ipv4 table dn42v4;
ipv6 table dn42v6;
function dn42_is_valid_network() {
return net ~ [
172.20.0.0/14+
];
}
function dn42_is_valid_network_v6() {
return net ~ [
fd00::/8+
];
}
protocol pipe dn42v4_sync {
table dn42v4;
peer table master4;
export filter {
if bgp_large_community ~ [(DN42_ASN, 3,*)] then reject;
accept;
};
}
protocol pipe dn42v6_sync {
table dn42v6;
peer table master6;
export filter {
if bgp_large_community ~ [(DN42_ASN, 3,*)] then reject;
accept;
};
}