Update config-generator to account for ONOS API changes in 1.12.
Change-Id: I6a07e4bfe2bd69a1a63a628539d7d39899436854
diff --git a/config-generator/netconfig.tpl b/config-generator/netconfig.tpl
index 3c3cc31..4e75e10 100644
--- a/config-generator/netconfig.tpl
+++ b/config-generator/netconfig.tpl
@@ -14,7 +14,7 @@
},
"ports": {
{{ range $index, $element := .Hosts }}{{ if $index }},
- {{ end }}"{{ .Location.ElementID }}/{{ .Location.Port }}": {
+ {{ end }}"{{ (index .Locations 0).ElementID }}/{{ (index .Locations 0).Port }}": {
"interfaces": [
{
"ips": [ "{{ gateway .IpAddresses }}" ],