23 lines
496 B
Django/Jinja
23 lines
496 B
Django/Jinja
{% if enable_bgp and enable_routermesh %}
|
|
|
|
{% if shortname is defined %}
|
|
{% for router in routers if not router == shortname %}
|
|
protocol bgp ibgp_{{ router }} {
|
|
local as myasn;
|
|
|
|
neighbor {{ routers[router]['ipv6'] }} as {{ asn }};
|
|
|
|
ipv6 {
|
|
export where source = RTS_BGP && !is_self_net();
|
|
import where !is_self_net();
|
|
next hop self; # for internal routes the next hop is always the neighboring router
|
|
};
|
|
}
|
|
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
# bgp is not enabled
|
|
{% endif %}
|