Files
bird_config/bird/net/dn42.conf
2026-05-05 15:48:43 +08:00

29 lines
716 B
Plaintext

protocol pipe dn42v4_sync {
table dn42v4;
peer table t102v4;
export filter {
if bgp_large_community ~ [(DN42_ASN, 3,*)] then reject;
if !is_dn42_prefix() then reject;
bgp_community.empty;
bgp_large_community.empty;
bgp_large_community.add((UNET_ASN,10,10204));
krt_prefsrc = DN42_V4_kernel;
accept;
};
import none;
}
protocol pipe dn42v6_sync {
table dn42v6;
peer table t102v6;
export filter {
if bgp_large_community ~ [(DN42_ASN, 3,*)] then reject;
if !is_dn42_prefix() then reject;
bgp_community.empty;
bgp_large_community.empty;
bgp_large_community.add((UNET_ASN,10,10206));
krt_prefsrc = DN42_V6_kernel;
accept;
};
import none;
}