[bird] move bird configuration to group_vars/bird.yml

main
_shirenn 2022-11-28 13:23:02 +01:00
parent 4a633de452
commit e083e995d4
4 changed files with 48 additions and 159 deletions

View File

@ -1,5 +1,52 @@
---
glob_bird: {}
glob_bird:
id: 185.230.79.253
asn:
crans: 204515
aurore: 43619
viarezo: 212424
static:
ipv4:
- route 185.230.76.0/22 unreachable
ipv6:
- route 2a0c:700::/32 unreachable
bgp:
- name: aurore4
description: "BGP4 session with aurore"
local:
asn: crans
addr: 185.230.79.253
neighbor:
asn: aurore
addr: 185.230.79.254
ipv4: true
- name: aurore6
description: "BGP6 session with aurore"
local:
asn: crans
addr: 2a0c:700:28::1
neighbor:
asn: aurore
addr: 2a0c:700:28::2
ipv6: true
- name: viarezo4
description: "BGP4 session with viarezo"
local:
asn: crans
addr: 138.195.159.250
neighbor:
asn: viarezo
addr: 138.195.159.249
ipv4: true
- name: viarezo6
description: "BGP6 session with viarezo"
local:
asn: crans
addr: 2a0c:b641:2f3::2
neighbor:
asn: viarezo
addr: 2a0c:b641:2f3::1
ipv6: true
glob_prometheus_bird_exporter:
listen_addr: "{{ query('ldap', 'ip4', ansible_hostname, 'adm') }}"

View File

@ -1,49 +0,0 @@
---
loc_bird:
id: 185.230.79.253
asn:
crans: 204515
aurore: 43619
viarezo: 212424
static:
ipv4:
- route 185.230.76.0/22 unreachable
ipv6:
- route 2a0c:700::/32 unreachable
bgp:
- name: aurore4
description: "BGP4 session with aurore"
local:
asn: crans
addr: 185.230.79.253
neighbor:
asn: aurore
addr: 185.230.79.254
ipv4: true
- name: aurore6
description: "BGP6 session with aurore"
local:
asn: crans
addr: 2a0c:700:28::1
neighbor:
asn: aurore
addr: 2a0c:700:28::2
ipv6: true
- name: viarezo4
description: "BGP4 session with viarezo"
local:
asn: crans
addr: 138.195.159.250
neighbor:
asn: viarezo
addr: 138.195.159.249
ipv4: true
- name: viarezo6
description: "BGP6 session with viarezo"
local:
asn: crans
addr: 2a0c:b641:2f3::2
neighbor:
asn: viarezo
addr: 2a0c:b641:2f3::1
ipv6: true

View File

@ -1,60 +0,0 @@
---
loc_bird:
ipv4:
id: 185.230.79.253
binds:
- 138.195.159.250
- 185.230.79.253
statics:
- 185.230.76.0/22
kernel_filter:
- 185.230.78.0/24
bgps:
- name: viarezo
allow_local_as: 1
local:
as: 204515
address: 138.195.159.250
remote:
as: 212424
address: 138.195.159.249
allow_export_prefixes:
- 185.230.76.0/22+
- name: aurore
allow_local_as: 1
local:
as: 204515
address: 185.230.79.253
remote:
as: 43619
address: 185.230.79.254
allow_export_prefixes:
- 185.230.76.0/22+
ipv6:
id: 185.230.79.253
binds:
- 2a0c:b641:2f3::2
- 2a0c:700:28::1
statics:
- 2a0c:700::/32
bgps:
- name: viarezo
allow_local_as: 1
local:
as: 204515
address: 2a0c:b641:2f3::2
remote:
as: 212424
address: 2a0c:b641:2f3::1
allow_export_prefixes:
- 2a0c:700::/32+
- name: aurore
allow_local_as: 1
local:
as: 204515
address: 2a0c:700:28::1
remote:
as: 43619
address: 2a0c:700:28::2
allow_export_prefixes:
- 2a0c:700::/32+

View File

@ -1,49 +0,0 @@
---
loc_bird:
id: 185.230.79.253
asn:
crans: 204515
aurore: 43619
viarezo: 212424
static:
ipv4:
- route 185.230.76.0/22 unreachable
ipv6:
- route 2a0c:700::/32 unreachable
bgp:
- name: aurore4
description: "BGP4 session with aurore"
local:
asn: crans
addr: 185.230.79.253
neighbor:
asn: aurore
addr: 185.230.79.254
ipv4: true
- name: aurore6
description: "BGP6 session with aurore"
local:
asn: crans
addr: 2a0c:700:28::1
neighbor:
asn: aurore
addr: 2a0c:700:28::2
ipv6: true
- name: viarezo4
description: "BGP4 session with viarezo"
local:
asn: crans
addr: 138.195.159.250
neighbor:
asn: viarezo
addr: 138.195.159.249
ipv4: true
- name: viarezo6
description: "BGP6 session with viarezo"
local:
asn: crans
addr: 2a0c:b641:2f3::2
neighbor:
asn: viarezo
addr: 2a0c:b641:2f3::1
ipv6: true