Fix daisy gateway generated by PDF 79/50679/1
authorAlex Yang <yangyang1@zte.com.cn>
Tue, 16 Jan 2018 10:03:59 +0000 (18:03 +0800)
committerAlex Yang <yangyang1@zte.com.cn>
Tue, 16 Jan 2018 10:03:59 +0000 (18:03 +0800)
Fixed_ips were removed from the PDF. So we need get gateway address
from the 'interfaces'.

Change-Id: Ie6adbf4ef3cbde05bb2fb114a58395dda8ae50fb
Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
config/installers/daisy/pod_config.yaml.j2

index 3e4ab10..8057f68 100644 (file)
@@ -86,6 +86,6 @@ daisy_passwd: 'r00tme'
 {% if 'fixed_ips' in conf['jumphost'] -%}
 daisy_gateway: {{ conf['jumphost']['fixed_ips']['admin'] }}
 {%- else -%}
-daisy_gateway: {{ conf['jumphost']['interfaces'][0]['address'][0] }}
+daisy_gateway: {{ conf['jumphost']['interfaces'][0]['address'] }}
 {%- endif %}
 ceph_disk_name: '/dev/sdb'