1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #
- # This file is managed by ansible. Do not edit by hand!
- #
- log syslog all;
- router id {{supernode_mesh_ipv4|ipaddr('address')}};
- protocol static uplink_hostroute {
- import all;
- export all;
- }
- protocol direct {
- interface "*";
- }
- protocol kernel {
- persist;
- device routes;
- scan time 20;
- import all;
- export all;
- kernel table 42;
- }
- protocol device {
- scan time 10;
- }
- template bgp ibgp {
- source address {{supernode_mesh_ipv6|ipaddr('address')}};
- local as {{supernode_as}};
- import all;
- export all;
- next hop self;
- direct;
- gateway direct;
- }
- {% if supernode_uplinks is defined %}
- template bgp uplink {
- local as {{supernode_uplinks[0].as}};
- import all;
- export all;
- next hop self;
- direct;
- multihop 64;
- }
- {% for uplink in supernode_uplinks %}
- protocol bgp {{uplink.name}} from uplink {
- neighbor {{uplink.address_v6|ipaddr('address')}} as {{uplink.as}};
- default bgp_med 2;
- }
- {% endfor %}
- {% endif %}
- {% for meshlink in supernode_mesh_backbones %}
- protocol bgp {{meshlink.name}} from ibgp {
- neighbor {{meshlink.address_v6}} as {{supernode_as}};
- default bgp_med 4;
- }
- {% endfor %}
|