EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 2fe09e32 authored by Karl Grube's avatar Karl Grube
Browse files

beginning frr work

parent 3cfe33cb
No related branches found
No related tags found
No related merge requests found
---
frr_nonice: False
frr_protocols:
- bgp
- bfd
- evpn
[Unit]
Description=FRRouting
Documentation=https://frrouting.readthedocs.io/en/latest/setup.html
Wants=network.target
After=network-pre.target systemd-sysctl.service
Before=network.target
OnFailure=heartbeat-failed@%n.service
[Service]
Type=forking
NotifyAccess=all
StartLimitInterval=3m
StartLimitBurst=3
TimeoutSec=2m
WatchdogSec=60s
RestartSec=5
Restart=on-abnormal
LimitNOFILE=1024
ExecStart=/usr/lib/frr/frrinit.sh start
ExecStop=/usr/lib/frr/frrinit.sh stop
ExecReload=/usr/lib/frr/frrinit.sh reload
[Install]
WantedBy=multi-user.target
---
- name: restart frr
service:
name: frr
state: restarted
---
- name: daemons
template:
src: daemons.j2
dest: /etc/frr/daemons
notify: restart frr
---
- name: alpine packages
package:
name:
- frr-openrc
- linux-headers
- py3-pip
- python3-dev
- build-base
- psmisc
- name: netifaces
pip:
name: netifaces
state: present
vars:
ansible_python_interpreter: /usr/bin/python3
---
- name: frr_nonice_service file
copy:
src: frr_nonice.service
dest: /etc/systemd/system/frr.service
when: frr_nonice == True
---
- import_tasks: non_sonic.yml
- import_tasks: all.yml
- include_tasks: "{{ansible_os_family|lower}}.yml"
- name: flush handlers
meta: flush_handlers
---
- name: frr packages
package:
name:
- frr
- frr-pythontools
- name: frr-reload link
file:
src: /usr/lib/frr/frr-reload.py
path: /usr/local/bin/frr-reload
state: link
- name: frr service
service:
name: frr
state: started
enabled: yes
{% for protocol in frr_protocols %}
{{protocol}}d=yes
{% endfor %}
zebra=yes
vtysh_enable=yes
zebra_options=" -A 127.0.0.1 -s 90000000"
bgpd_options=" -A 127.0.0.1 -M bmp"
ospfd_options=" -A 127.0.0.1"
ospf6d_options=" -A ::1"
ripd_options=" -A 127.0.0.1"
ripngd_options=" -A ::1"
isisd_options=" -A 127.0.0.1"
pimd_options=" -A 127.0.0.1"
ldpd_options=" -A 127.0.0.1"
nhrpd_options=" -A 127.0.0.1"
eigrpd_options=" -A 127.0.0.1"
babeld_options=" -A 127.0.0.1"
sharpd_options=" -A 127.0.0.1"
pbrd_options=" -A 127.0.0.1"
staticd_options="-A 127.0.0.1"
{% if ansible_distribution != "Cumulus Linux" %}
bfdd_options=" -A 127.0.0.1"
{% endif %}
fabricd_options="-A 127.0.0.1"
vrrpd_options=" -A 127.0.0.1"
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