更新了分库分表配置
This commit is contained in:
@@ -1,17 +1,35 @@
|
||||
protocol pipe dn42v4_sync {
|
||||
table dn42v4;
|
||||
peer table master4;
|
||||
export filter {
|
||||
if bgp_large_community ~ [(DN42_ASN, 3,*)] then reject;
|
||||
accept;
|
||||
protocol kernel kernel_dn42v4_105 {
|
||||
scan time 20;
|
||||
kernel table 105;
|
||||
ipv4 {
|
||||
table dn42v4;
|
||||
import none;
|
||||
export filter {
|
||||
if source = RTS_STATIC then reject;
|
||||
if bgp_large_community ~ [(DN42_ASN, 3,*)] then reject;
|
||||
if is_dn42_prefix() then {
|
||||
krt_prefsrc = DN42_V4_kernel;
|
||||
accept;
|
||||
}
|
||||
reject;
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
protocol pipe dn42v6_sync {
|
||||
table dn42v6;
|
||||
peer table master6;
|
||||
export filter {
|
||||
if bgp_large_community ~ [(DN42_ASN, 3,*)] then reject;
|
||||
accept;
|
||||
protocol kernel kernel_dn42v6_105 {
|
||||
scan time 20;
|
||||
kernel table 105;
|
||||
ipv4 {
|
||||
table dn42v6;
|
||||
import none;
|
||||
export filter {
|
||||
if source = RTS_STATIC then reject;
|
||||
if bgp_large_community ~ [(DN42_ASN, 3,*)] then reject;
|
||||
if is_dn42_prefix() then {
|
||||
krt_prefsrc = DN42_V6_kernel;
|
||||
accept;
|
||||
}
|
||||
reject;
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
@@ -16,12 +16,21 @@ protocol kernel kernel_inet4_102 {
|
||||
};
|
||||
};
|
||||
|
||||
protocol pipe inet6_sync_to_master6 {
|
||||
table inet6;
|
||||
peer table master6;
|
||||
export filter {
|
||||
if bgp_large_community ~ [(LOCAL_ASN, 3,*)] then reject;
|
||||
accept;
|
||||
|
||||
protocol kernel kernel_inet6_102 {
|
||||
scan time 20;
|
||||
kernel table 102;
|
||||
ipv6 {
|
||||
table inet6;
|
||||
import none;
|
||||
export filter {
|
||||
if source = RTS_STATIC then reject;
|
||||
if bgp_large_community ~ [(LOCAL_ASN, 3,*)] then reject;
|
||||
if !is_bogon_prefix() then {
|
||||
krt_prefsrc = LOCAL_V6_kernel;
|
||||
accept;
|
||||
}
|
||||
reject;
|
||||
};
|
||||
};
|
||||
import none;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user