[ha] cmp: Fix duplicate PXE/admin interface IDs 71/58771/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 20 Jun 2018 12:24:16 +0000 (14:24 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 20 Jun 2018 12:24:16 +0000 (14:24 +0200)
Change-Id: I99a8acfbfdddb79493bf3a191835927cef5fd5e3
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
mcp/reclass/classes/cluster/mcp-common-ha/openstack_compute_pdf.yml.j2

index 396334c..51a6dbd 100644 (file)
@@ -36,6 +36,12 @@ parameters:
           address: ${_param:pxe_admin_address}
           netmask: ${_param:opnfv_net_admin_mask}
           mtu: ${_param:interface_mtu}
+          noifupdown: true
+
+{#- prevent duplicates for tagged mgmt on the same physical interface as PXE/admin #}
+{%- if nm.cmp001.nic_admin in nics %}
+  {%- do nics.pop(nm.cmp001.nic_admin) %}
+{%- endif %}
 
 {{ ma.linux_network_interfaces_nic(nics) }}