This commit is contained in:
2026-05-23 16:48:17 +08:00
parent 9ee29d8cb7
commit e5e0b96c7d
3 changed files with 12 additions and 25 deletions

View File

@@ -4,7 +4,9 @@ protocol pipe unet4_inet4_sync {
peer table inet4;
export filter {
if bgp_large_community ~ [(UNET_ASN, 3,*)] then reject;
if is_bogon_prefix() then reject;
if is_bogon_prefix() then {
if net!~[10.188.0.0/16+] then reject;
};
accept;
};
import none;
@@ -28,7 +30,9 @@ protocol pipe unet4_dn42v4_sync {
peer table dn42v4;
export filter {
if bgp_large_community ~ [(UNET_ASN, 3,*)] then reject;
if !is_dn42_prefix() then reject;
if !is_dn42_prefix() then {
if net!~[10.188.0.0/16+] then reject;
};
accept;
};
import none;
@@ -60,15 +64,4 @@ protocol pipe unet4_sync {
accept;
};
import none;
}
protocol pipe unet4_syncto_inet4 {
table unet4;
peer table inet4;
export filter {
if bgp_large_community ~ [(UNET_ASN, 3,*)] then reject;
if net!~[10.188.0.0/16+] then reject;
accept;
};
import none;
}