83 lines
2.3 KiB
Plaintext
83 lines
2.3 KiB
Plaintext
template bgp tpl_inet_up {
|
|
graceful restart;
|
|
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; };
|
|
};
|
|
ipv6 {
|
|
table inet6;
|
|
import filter {if !function_inet6_bgp_import() then reject; accept; };
|
|
export filter {if !function_inet6_bgp_export() then reject; accept; };
|
|
};
|
|
}
|
|
|
|
template bgp tpl_inet4_up {
|
|
graceful restart;
|
|
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; };
|
|
};
|
|
}
|
|
|
|
template bgp tpl_inet6_up {
|
|
graceful restart;
|
|
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; };
|
|
};
|
|
}
|
|
|
|
template bgp tpl_inet_ibgp {
|
|
graceful restart;
|
|
local as LOCAL_ASN;
|
|
med metric;
|
|
direct;
|
|
ipv4 {
|
|
table inet4;
|
|
next hop self;
|
|
gateway direct;
|
|
import filter {if !function_inet4_ibgp_import() then reject; accept; };
|
|
export filter {if !function_inet4_ibgp_export() then reject; accept; };
|
|
};
|
|
ipv6 {
|
|
table inet6;
|
|
next hop self;
|
|
gateway direct;
|
|
import filter {if !function_inet6_ibgp_import() then reject; accept; };
|
|
export filter {if !function_inet6_ibgp_export() then reject; accept; };
|
|
};
|
|
}
|
|
|
|
template bgp tpl_inet4_ibgp {
|
|
graceful restart;
|
|
local as LOCAL_ASN;
|
|
med metric;
|
|
direct;
|
|
ipv4 {
|
|
table inet4;
|
|
next hop self;
|
|
gateway direct;
|
|
import filter {if !function_inet4_ibgp_import() then reject; accept; };
|
|
export filter {if !function_inet4_ibgp_export() then reject; accept; };
|
|
};
|
|
}
|
|
|
|
template bgp tpl_inet6_ibgp {
|
|
graceful restart;
|
|
local as LOCAL_ASN;
|
|
med metric;
|
|
direct;
|
|
ipv6 {
|
|
table inet6;
|
|
next hop self;
|
|
gateway direct;
|
|
import filter {if !function_inet6_ibgp_import() then reject; accept; };
|
|
export filter {if !function_inet6_ibgp_export() then reject; accept; };
|
|
};
|
|
} |