Merge "Fix Templater condition issue"
This commit is contained in:
commit
614f7fe3bc
@ -36,7 +36,9 @@ template: |
|
||||
metadata:
|
||||
name: {{ .name }}
|
||||
spec:
|
||||
{{- if and (.macAddresses) (.macAddresses.oam) }}
|
||||
{{- if .macAddresses }}
|
||||
{{- if .macAddresses.oam }}
|
||||
bootMACAddress: {{ .macAddresses.oam }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{ end -}}
|
||||
|
@ -92,10 +92,12 @@ template: |
|
||||
{{- range $envAll.commonNetworking.links }}
|
||||
-
|
||||
{{ toYaml . | indent 6 }}
|
||||
{{- if and ($host.macAddresses) (index $host.macAddresses .id) }}
|
||||
{{- if $host.macAddresses }}
|
||||
{{- if index $host.macAddresses .id }}
|
||||
ethernet_mac_address: {{ index $host.macAddresses .id }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
networks:
|
||||
{{- range $envAll.commonNetworking.networks }}
|
||||
-
|
||||
|
Loading…
Reference in New Issue
Block a user