summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/roles/create-vm-nodes/templates/net.xml.j2
diff options
context:
space:
mode:
Diffstat (limited to 'xci/playbooks/roles/create-vm-nodes/templates/net.xml.j2')
-rw-r--r--xci/playbooks/roles/create-vm-nodes/templates/net.xml.j28
1 files changed, 2 insertions, 6 deletions
diff --git a/xci/playbooks/roles/create-vm-nodes/templates/net.xml.j2 b/xci/playbooks/roles/create-vm-nodes/templates/net.xml.j2
index 3c082170..7e372ffe 100644
--- a/xci/playbooks/roles/create-vm-nodes/templates/net.xml.j2
+++ b/xci/playbooks/roles/create-vm-nodes/templates/net.xml.j2
@@ -6,13 +6,9 @@
</nat>
</forward>
<bridge name='{{ network_interface }}' stp='on' delay='0'/>
- <ip address='{{ nodes[0].remote_management.address.split(':')[0] }}' netmask='{{ node_network_netmask }}'>
+ <ip address='{{ opnfv_vm_pdf.interfaces[opnfv_vm_idf.net_config.admin.interface].gateway }}' 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 %}
+ <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>