remove dn42

This commit is contained in:
2026-06-11 13:53:26 +08:00
parent 42fd9fcae4
commit b24d146845
16 changed files with 10 additions and 232 deletions

View File

@@ -1,14 +0,0 @@
protocol pipe dn42v4_sync {
table dn42v4;
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,4));
krt_prefsrc = DN42_V4_kernel;
accept;
};
import none;
}

View File

@@ -23,21 +23,6 @@ protocol pipe unet6_inet6_sync {
import none;
}
# DN42处理 => dn42v4/6
protocol pipe unet4_dn42v4_sync {
table unet4;
peer table dn42v4;
export filter {
if bgp_large_community ~ [(UNET_ASN, 3,*)] then reject;
if !is_dn42_prefix() then {
if net!~[10.188.0.0/16+] then reject;
}
accept;
};
import none;
}
# 剩下的进入master (只有V4)
protocol pipe unet4_sync {
table unet4;