diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2016-10-16 07:54:56 -0500 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2016-10-16 23:43:55 -0500 |
commit | f1dfc0776d32dea2a2fe7e2cb2b15b1836a6b666 (patch) | |
tree | b75bd8543a4ba5cc7919c43588b2522201c88c90 /ci/config_tpl/juju2/maas_tpl/maas-network_config.yaml | |
parent | 498d228be6d2bb1f68b5d63813e01ecd68b315cd (diff) |
cmodfiied to add juju 2.0 support.
Change-Id: I3981f796cfb9ceb9f32522f4fed831d66e389c48
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/config_tpl/juju2/maas_tpl/maas-network_config.yaml')
-rw-r--r-- | ci/config_tpl/juju2/maas_tpl/maas-network_config.yaml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ci/config_tpl/juju2/maas_tpl/maas-network_config.yaml b/ci/config_tpl/juju2/maas_tpl/maas-network_config.yaml new file mode 100644 index 00000000..6188a515 --- /dev/null +++ b/ci/config_tpl/juju2/maas_tpl/maas-network_config.yaml @@ -0,0 +1,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 %} |