summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-10-27 21:04:10 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-10-27 19:45:46 +0000
commitb135ff434fd4dacded479ec369060c8f5fe6557d (patch)
tree43230ca2c3338afbe120a045f8c463cdf96d0fa8
parent389271f828486c77aec3cdd5a3405bb6d090d4b0 (diff)
patches: pharos: Dynamic PXE interface index
Change-Id: I7eae35c2e040cf316af45fd420ba6611abb2fa4b Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> (cherry picked from commit a1a73087d8e5cb43d2ebcf313f7a784b20bc4a3e)
-rw-r--r--mcp/patches/pharos/0004-Use-PXE-interface-index-from-net_config.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/mcp/patches/pharos/0004-Use-PXE-interface-index-from-net_config.patch b/mcp/patches/pharos/0004-Use-PXE-interface-index-from-net_config.patch
new file mode 100644
index 000000000..d08bfe33a
--- /dev/null
+++ b/mcp/patches/pharos/0004-Use-PXE-interface-index-from-net_config.patch
@@ -0,0 +1,48 @@
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+: Copyright (c) 2017 Mirantis Inc., Enea AB and others.
+:
+: All rights reserved. This program and the accompanying materials
+: are made available under the terms of the Apache License, Version 2.0
+: which accompanies this distribution, and is available at
+: http://www.apache.org/licenses/LICENSE-2.0
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+Date: Fri, 27 Oct 2017 21:00:03 +0200
+Subject: [PATCH] Use PXE interface index from net_config
+
+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>
+---
+ config/installers/fuel/pod_config.yml.j2 | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/config/installers/fuel/pod_config.yml.j2 b/config/installers/fuel/pod_config.yml.j2
+index 36bbd96..ca37f92 100644
+--- a/config/installers/fuel/pod_config.yml.j2
++++ b/config/installers/fuel/pod_config.yml.j2
+@@ -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' -%}
+@@ -15,13 +16,12 @@
+ {%- 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: