From 5cc5559348a8a18a41cfd25cce446955d63afb83 Mon Sep 17 00:00:00 2001 From: David Blaisonneau Date: Thu, 4 Aug 2016 17:37:15 +0200 Subject: New scripts for configs generation, based on jinja2 Signed-off-by: David Blaisonneau --- ci/config_tpl/maas_tpl/maas-node_group_ifaces.yaml | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ci/config_tpl/maas_tpl/maas-node_group_ifaces.yaml (limited to 'ci/config_tpl/maas_tpl/maas-node_group_ifaces.yaml') diff --git a/ci/config_tpl/maas_tpl/maas-node_group_ifaces.yaml b/ci/config_tpl/maas_tpl/maas-node_group_ifaces.yaml new file mode 100644 index 00000000..578c89fb --- /dev/null +++ b/ci/config_tpl/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 %} -- cgit 1.2.3-korg