summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/roles/bootstrap-host/templates/osa/redhat.interface.j2
blob: fa9577647bcefcfa4b397fa6b848d32dee3f9200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
DEVICE={{ item.name }}
NM_CONTROLLED=no
ONBOOT=yes
BOOTPROTO=none
{% if item.vlan_id is defined %}
VLAN=yes
ETHERDEVICE={{ ansible_local.xci.network.xci_interface }}
VLAN_ID={{ item.vlan_id }}
{% endif %}
{% if item.bridge is not defined %}
BRIDGE={{ item.bridge }}
{% else %}
TYPE=Bridge
DELAY=0
STP=off
{% endif %}
{% if item.network is defined %}
IPADDR={{ item.network.address }}
{% endif %}