29 lines
716 B
Plaintext
29 lines
716 B
Plaintext
protocol pipe inet4_sync {
|
|
table inet4;
|
|
peer table t102v4;
|
|
export filter {
|
|
if bgp_large_community ~ [(LOCAL_ASN, 3,*)] then reject;
|
|
if is_bogon_prefix() then reject;
|
|
bgp_community.empty;
|
|
bgp_large_community.empty;
|
|
bgp_large_community.add((UNET_ASN,10,10204));
|
|
krt_prefsrc = LOCAL_V4_kernel;
|
|
accept;
|
|
};
|
|
import none;
|
|
}
|
|
|
|
protocol pipe inet6_sync {
|
|
table inet6;
|
|
peer table t102v6;
|
|
export filter {
|
|
if bgp_large_community ~ [(LOCAL_ASN, 3,*)] then reject;
|
|
if is_bogon_prefix() then reject;
|
|
bgp_community.empty;
|
|
bgp_large_community.empty;
|
|
bgp_large_community.add((UNET_ASN,10,10206));
|
|
krt_prefsrc = LOCAL_V6_kernel;
|
|
accept;
|
|
};
|
|
import none;
|
|
} |