docs: update for J-Release
[pti/rtp.git] / okd / roles / ocloud_infra_vm / templates / virt_net.xml.j2
1 <network>
2   <name>{{ ocloud_net_name }}</name>
3   <forward mode='nat'>
4     <nat>
5       <port start='1024' end='65535'/>
6     </nat>
7   </forward>
8   <bridge name='{{ ocloud_net_bridge }}' stp='on' delay='0'/>
9   <mac address='{{ ocloud_net_mac_prefix }}:01'/>
10   <ip address='{{ ocloud_net_cidr | ansible.utils.ipmath(1) }}' netmask='{{ ocloud_net_cidr | ansible.utils.ipaddr('netmask') }}'>
11     <dhcp>
12       <range start='{{ ocloud_net_cidr | ansible.utils.ipmath(100) }}' end='{{ ocloud_net_cidr | ansible.utils.ipmath(250) }}'/>
13 {% for ocloud_host in groups['ocloud'] %}
14       <host mac='{{ ocloud_net_mac_prefix }}:{{ loop.index + 10 }}' name='{{ ocloud_host }}' ip='{{ ocloud_net_cidr | ansible.utils.ipmath(loop.index + 10) }}'/>
15 {% endfor %}
16     </dhcp>
17   </ip>
18 </network>