mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-10 01:17:40 +03:00
F #5218: Better listen range for packet hosts
This commit is contained in:
parent
59ec425723
commit
22b63e6c32
@ -22,3 +22,5 @@
|
|||||||
- role: frr
|
- role: frr
|
||||||
#bond0_0 is attached to the project private network
|
#bond0_0 is attached to the project private network
|
||||||
frr_iface: 'bond0_0'
|
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
|
# The AS number used for BGP
|
||||||
frr_as: 65000
|
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:
|
vars:
|
||||||
net_str: "{{ vars['ansible_' + frr_iface].ipv4.network \
|
net_str: "{{ vars['ansible_' + frr_iface].ipv4.network \
|
||||||
+ '/' + vars['ansible_' + frr_iface].ipv4.netmask }}"
|
+ '/' + 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:
|
set_fact:
|
||||||
network_cidr: "{{ net_str | ipaddr('net') }}"
|
network_cidr: "{{ net_iface if frr_prefix_length == 0 else net_fixed }}"
|
||||||
|
|
||||||
- include: centos.yml
|
- include: centos.yml
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
Loading…
Reference in New Issue
Block a user