| {{ range $index, $element := .Devices }}{{ if $index }}, |
| "name": "device-{{ .ChassisId }}", |
| "ipv4NodeSid": {{ add 100 $index }}, |
| "ipv4Loopback": "{{ .Annotations.ManagementAddress }}", |
| "routerMac": "{{ .Mac }}", |
| "isEdgeRouter": {{ .IsEdgeRouter }}, |
| {{ range $index, $element := .Hosts }}{{ if $index }}, |
| {{ end }}"{{ .Location.ElementID }}/{{ .Location.Port }}": { |
| "ips": [ "{{ gateway .IpAddresses }}" ], |
| "vlan-untagged" : {{ vlan .IpAddresses }} |
| "org.onosproject.segmentrouting" : { |
| "vRouterMacs" : [ "a4:23:05:06:01:01" ] |