forked from metfan1981/ansible-frr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.yml
193 lines (169 loc) · 4.89 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
---
# defaults file for ansible-frr
frr_daemons:
bfdd: false
bgpd: false
isisd: false
ldpd: false
nhrpd: false
ospf6d: false
ospfd: false
pimd: false
ripd: false
ripngd: false
zebra: true
# Define if we want to use traditional or datacenter FRR defaults
# Official docs http://docs.frrouting.org/en/latest/basic.html#profiles
# If undefined than current FRR default value is used implicitly (traditional)
#frr_defaults: "datacenter"
# Install frr from os repo (ie.. Red Hat repo)
frr_os_rpm: false
# Install monitoring scripts
frr_monitor: true
frr_prefix_list: {}
# Bad_IPs:
# 05 permit:
# prefix: 192.168.88.0/24
# match: ge 32
# 10 permit:
# prefix: 172.16.0.0/16
# match: le 32
frr_bgp: {}
# route_map: BGP_IN
# asns:
# 65000:
# log_neighbor_changes: true
# timers: '3 9'
# maximum_paths: 64
# other:
# - "no bgp network import-check"
# neighbors:
# 192.168.250.11:
# asn: 65000
# default_originate: false
# description: node1
# next_hop_self: true
# timers_connect: 5
# bfd_peer: true
# bfd_peer_detect_multiplier: 3
# bfd_peer_receive_interval: 50
# bfd_peer_transmit_interval: 50
# bfd_peer_echo_interval: 50
# bfd_peer_passive_mode: true
# bfd_peer_minimum_ttl: 253
# 192.168.250.12:
# asn: 65000
# default_originate: false
# description: node2
# next_hop_self: true
# v4_route_reflector_client: true
# bfd_peer: true
# bfd_peer_transmit_interval: 2000
# bfd_peer_echo_mode: true
# other:
# - "prefix-list Bad_IPs in"
# 172.16.250.10:
# asn: internal
# timers_connect: 5
# description: "L2VPN EVPN neighbor"
# af_evpn:
# - "activate"
# other:
# - "capability extended-nexthop"
# listen_range:
# 192.168.250.0/24: any_peer_group
# "2600::/64": any_v6_peer_group
# networks:
# - "{{ frr_router_id }}/32"
# - "{{ hostvars[inventory_hostname]['ansible_enp0s8']['ipv4']['address'] }}/24"
# redistribute: []
# # - bgp
# # - connected
# # - kernel
# # - ospf
# # - static
frr_enable_vtysh: true
# Define any interfaces which you would like IP addresses configured on
frr_interfaces: {}
# enp0s9:
# description: network-1
# ip: 192.168.1.10/24
# enp0s10:
# description: network-2
# ip: 192.168.2.10/24
# enp0s16:
# description: network-3
# ip: 192.168.3.10/24
# lo:
# description: router-id
# ip: "{{ frr_router_id }}/32"
frr_logging: syslog
# Defines OSPF configuration
frr_ospf: {}
# areas:
# 0:
# networks:
# - "{{ frr_router_id }}/32"
# 1:
# networks:
# - "{{ hostvars[inventory_hostname]['ansible_enp0s8']['ipv4']['address'] }}/24"
# 2:
# networks:
# - "{{ hostvars[inventory_hostname]['ansible_enp0s9']['ipv4']['address'] }}/24"
# log_adjacency_changes: true
# passive_interfaces: []
# # - default
# redistribute: []
# # - bgp
# # - connected
# # - kernel
# # - ospf
# # - static
#
# Defines Static Routes
frr_static: {}
# destination:
# "next hop"
# 1.1.1.1:
# blackhole
# 2.2.2.2:
# 192.168.0.1
frr_static_v6: {}
# Nexthop tracking via default gateway - disabled by default.
frr_nht_resolve_default: false
frr_package_url: "https://github.com/FRRouting/frr/releases/download/frr-{{ frr_version }}"
frr_password: zebra
# Defines release date for CentOS package
# https://github.com/FRRouting/frr/releases
frr_release_date: 2018010901
# Defines router-id
#
# frr_router_id: 1.1.1.1
# Defines FRR version to install
# https://github.com/FRRouting/frr/releases
frr_version: "7.2"
# Defines FRR apt repo
# https://deb.frrouting.org/
frr_use_upstream_repo_debian: true
frr_apt_version: frr-stable
frr_apt_repository: "deb https://deb.frrouting.org/frr {{ ansible_distribution_release }} {{ frr_apt_version }}"
frr_apt_always_install_latest: true
# Defines FRR rpm repo
# https://rpm.frrouting.org/
frr_rpm_version: frr-stable
frr_rpm_repository: "https://rpm.frrouting.org/repo/{{ frr_rpm_version }}-repo-1-0.el{{ ansible_distribution_major_version }}.noarch.rpm"
_frr_bgp_summary:
stdout: ""
# This is changed to allow for either frr or quagga to be configured depending on the need.
routing_type: frr
# Global setting for "no bgp ebgp-requires-policy"
frr_no_ebgp_requires_policy: false
# Reloads frr upon config changes
frr_reload: true
# Performs a "clear ip bgp * soft out" on config file changes
frr_clear_bgp_on_change: false
# Enable ipv/ipv6 forwarding
frr_ip_forwarding: true
frr_ipv6_forwarding: true
# Customize the location of the sysctl configuration file
#frr_sysctl_file: /etc/sysctl.d/100-ansible-frr.conf