Skip to content
Snippets Groups Projects
Commit 80f0d368 authored by Benjamin Graillot's avatar Benjamin Graillot
Browse files

[quagga] Merge ipv4 and ipv6

parent 384c1b34
No related branches found
No related tags found
2 merge requests!64Keepalived,!47[quagga] Merge ipv4 and ipv6
......@@ -14,3 +14,20 @@
service_password: "{{ vault_re2o_service_password }}"
roles:
- firewall
# Deploy BGP server configuration on IPv4 routers
- hosts: crans_routeurs
vars:
zebra:
password: "{{ vault_zebra_password }}"
bgp:
as: 204515
router_id_v4: 158.255.113.73
network_v4: 185.230.76.0/22
neighbor_v4: 158.255.113.72
router_id_v6: 138.231.136.200
network_v6: 2a0c:700::/32
neighbor_v6: 2001:1b48:2:103::bb:1
remote_as: 8218
roles:
- quagga
---
- name: Deploy quagga bgpd configuration
template:
src: quagga/bgpd.conf.j2
dest: /etc/quagga/bgpd.conf
mode: 0640
owner: quagga
group: quagga
- name: Deploy quagga zabra configuration
template:
src: quagga/zebra.conf.j2
dest: /etc/quagga/zebra.conf
mode: 0640
owner: quagga
group: quagga
{{ ansible_header | comment(decoration='! ') }}
router bgp {{ bgp.as }}
no synchronization
bgp router-id {{ bgp.router_id }}
network {{ bgp.network }}
neighbor {{ bgp.neighbor }} remote-as {{ bgp.remote_as }}
!
log file /var/log/quagga/bgpd.log
log stdout
---
- name: Deploy quagga bgpd configuration
template:
src: quagga/bgpd.conf.j2
dest: /etc/quagga/bgpd.conf
mode: 0640
owner: quagga
group: quagga
- name: Deploy quagga zabra configuration
template:
src: quagga/zebra.conf.j2
dest: /etc/quagga/zebra.conf
mode: 0640
owner: quagga
group: quagga
{{ ansible_header | comment(decoration='! ') }}
router bgp {{ bgp.as }}
no synchronization
bgp router-id {{ bgp.router_id }}
neighbor {{ bgp.neighbor }} remote-as {{ bgp.remote_as }}
address-family ipv6
network {{ bgp.network }}
neighbor {{ bgp.neighbor }} activate
exit-address-family
!
log file /var/log/quagga/bgpd.log
log stdout
{{ ansible_header | comment(decoration='! ') }}
hostname zebra
password {{ zebra.password }}
enable password {{ zebra.password }}
log file /var/log/quagga/zebra.log
interface lo
line vty
......@@ -8,6 +8,14 @@
retries: 3
until: apt_result is succeeded
- name: Create quagga log directory
file:
path: /var/log/quagga
state: directory
mode: 0755
owner: quagga
group: quagga
- name: Deploy quagga daemons configuration
template:
src: quagga/daemons.j2
......@@ -24,10 +32,18 @@
owner: quagga
group: quagga
- name: Create quagga log directory
file:
path: /var/log/quagga
state: directory
mode: 0755
- name: Deploy quagga bgpd configuration
template:
src: quagga/bgpd.conf.j2
dest: /etc/quagga/bgpd.conf
mode: 0640
owner: quagga
group: quagga
- name: Deploy quagga zabra configuration
template:
src: quagga/zebra.conf.j2
dest: /etc/quagga/zebra.conf
mode: 0640
owner: quagga
group: quagga
{{ ansible_header | comment(decoration='! ') }}
!
router bgp {{ bgp.as }}
no synchronization
bgp router-id {{ bgp.router_id_v4 }}
network {{ bgp.network_v4 }}
neighbor {{ bgp.neighbor_v4 }} remote-as {{ bgp.remote_as }}
!
router bgp {{ bgp.as }}
no synchronization
bgp router-id {{ bgp.router_id_v6 }}
network {{ bgp.network_v6 }}
neighbor {{ bgp.neighbor_v6 }} remote-as {{ bgp.remote_as }}
!
log file /var/log/quagga/bgpd.log
log stdout
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment