list update
This commit is contained in:
@@ -5,7 +5,7 @@ template bgp dn42_bgp_up {
|
||||
table dn42v4;
|
||||
import filter {
|
||||
if !is_dn42_prefix() then reject;
|
||||
if dn42_is_self_net() then reject;
|
||||
if is_self_net_dn42v4() then reject;
|
||||
bgp_large_community.add((DN42_ASN,200,0));# 传输到Ebgp
|
||||
accept;
|
||||
};
|
||||
@@ -22,7 +22,7 @@ template bgp dn42_bgp_up {
|
||||
table dn42v6;
|
||||
import filter {
|
||||
if !is_dn42_prefix() then reject;
|
||||
if dn42_is_self_net_v6() then reject;
|
||||
if is_self_net_dn42v6() then reject;
|
||||
bgp_large_community.add((DN42_ASN,200,0));# 传输到Ebgp
|
||||
accept;
|
||||
};
|
||||
@@ -48,13 +48,13 @@ template bgp dn42_ibgp {
|
||||
import filter {
|
||||
if bgp_large_community ~ [(DN42_ASN, 1,*)] then reject;
|
||||
if !is_dn42_prefix() then reject;
|
||||
if dn42_is_self_net() then reject;
|
||||
if is_self_net_dn42v4() then reject;
|
||||
accept;
|
||||
};
|
||||
export filter {
|
||||
if bgp_large_community ~ [(DN42_ASN, 1,*)] then reject;
|
||||
if !is_dn42_prefix() then reject;
|
||||
if dn42_is_self_net() then reject;
|
||||
if is_self_net_dn42v4() then reject;
|
||||
accept;
|
||||
};
|
||||
};
|
||||
@@ -65,13 +65,13 @@ template bgp dn42_ibgp {
|
||||
import filter {
|
||||
if bgp_large_community ~ [(DN42_ASN, 1,*)] then reject;
|
||||
if !is_dn42_prefix() then reject;
|
||||
if dn42_is_self_net_v6() then reject;
|
||||
if is_self_net_dn42v6() then reject;
|
||||
accept;
|
||||
};
|
||||
export filter {
|
||||
if bgp_large_community ~ [(DN42_ASN, 1,*)] then reject;
|
||||
if !is_dn42_prefix() then reject;
|
||||
if dn42_is_self_net_v6() then reject;
|
||||
if is_self_net_dn42v6() then reject;
|
||||
accept;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
filter filter_inet4_bgp_import {
|
||||
if is_self_net() then reject;
|
||||
if is_self_net_inet4() then reject;
|
||||
if is_bogon_prefix() || (bgp_path.len > 100) then reject;
|
||||
bgp_large_community.empty;
|
||||
bgp_large_community.add((LOCAL_ASN,200,0));
|
||||
@@ -7,7 +7,7 @@ filter filter_inet4_bgp_import {
|
||||
}
|
||||
|
||||
filter filter_inet4_bgp_export {
|
||||
if !is_self_net() then reject;
|
||||
if !is_self_net_inet4() then reject;
|
||||
if is_bogon_prefix() || (bgp_path.len > 100) then reject;
|
||||
if source != RTS_STATIC then reject;
|
||||
if bgp_large_community !~ [(LOCAL_ASN, 200,0)] then reject;
|
||||
@@ -16,7 +16,7 @@ filter filter_inet4_bgp_export {
|
||||
}
|
||||
|
||||
filter filter_inet6_bgp_import {
|
||||
if is_self_net_v6() then reject;
|
||||
if is_self_net_inet6() then reject;
|
||||
if is_bogon_prefix() || (bgp_path.len > 100) then reject;
|
||||
bgp_large_community.empty;
|
||||
bgp_large_community.add((LOCAL_ASN,200,0));# 传输到Ebgp
|
||||
@@ -24,7 +24,7 @@ filter filter_inet6_bgp_import {
|
||||
}
|
||||
|
||||
filter filter_inet6_bgp_export {
|
||||
if !is_self_net_v6() then reject;
|
||||
if !is_self_net_inet6() then reject;
|
||||
if is_bogon_prefix() || (bgp_path.len > 100) then reject;
|
||||
if source != RTS_STATIC then reject;
|
||||
if bgp_large_community !~ [(LOCAL_ASN, 200,0)] then reject;
|
||||
@@ -33,28 +33,28 @@ filter filter_inet6_bgp_export {
|
||||
}
|
||||
|
||||
filter filter_inet4_ibgp_import {
|
||||
if is_self_net() then reject;
|
||||
if is_self_net_inet4() then reject;
|
||||
if is_bogon_prefix() then reject;
|
||||
if bgp_large_community ~ [(LOCAL_ASN, 1,*)] then reject;
|
||||
accept;
|
||||
}
|
||||
|
||||
filter filter_inet4_ibgp_export {
|
||||
if is_self_net() then reject;
|
||||
if is_self_net_inet4() then reject;
|
||||
if is_bogon_prefix() then reject;
|
||||
if bgp_large_community ~ [(LOCAL_ASN, 1,*)] then reject;
|
||||
accept;
|
||||
}
|
||||
|
||||
filter filter_inet6_ibgp_import {
|
||||
if is_self_net_v6() then reject;
|
||||
if is_self_net_inet6() then reject;
|
||||
if is_bogon_prefix() then reject;
|
||||
if bgp_large_community ~ [(LOCAL_ASN, 1,*)] then reject;
|
||||
accept;
|
||||
}
|
||||
|
||||
filter filter_inet6_ibgp_export {
|
||||
if is_self_net_v6() then reject;
|
||||
if is_self_net_inet6() then reject;
|
||||
if is_bogon_prefix() then reject;
|
||||
if bgp_large_community ~ [(LOCAL_ASN, 1,*)] then reject;
|
||||
accept;
|
||||
|
||||
@@ -4,12 +4,12 @@ template bgp tpl_inet6_ixp {
|
||||
ipv6 {
|
||||
table inet6;
|
||||
import filter {
|
||||
if is_self_net_v6() then reject;
|
||||
if is_self_net_inet6() then reject;
|
||||
if is_bogon_prefix() || (bgp_path.len > 100) then reject;
|
||||
accept;
|
||||
};
|
||||
export filter {
|
||||
if !is_self_net_v6() then reject;
|
||||
if !is_self_net_inet6() then reject;
|
||||
if is_bogon_prefix() || (bgp_path.len > 100) then reject;
|
||||
if bgp_large_community !~ [(LOCAL_ASN, 200,0)] then reject;
|
||||
bgp_large_community.empty;
|
||||
|
||||
Reference in New Issue
Block a user