cmodfiied to add juju 2.0 support.
[joid.git] / ci / config_tpl / juju2 / maas_tpl / maas-network_config.yaml
1         auto lo
2             iface lo inet loopback
3 {% set ethid = 0 %}
4 {% for net in opnfv.spaces %}
5
6         auto eth{{ ethid }}
7             iface eth{{ ethid }} inet static
8             netmask 255.255.255.0
9 {% if net.type!='external' %}
10 {% set net_prefix = net.cidr[:-4] %}
11             address {{ net_prefix }}5
12 {% else %}
13             address {{ net.ipaddress }}
14 {% endif %}
15 {% if net.type=='admin' %}
16             gateway {{ net.gateway }}
17             dns-nameservers {{ lab.racks[0].dns }} {{ net_prefix }}5 127.0.0.1
18 {% endif %}
19 {% set ethid = ethid+1 %}
20 {% endfor %}