X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=config%2Finstallers%2Ffuel%2Fpod_config.yml.j2;fp=config%2Finstallers%2Ffuel%2Fpod_config.yml.j2;h=1cf76d3657cabfbd2c85427d849fe6cfef55a0b2;hb=46dd0bda1606b851ec7e7e82c1823fb9ae99490f;hp=9a6b4be130f4ad6c25f07afd92d20e28c168100e;hpb=ae119f01b7b313ea78ba08ae077d001688018d3a;p=pharos.git diff --git a/config/installers/fuel/pod_config.yml.j2 b/config/installers/fuel/pod_config.yml.j2 index 9a6b4be1..1cf76d36 100644 --- a/config/installers/fuel/pod_config.yml.j2 +++ b/config/installers/fuel/pod_config.yml.j2 @@ -116,6 +116,17 @@ net_private: 1, net_public: 1 } %} +{%- for nn, nd in net.items() %} + {%- if 'ip-range' in nd and 'network' in nd and 'mask' in nd %} + {%- set net_nd = [nd.network, nd.mask] | join('/') %} + {%- if net_nd in start_ip %} + {%- set nd_start_ip = nd['ip-range'].split('-')[0] %} + {%- set nd_start = net_nd | ipnet_range_size(net_nd | ipnet_hostmin, nd_start_ip) %} + {%- do start_ip.update({net_nd: nd_start}) %} + {%- endif %} + {%- endif %} +{%- endfor %} + {%- set total_public_hosts = net_public_hosts | length + cmp_nodes %} {%- if net_public_pool_start is not defined or net_public_pool_end is not defined %} {%- set net_public_pool_start = net_public | ipnet_hostaddr(total_public_hosts + start_ip[net_public] +1) %}