summaryrefslogtreecommitdiffstats
path: root/ci/config_tpl/maas2/maas_tpl/maas-node_group_ifaces.yaml
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-11-03 06:50:09 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-11-03 07:56:13 -0500
commite63f44eb68b9e87b9b99a135fe75f9f9e84b1103 (patch)
treee7ea6e3d0c89a961e1562e5fff5489a624758d18 /ci/config_tpl/maas2/maas_tpl/maas-node_group_ifaces.yaml
parent769c8026c814a4746db2bd7ff1cd2937e74381bd (diff)
added support for maas 2.0 in non virtualized environment.
Change-Id: Icf024ed2cbf538df43e6bd5203685552ab6564d2 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/config_tpl/maas2/maas_tpl/maas-node_group_ifaces.yaml')
-rw-r--r--ci/config_tpl/maas2/maas_tpl/maas-node_group_ifaces.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/ci/config_tpl/maas2/maas_tpl/maas-node_group_ifaces.yaml b/ci/config_tpl/maas2/maas_tpl/maas-node_group_ifaces.yaml
new file mode 100644
index 00000000..578c89fb
--- /dev/null
+++ b/ci/config_tpl/maas2/maas_tpl/maas-node_group_ifaces.yaml
@@ -0,0 +1,23 @@
+{% set ethid = 0 %}
+{% for net in opnfv.spaces %}
+{% if net.type!='external' %}
+{% set net_prefix = net.cidr[:-4] %}
+ - broadcast_ip: {{ net_prefix }}255
+ device: eth{{ ethid }}
+ dynamic_range:
+ high: {{ net_prefix }}250
+ low: {{ net_prefix }}81
+ ip: {{ net_prefix }}5
+{% if net.gateway!= None %}
+ router_ip: {{ net.gateway }}
+{% endif %}
+{% if net.type!='admin' %}
+ management: 1
+{% endif %}
+ static_range:
+ high: {{ net_prefix }}80
+ low: {{ net_prefix }}50
+ subnet_mask: 255.255.255.0
+{% set ethid = ethid+1 %}
+{% endif %}
+{% endfor %}