From e63f44eb68b9e87b9b99a135fe75f9f9e84b1103 Mon Sep 17 00:00:00 2001 From: Narinder Gupta Date: Thu, 3 Nov 2016 06:50:09 -0500 Subject: added support for maas 2.0 in non virtualized environment. Change-Id: Icf024ed2cbf538df43e6bd5203685552ab6564d2 Signed-off-by: Narinder Gupta --- .../maas2/maas_tpl/maas-network_config.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ci/config_tpl/maas2/maas_tpl/maas-network_config.yaml (limited to 'ci/config_tpl/maas2/maas_tpl/maas-network_config.yaml') diff --git a/ci/config_tpl/maas2/maas_tpl/maas-network_config.yaml b/ci/config_tpl/maas2/maas_tpl/maas-network_config.yaml new file mode 100644 index 00000000..6188a515 --- /dev/null +++ b/ci/config_tpl/maas2/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 %} -- cgit 1.2.3-korg