This commit is contained in:
2026-05-23 17:35:37 +08:00
parent ca4a406afc
commit b903422ec6
8 changed files with 35 additions and 175 deletions

View File

@@ -1,29 +1,14 @@
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;
};
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;
}

View File

@@ -38,18 +38,6 @@ protocol pipe unet4_dn42v4_sync {
import none;
}
protocol pipe unet6_dn42v6_sync {
table unet6;
peer table dn42v6;
export filter {
if bgp_large_community ~ [(UNET_ASN, 3,*)] then reject;
if !is_dn42_prefix() then reject;
accept;
};
import none;
}
# 剩下的进入master (只有V4)
protocol pipe unet4_sync {
table unet4;