更新倒表方式
This commit is contained in:
@@ -1,33 +1,29 @@
|
||||
protocol kernel kernel_dn42v4_105 {
|
||||
scan time 20;
|
||||
kernel table 105;
|
||||
ipv4 {
|
||||
table dn42v4;
|
||||
import none;
|
||||
export filter {
|
||||
if bgp_large_community ~ [(DN42_ASN, 3,*)] then reject;
|
||||
if is_dn42_prefix() then {
|
||||
krt_prefsrc = DN42_V4_kernel;
|
||||
accept;
|
||||
}
|
||||
reject;
|
||||
};
|
||||
protocol pipe dn42v4_sync {
|
||||
table dn42v4;
|
||||
peer table t102v4;
|
||||
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));
|
||||
krt_prefsrc = DN42_V4_kernel;
|
||||
accept;
|
||||
};
|
||||
};
|
||||
import none;
|
||||
}
|
||||
|
||||
protocol kernel kernel_dn42v6_105 {
|
||||
scan time 20;
|
||||
kernel table 105;
|
||||
ipv6 {
|
||||
table dn42v6;
|
||||
import none;
|
||||
export filter {
|
||||
if bgp_large_community ~ [(DN42_ASN, 3,*)] then reject;
|
||||
if is_dn42_prefix() then {
|
||||
krt_prefsrc = DN42_V6_kernel;
|
||||
accept;
|
||||
}
|
||||
reject;
|
||||
};
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user