37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
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_inet_ibgp_local_mp {
|
|
graceful restart;
|
|
local as LOCAL_ASN;
|
|
med metric;
|
|
ipv4 {
|
|
table inet4;
|
|
import filter { if !function_inet4_ibgp_import() then reject; accept; };
|
|
export filter { if !function_inet4_ibgp_export() then reject; accept; };
|
|
};
|
|
ipv6 {
|
|
table inet6;
|
|
import filter { if !function_inet6_ibgp_import() then reject; accept; };
|
|
export filter { if !function_inet6_ibgp_export() then reject; accept; };
|
|
};
|
|
} |