b9d76f6ef5
* Always use Python 3 * Drop code paths for CentOS 7 * Drop support for Yum * Remove support for host NTP daemon, always use chrony * Switch references from 'yum_install_epel' to 'dnf_install_epel' * Remove overcloud host image workaround for tagged VLAN admin network * Remove the kayobe.utils.yum_install function, which is unused Change-Id: I368f6edafed9779658798fc342116b4c1b3ffd48 Story: 2006574 Task: 39481
29 lines
702 B
Django/Jinja
29 lines
702 B
Django/Jinja
DEVICE={{ item.peer_device }}
|
|
TYPE=veth
|
|
PEER_DEVICE={{ item.device }}
|
|
{% if item.peer_bootproto == 'static' %}
|
|
BOOTPROTO=none
|
|
{% if item.peer_address is defined %}
|
|
IPADDR={{ item.peer_address }}
|
|
{% endif %}
|
|
{% if item.peer_netmask is defined %}
|
|
NETMASK={{ item.peer_netmask }}
|
|
{% endif %}
|
|
{% if item.peer_gateway is defined %}
|
|
GATEWAY={{ item.peer_gateway }}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if item.peer_bootproto == 'dhcp' %}
|
|
BOOTPROTO=dhcp
|
|
{% endif %}
|
|
{% if item.onboot is defined %}
|
|
ONBOOT={{ item.onboot }}
|
|
{% endif %}
|
|
{% if item.peer_bridge is defined %}
|
|
BRIDGE={{ item.peer_bridge }}
|
|
{% endif %}
|
|
NM_CONTROLLED=no
|
|
{% if item.peer_mtu is defined and item.peer_mtu %}
|
|
MTU={{ item.peer_mtu }}
|
|
{% endif %}
|