34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
template bgp tpl_inet_up {
|
|
graceful restart;
|
|
local as LOCAL_ASN;
|
|
ipv4 {
|
|
table inet4;
|
|
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_inet_bgp_import_from_upstream() then reject; accept; };
|
|
export filter {if !function_inet_bgp_export_to_upstream0() then reject; accept; };
|
|
};
|
|
}
|
|
|
|
template bgp tpl_inet4_up {
|
|
graceful restart;
|
|
local as LOCAL_ASN;
|
|
ipv4 {
|
|
table inet4;
|
|
import filter {if !function_inet_bgp_import_from_upstream() then reject; accept; };
|
|
export filter {if !function_inet_bgp_export_to_upstream0() then reject; accept; };
|
|
};
|
|
}
|
|
|
|
template bgp tpl_inet6_up {
|
|
graceful restart;
|
|
local as LOCAL_ASN;
|
|
ipv6 {
|
|
table inet6;
|
|
import filter {if !function_inet_bgp_import_from_upstream() then reject; accept; };
|
|
export filter {if !function_inet_bgp_export_to_upstream0() then reject; accept; };
|
|
};
|
|
} |