change 4.0
This commit is contained in:
@@ -3,13 +3,13 @@ template bgp tpl_inet_up {
|
||||
local as LOCAL_ASN;
|
||||
ipv4 {
|
||||
table inet4;
|
||||
import filter {if !function_inet4_bgp_import() then reject; accept; };
|
||||
export filter {if !function_inet4_bgp_export() then reject; accept; };
|
||||
import filter {if !function_inet_bgp_import_from_upstream() then reject; accept; };
|
||||
export filter {if !function_inet_bgp_export_to_upstream0() then reject; accept; };
|
||||
};
|
||||
ipv6 {
|
||||
table inet6;
|
||||
import filter {if !function_inet6_bgp_import() then reject; accept; };
|
||||
export filter {if !function_inet6_bgp_export() then reject; accept; };
|
||||
import filter {if !function_inet_bgp_import_from_upstream() then reject; accept; };
|
||||
export filter {if !function_inet_bgp_export_to_upstream0() then reject; accept; };
|
||||
};
|
||||
}
|
||||
|
||||
@@ -18,8 +18,8 @@ template bgp tpl_inet4_up {
|
||||
local as LOCAL_ASN;
|
||||
ipv4 {
|
||||
table inet4;
|
||||
import filter {if !function_inet4_bgp_import() then reject; accept; };
|
||||
export filter {if !function_inet4_bgp_export() then reject; accept; };
|
||||
import filter {if !function_inet_bgp_import_from_upstream() then reject; accept; };
|
||||
export filter {if !function_inet_bgp_export_to_upstream0() then reject; accept; };
|
||||
};
|
||||
}
|
||||
|
||||
@@ -28,8 +28,8 @@ template bgp tpl_inet6_up {
|
||||
local as LOCAL_ASN;
|
||||
ipv6 {
|
||||
table inet6;
|
||||
import filter {if !function_inet6_bgp_import() then reject; accept; };
|
||||
export filter {if !function_inet6_bgp_export() then reject; accept; };
|
||||
import filter {if !function_inet_bgp_import_from_upstream() then reject; accept; };
|
||||
export filter {if !function_inet_bgp_export_to_upstream0() then reject; accept; };
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ template bgp unet_bgp_up0 {
|
||||
table unet4;
|
||||
import filter {
|
||||
if !unet_is_valid_network_v4_allnet() then reject;
|
||||
if unet_is_self_net() then reject;
|
||||
if is_unet_self_net() then reject;
|
||||
bgp_large_community.add((UNET_ASN,200,0));
|
||||
accept;
|
||||
};
|
||||
@@ -21,7 +21,7 @@ template bgp unet_bgp_up0 {
|
||||
table unet6;
|
||||
import filter {
|
||||
if !unet_is_voalid_net_v6() then reject;
|
||||
if unet_is_self_net_v6() then reject;
|
||||
if is_unet_self_net() then reject;
|
||||
bgp_large_community.add((UNET_ASN,200,0));
|
||||
accept;
|
||||
};
|
||||
@@ -42,7 +42,7 @@ template bgp unet_bgp_up1 {
|
||||
table unet4;
|
||||
import filter {
|
||||
if !unet_is_valid_network_v4() then reject;
|
||||
if unet_is_self_net() then reject;
|
||||
if is_unet_self_net() then reject;
|
||||
bgp_large_community.add((UNET_ASN,200,0));
|
||||
accept;
|
||||
};
|
||||
@@ -68,13 +68,13 @@ template bgp unet_ibgp {
|
||||
import filter {
|
||||
if bgp_large_community ~ [(UNET_ASN, 1,*)] then reject;
|
||||
if !unet_is_valid_network_v4_allnet() then reject;
|
||||
if unet_is_self_net() then reject;
|
||||
if is_unet_self_net() then reject;
|
||||
accept;
|
||||
};
|
||||
export filter {
|
||||
if bgp_large_community ~ [(UNET_ASN, 1,*)] then reject;
|
||||
if !unet_is_valid_network_v4_allnet() then reject;
|
||||
if unet_is_self_net() then reject;
|
||||
if is_unet_self_net() then reject;
|
||||
accept;
|
||||
};
|
||||
};
|
||||
@@ -85,13 +85,13 @@ template bgp unet_ibgp {
|
||||
import filter {
|
||||
if bgp_large_community ~ [(UNET_ASN, 1,*)] then reject;
|
||||
if !unet_is_voalid_net_v6() then reject;
|
||||
if unet_is_self_net_v6() then reject;
|
||||
if is_unet_self_net() then reject;
|
||||
accept;
|
||||
};
|
||||
export filter {
|
||||
if bgp_large_community ~ [(UNET_ASN, 1,*)] then reject;
|
||||
if !unet_is_voalid_net_v6() then reject;
|
||||
if unet_is_self_net_v6() then reject;
|
||||
if is_unet_self_net() then reject;
|
||||
accept;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user