blob: 4e75e10b7e553d5433cec6c70cd856614ec098e6 [file] [log] [blame]
{
"devices": {
{{ range $index, $element := .Devices }}{{ if $index }},
{{ end }}"{{ .Id }}": {
"segmentrouting": {
"name": "device-{{ .ChassisId }}",
"ipv4NodeSid": {{ add 100 $index }},
"ipv4Loopback": "{{ .Annotations.ManagementAddress }}",
"routerMac": "{{ .Mac }}",
"isEdgeRouter": {{ .IsEdgeRouter }},
"adjacencySids": []
}
}{{ end }}
},
"ports": {
{{ range $index, $element := .Hosts }}{{ if $index }},
{{ end }}"{{ (index .Locations 0).ElementID }}/{{ (index .Locations 0).Port }}": {
"interfaces": [
{
"ips": [ "{{ gateway .IpAddresses }}" ],
"vlan-untagged" : {{ vlan .IpAddresses }}
}
]
}{{ end }}
},
"apps" : {
"org.onosproject.segmentrouting" : {
"segmentrouting" : {
"vRouterMacs" : [ "a4:23:05:06:01:01" ]
}
}
}
}