diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2018-11-20 22:13:27 +0200 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2018-11-23 15:11:15 +0000 |
commit | 510fced443b454b6cab33eda14a3f6ad197cf46a (patch) | |
tree | d8362986e7ef307fc3e84c22b3dabfecb73d0210 /mcp | |
parent | a68e56ced7a19ebc1c010c96378b398eaa4b9e57 (diff) |
[cfg01] Honor idf.net_config.mgmt.ip-range
Previously, cfg01 mgmt address did not consider the `ip-range` param,
leading to a mismatching `cfg01` entry in /etc/hosts on cluster nodes.
Change-Id: If6f605f4b2817c3751074bef60ebde298bc74b7d
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 9521ac10cb9cd22e6e1ab7c04d8882318ce8ba35)
Diffstat (limited to 'mcp')
-rw-r--r-- | mcp/scripts/docker-compose/docker-compose.yaml.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcp/scripts/docker-compose/docker-compose.yaml.j2 b/mcp/scripts/docker-compose/docker-compose.yaml.j2 index a3119f92b..8cd9d5deb 100644 --- a/mcp/scripts/docker-compose/docker-compose.yaml.j2 +++ b/mcp/scripts/docker-compose/docker-compose.yaml.j2 @@ -62,4 +62,4 @@ networks: ipam: config: - subnet: {{ nm.net_mgmt }} - ip_range: {{ [nm.net_mgmt | ipnet_hostaddr(2), nm.net_mgmt.split("/")[-1]] | join("/") }} + ip_range: {{ [nm.net_mgmt | ipnet_hostaddr(nm.start_ip[nm.net_mgmt] + nm.net_mgmt_hosts.index('opnfv_infra_config_address') +1), nm.net_mgmt.split("/")[-1]] | join("/") }} |