gunjan5 | 6e19d27 | 2016-07-07 14:23:26 -0700 | [diff] [blame] | 1 | { |
| 2 | "devices" : { |
gunjan5 | d6ca177 | 2016-07-20 18:11:04 -0700 | [diff] [blame^] | 3 | {{ range $index, $element := . }} |
gunjan5 | 6e19d27 | 2016-07-07 14:23:26 -0700 | [diff] [blame] | 4 | "{{ .Id}}" : { |
| 5 | "segmentrouting" : { |
| 6 | "name" : "device-{{ .ChassisId }}", |
gunjan5 | d6ca177 | 2016-07-20 18:11:04 -0700 | [diff] [blame^] | 7 | "nodeSid" : 10{{ $index }}, |
gunjan5 | 6e19d27 | 2016-07-07 14:23:26 -0700 | [diff] [blame] | 8 | "routerIp" : "{{ .Annotations.ManagementAddress }}", |
gunjan5 | d6ca177 | 2016-07-20 18:11:04 -0700 | [diff] [blame^] | 9 | "routerMac" : "cc:37:ab:00:00:0{{ $index }}", |
gunjan5 | 6e19d27 | 2016-07-07 14:23:26 -0700 | [diff] [blame] | 10 | "isEdgeRouter" : true, |
| 11 | "adjacencySids" : [] |
| 12 | } |
| 13 | }{{ .Comma }}{{ end }} |
| 14 | }, |
| 15 | |