F #5218: Better listen range for packet hosts

This commit is contained in:
Ruben S. Montero authored and Tino Vazquez committed 2021-01-11 16:38:46 +01:00
1 parent 489fbba954
commit e86bb48a74
3 files changed
+9 -1

No files matched your search

+2
View File
@@ -22,3 +22,5 @@
- role: frr
#bond0_0 is attached to the project private network
frr_iface: 'bond0_0'
# Use /25 for the internal management network address
frr_prefix_length: 25
@@ -12,3 +12,7 @@ frr_iface: 'eth0'
# The AS number used for BGP
frr_as: 65000
# Prefix length for the BGP network, if 0 the interface network address will be
# used. Otherwise the network address will use the provided length.
frr_prefix_length: 0
@@ -12,8 +12,10 @@
vars:
net_str: "{{ vars['ansible_' + frr_iface].ipv4.network \
+ '/' + vars['ansible_' + frr_iface].ipv4.netmask }}"
net_iface: "{{ net_str | ipaddr('net') }}"
net_fixed: "{{ vars['ansible_' + frr_iface].ipv4.network + '/' + frr_prefix_length | string }}"
set_fact:
network_cidr: "{{ net_str | ipaddr('net') }}"
network_cidr: "{{ net_iface if frr_prefix_length == 0 else net_fixed }}"
- include: centos.yml
when: ansible_os_family == "RedHat"