更新倒表方式

This commit is contained in:
2026-05-05 15:48:43 +08:00
parent 171c595483
commit 08fdf2fa04
7 changed files with 134 additions and 75 deletions

View File

@@ -7,15 +7,39 @@ protocol device {
scan time 10;
};
protocol kernel {
protocol kernel kernel_main4 {
scan time 20;
ipv4 {
import none;
export filter {
if unet_is_valid_network_v4() then {
krt_prefsrc = UNET_V4_kernel;
accept;
}
if bgp_large_community ~ [(UNET_ASN, 10,4)] then accept;
reject;
};
};
};
protocol kernel kernel_t102v4 {
scan time 20;
kernel table 102;
ipv4 {
table t102v4;
import none;
export filter {
if bgp_large_community ~ [(UNET_ASN, 10,10204)] then accept;
reject;
};
};
};
protocol kernel kernel_t102v6 {
scan time 20;
kernel table 102;
ipv6 {
table t102v6;
import none;
export filter {
if bgp_large_community ~ [(UNET_ASN, 10,10206)] then accept;
reject;
};
};