This commit is contained in:
2026-05-23 15:09:44 +08:00
parent 6fe05cf0e4
commit 28294a3e59
13 changed files with 232 additions and 27 deletions

View File

@@ -1,12 +1,12 @@
protocol pipe dn42v4_sync {
table dn42v4;
peer table t102v4;
peer table master4;
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));
bgp_large_community.add((UNET_ASN,10,4));
krt_prefsrc = DN42_V4_kernel;
accept;
};
@@ -15,13 +15,13 @@ protocol pipe dn42v4_sync {
protocol pipe dn42v6_sync {
table dn42v6;
peer table t102v6;
peer table master6;
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));
bgp_large_community.add((UNET_ASN,10,6));
krt_prefsrc = DN42_V6_kernel;
accept;
};