1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-08 21:17:43 +03:00

F #5218: Better listen range for packet hosts

This commit is contained in:
Ruben S. Montero 2021-01-08 15:20:33 +00:00
parent 59ec425723
commit 22b63e6c32
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87
3 changed files with 9 additions and 1 deletions

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

View File

@ -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

View File

@ -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"