[fuel] Use PXE interface index from net_config 87/49087/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 27 Oct 2017 19:00:03 +0000 (21:00 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 15 Dec 2017 17:13:58 +0000 (17:13 +0000)
Instead of assuming the PXE network interface is always the first,
read its index from 'net_config' section.

Change-Id: I0b4e9fc89297f4bd718a2e5336746917347c89e1
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 30ce269378cefdd14377c838687c4052d8c7e55d)

config/installers/fuel/pod_config.yml.j2

index 438891e..ab3889c 100644 (file)
@@ -8,6 +8,7 @@
     {%- if conf.net_config.public.dns is defined -%}
         {%- set dns_public = conf['net_config']['public']['dns'] -%}
     {%- endif -%}
+    {%- set pxe_interface = conf['net_config']['admin']['interface'] -%}
 {%- else -%}
     {%- set net_admin = '192.168.11.0' -%}
     {%- set net_mgmt = '172.16.10.0' -%}
     {%- set net_public = '172.30.10.0' -%}
     {%- set vlan_mgmt = '300' -%}
     {%- set vlan_private = '1000' -%}
+    {%- set pxe_interface = 0 -%}
 {%- endif -%}
 
 {%- if dns_public is not defined -%}
     {%- set dns_public = [ '8.8.8.8', '8.8.4.4' ] -%}
 {%- endif -%}
-
-{%- set pxe_interface = 0 -%}
 ---
 parameters:
   _param: