summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/maas2/maas_tpl/maas-network_config.yaml
blob: 6188a515d04ea7557f7eabc629d30f87453960dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
        auto lo
            iface lo inet loopback
{% set ethid = 0 %}
{% for net in opnfv.spaces %}

        auto eth{{ ethid }}
            iface eth{{ ethid }} inet static
            netmask 255.255.255.0
{% if net.type!='external' %}
{% set net_prefix = net.cidr[:-4] %}
            address {{ net_prefix }}5
{% else %}
            address {{ net.ipaddress }}
{% endif %}
{% if net.type=='admin' %}
            gateway {{ net.gateway }}
            dns-nameservers {{ lab.racks[0].dns }} {{ net_prefix }}5 127.0.0.1
{% endif %}
{% set ethid = ethid+1 %}
{% endfor %}