1 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
2 : Copyright (c) 2017 Mirantis Inc., Enea AB and others.
4 : All rights reserved. This program and the accompanying materials
5 : are made available under the terms of the Apache License, Version 2.0
6 : which accompanies this distribution, and is available at
7 : http://www.apache.org/licenses/LICENSE-2.0
8 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
9 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
10 Date: Fri, 27 Oct 2017 21:00:03 +0200
11 Subject: [PATCH] Use PXE interface index from net_config
13 Instead of assuming the PXE network interface is always the first,
14 read its index from 'net_config' section.
16 Change-Id: I0b4e9fc89297f4bd718a2e5336746917347c89e1
17 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
19 config/installers/fuel/pod_config.yml.j2 | 4 ++--
20 1 file changed, 2 insertions(+), 2 deletions(-)
22 diff --git a/config/installers/fuel/pod_config.yml.j2 b/config/installers/fuel/pod_config.yml.j2
23 index 890b380..abded17 100644
24 --- a/config/installers/fuel/pod_config.yml.j2
25 +++ b/config/installers/fuel/pod_config.yml.j2
27 {%- if conf.net_config.public.dns is defined -%}
28 {%- set dns_public = conf['net_config']['public']['dns'] -%}
30 + {%- set pxe_interface = conf['net_config']['admin']['interface'] -%}
32 {%- set net_admin = '192.168.11.0' -%}
33 {%- set net_mgmt = '172.16.10.0' -%}
35 {%- set net_public = '172.30.10.0' -%}
36 {%- set vlan_mgmt = '300' -%}
37 {%- set vlan_private = '1000' -%}
38 + {%- set pxe_interface = 0 -%}
41 {%- if dns_public is not defined -%}
42 {%- set dns_public = [ '8.8.8.8', '8.8.4.4' ] -%}
45 -{%- set pxe_interface = 0 -%}