summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/roles/create-vm-nodes/templates/net.xml.j2
blob: 3c082170d6658de91cf75171aebda60d5395777b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<network>
  <name>{{ vm_network }}</name>
  <forward mode='nat'>
    <nat>
      <port start='1024' end='65535'/>
    </nat>
  </forward>
  <bridge name='{{ network_interface }}' stp='on' delay='0'/>
  <ip address='{{ nodes[0].remote_management.address.split(':')[0] }}' netmask='{{ node_network_netmask }}'>
     <dhcp>
      {%- for interface in opnfv_vm.interfaces %}
       {%-   if 'native' in (interface.vlan | string) %}
       <host mac="{{ interface.mac_address }}" ip="{{ interface.address }}"/>
       {%-   endif %}
       {%- endfor %}
     </dhcp>
  </ip>
</network>