summaryrefslogtreecommitdiffstats
path: root/mcp/reclass/classes/cluster/mcp-common-ha/infra/config.yml.j2
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-08-06 23:30:29 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-08-09 12:28:10 +0000
commit742b27e22c6c22d4ac7f32665b3a4bda35ce252f (patch)
tree6add39ceb077b8c43538e65b9c6881f41c551896 /mcp/reclass/classes/cluster/mcp-common-ha/infra/config.yml.j2
parent544ff4f35b2b449d25272a8805bbb4c7f748f1d4 (diff)
[IDF] infra VMs: Allow trunking mgmt network
Due to design limitations in idf.net_config, for a hybrid POD we need to trunk certain network segments for the VMs running on the jumpserver, including mgmt network going to cfg01, mas01. Add mgmt VLAN support for cfg01, mas01 gated by a flag in IDF: idf.fuel.jumphost.trunks.mgmt: True JIRA: FUEL-338 Change-Id: I6903f9b70e5f8a88618bce28e21c7c0631a05065 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'mcp/reclass/classes/cluster/mcp-common-ha/infra/config.yml.j2')
-rw-r--r--mcp/reclass/classes/cluster/mcp-common-ha/infra/config.yml.j211
1 files changed, 10 insertions, 1 deletions
diff --git a/mcp/reclass/classes/cluster/mcp-common-ha/infra/config.yml.j2 b/mcp/reclass/classes/cluster/mcp-common-ha/infra/config.yml.j2
index 6bc508387..0e880c558 100644
--- a/mcp/reclass/classes/cluster/mcp-common-ha/infra/config.yml.j2
+++ b/mcp/reclass/classes/cluster/mcp-common-ha/infra/config.yml.j2
@@ -40,8 +40,17 @@ parameters:
single:
enabled: true
type: eth
- proto: static
name: ${_param:single_nic}
+{%- if conf.idf.fuel.jumphost.get('trunks', {}).get('mgmt', False) and (nm.vlan_mgmt | int > 0) %}
+ proto: manual
+ single_vlan:
+ enabled: true
+ type: vlan
+ name: ${_param:single_nic}.{{ nm.vlan_mgmt }}
+ use_interfaces:
+ - ${_param:single_nic}
+{%- endif %}
+ proto: static
address: ${_param:single_address}
netmask: ${_param:opnfv_net_mgmt_mask}
pxe_admin_int: