X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=deploy%2Fmetal3-vm%2Fvm-setup%2Froles%2Flibvirt%2Ftemplates%2Fironic_nodes.json.j2;h=021f0cd34a3ec5587abb321fd0a44d81f2f3dfb1;hb=refs%2Fchanges%2F16%2F4216%2F1;hp=7040199ff3b03da176dc8141546b67224c8f4cd8;hpb=250d4db0014929adb499372a866cf45a47450681;p=icn.git diff --git a/deploy/metal3-vm/vm-setup/roles/libvirt/templates/ironic_nodes.json.j2 b/deploy/metal3-vm/vm-setup/roles/libvirt/templates/ironic_nodes.json.j2 index 7040199..021f0cd 100644 --- a/deploy/metal3-vm/vm-setup/roles/libvirt/templates/ironic_nodes.json.j2 +++ b/deploy/metal3-vm/vm-setup/roles/libvirt/templates/ironic_nodes.json.j2 @@ -29,11 +29,29 @@ "properties": { "local_gb": "{{ flavors[node.flavor].disk }}", "cpu_arch": "{{ libvirt_arch }}" + }, + "net": { + "links": [ + {% for network in networks %} + { + "id": "{{ network.name }}_nic", + "ethernet_mac_address": "{{ node_mac_map.get(node.name).get(network.name) }}", + "type": "phy" + }{% if not loop.last %},{% endif %} + {% endfor %} + ], + "networks": [ + {% for network in networks %} + { + "id": "{{ network.name }}", + "link": "{{ network.name }}_nic", + "type": "ipv4_dhcp" + }{% if not loop.last %},{% endif %} + {% endfor %} + ], + "services": [] } - } - {% if not loop.last %} - , - {% endif %} + }{% if not loop.last %},{% endif %} {% endfor %} ] }