summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/roles/create-nodes/templates/net-admin.xml.j2
blob: aedbbeb7f66bead82ca7b11c6cb3b12d567ec1b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<network>
  <name>{{ item }}</name>
  <forward mode='nat'>
    <nat>
      <port start='1024' end='65535'/>
    </nat>
  </forward>
  <bridge name='br-{{ item }}' stp='on' delay='0'/>
  <ip address='{{ opnfv_vm_pdf.interfaces[opnfv_vm_idf.net_config.admin.interface].gateway }}' netmask='255.255.255.0'>
     <dhcp>
       <host mac="{{ opnfv_vm_pdf.interfaces[opnfv_vm_idf.net_config.admin.interface].mac_address }}" ip="{{ opnfv_vm_pdf.interfaces[opnfv_vm_idf.net_config.admin.interface].address }}"/>
     </dhcp>
  </ip>
</network>