cord-1458 update template for basic host block
Change-Id: Ia6beea4eba17f75bdf36ca540b27dd207aecc83d
(cherry picked from commit 74bdba63fc36f54d09763d0bf6fe533314c91edd)
diff --git a/config-generator/netconfig.tpl b/config-generator/netconfig.tpl
index 2885e5b..f962a87 100644
--- a/config-generator/netconfig.tpl
+++ b/config-generator/netconfig.tpl
@@ -15,8 +15,10 @@
"hosts": {
{{ range $index, $element := .Hosts }}{{ if $index }},
{{ end }}"{{ .Mac }}/-1": {
- "ips": ["{{ range $ip := .IpAddresses }}{{ $ip }}{{ end }}"],
- "location": "{{ .Location.ElementID }}/{{ .Location.Port }}"
+ "basic" : {
+ "ips": ["{{ range $idx_ip, $ip := .IpAddresses }}{{if $idx_ip}},{{end}}{{ $ip }}{{ end }}"],
+ "location": "{{ .Location.ElementID }}/{{ .Location.Port }}"
+ }
}{{ end }}
},
"ports": {