[bird] specify source address
parent
55da06ba5d
commit
bf6d10d568
|
@ -9,7 +9,9 @@ loc_bird:
|
||||||
bgps:
|
bgps:
|
||||||
- name: aurore
|
- name: aurore
|
||||||
allow_local_as: 1
|
allow_local_as: 1
|
||||||
local_as: 204515
|
local:
|
||||||
|
as: 204515
|
||||||
|
address: 185.230.79.253
|
||||||
remote:
|
remote:
|
||||||
as: 43619
|
as: 43619
|
||||||
address: 185.230.79.254
|
address: 185.230.79.254
|
||||||
|
@ -22,7 +24,9 @@ loc_bird:
|
||||||
bgps:
|
bgps:
|
||||||
- name: aurore
|
- name: aurore
|
||||||
allow_local_as: 1
|
allow_local_as: 1
|
||||||
local_as: 204515
|
local:
|
||||||
|
as: 204515
|
||||||
|
address: 2a0c:700:28::1
|
||||||
remote:
|
remote:
|
||||||
as: 43619
|
as: 43619
|
||||||
address: 2a0c:700:28::2
|
address: 2a0c:700:28::2
|
||||||
|
|
|
@ -9,7 +9,8 @@ loc_bird:
|
||||||
bgps:
|
bgps:
|
||||||
- name: zayo
|
- name: zayo
|
||||||
allow_local_as: 1
|
allow_local_as: 1
|
||||||
local_as: 204515
|
local:
|
||||||
|
as: 204515
|
||||||
remote:
|
remote:
|
||||||
as: 8218
|
as: 8218
|
||||||
address: 158.255.113.72
|
address: 158.255.113.72
|
||||||
|
@ -22,7 +23,8 @@ loc_bird:
|
||||||
bgps:
|
bgps:
|
||||||
- name: zayo
|
- name: zayo
|
||||||
allow_local_as: 1
|
allow_local_as: 1
|
||||||
local_as: 204515
|
local:
|
||||||
|
as: 204515
|
||||||
remote:
|
remote:
|
||||||
as: 8218
|
as: 8218
|
||||||
address: 2001:1b48:2:103::bb:1
|
address: 2001:1b48:2:103::bb:1
|
||||||
|
|
|
@ -9,7 +9,9 @@ loc_bird:
|
||||||
bgps:
|
bgps:
|
||||||
- name: aurore
|
- name: aurore
|
||||||
allow_local_as: 1
|
allow_local_as: 1
|
||||||
local_as: 204515
|
local:
|
||||||
|
as: 204515
|
||||||
|
address: 185.230.79.253
|
||||||
remote:
|
remote:
|
||||||
as: 43619
|
as: 43619
|
||||||
address: 185.230.79.254
|
address: 185.230.79.254
|
||||||
|
@ -22,7 +24,9 @@ loc_bird:
|
||||||
bgps:
|
bgps:
|
||||||
- name: aurore
|
- name: aurore
|
||||||
allow_local_as: 1
|
allow_local_as: 1
|
||||||
local_as: 204515
|
local:
|
||||||
|
as: 204515
|
||||||
|
address: 2a0c:700:28::1
|
||||||
remote:
|
remote:
|
||||||
as: 43619
|
as: 43619
|
||||||
address: 2a0c:700:28::2
|
address: 2a0c:700:28::2
|
||||||
|
|
|
@ -9,7 +9,9 @@ loc_bird:
|
||||||
bgps:
|
bgps:
|
||||||
- name: aurore
|
- name: aurore
|
||||||
allow_local_as: 1
|
allow_local_as: 1
|
||||||
local_as: 204515
|
local:
|
||||||
|
as: 204515
|
||||||
|
address: 185.230.79.253
|
||||||
remote:
|
remote:
|
||||||
as: 43619
|
as: 43619
|
||||||
address: 185.230.79.254
|
address: 185.230.79.254
|
||||||
|
@ -22,7 +24,9 @@ loc_bird:
|
||||||
bgps:
|
bgps:
|
||||||
- name: aurore
|
- name: aurore
|
||||||
allow_local_as: 1
|
allow_local_as: 1
|
||||||
local_as: 204515
|
local:
|
||||||
|
as: 204515
|
||||||
|
address: 2a0c:700:28::1
|
||||||
remote:
|
remote:
|
||||||
as: 43619
|
as: 43619
|
||||||
address: 2a0c:700:28::2
|
address: 2a0c:700:28::2
|
||||||
|
|
|
@ -41,7 +41,11 @@ protocol static {
|
||||||
|
|
||||||
{% for bgp in bird.ipv4.bgps %}
|
{% for bgp in bird.ipv4.bgps %}
|
||||||
protocol bgp {{ bgp.name }} {
|
protocol bgp {{ bgp.name }} {
|
||||||
local as {{ bgp.local_as }};
|
{% if bgp.local.address is defined %}
|
||||||
|
local {{ bgp.local.address }} as {{ bgp.local.as }};
|
||||||
|
{% else %}
|
||||||
|
local as {{ bgp.local.as }};
|
||||||
|
{% endif %}
|
||||||
{% if bgp.allow_local_as is defined %}
|
{% if bgp.allow_local_as is defined %}
|
||||||
allow local as {{ bgp.allow_local_as }};
|
allow local as {{ bgp.allow_local_as }};
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -40,7 +40,11 @@ protocol static {
|
||||||
|
|
||||||
{%for bgp in bird.ipv6.bgps %}
|
{%for bgp in bird.ipv6.bgps %}
|
||||||
protocol bgp {{ bgp.name }} {
|
protocol bgp {{ bgp.name }} {
|
||||||
local as {{ bgp.local_as }};
|
{% if bgp.local.address is defined %}
|
||||||
|
local {{ bgp.local.address }} as {{ bgp.local.as }};
|
||||||
|
{% else %}
|
||||||
|
local as {{ bgp.local.as }};
|
||||||
|
{% endif %}
|
||||||
{% if bgp.allow_local_as is defined %}
|
{% if bgp.allow_local_as is defined %}
|
||||||
allow local as {{ bgp.allow_local_as }};
|
allow local as {{ bgp.allow_local_as }};
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue