Simon Hunt | 7f62f7c | 2015-05-11 17:38:02 -0700 | [diff] [blame] | 1 | { |
| 2 | "defn_name": "segmentRouting", |
| 3 | "defn_desc": "Schematic of Data Center", |
| 4 | |
| 5 | "paths": [ |
| 6 | { |
| 7 | "tag": "chassis", |
| 8 | "stroke": { |
| 9 | "width": 3.5 |
| 10 | }, |
| 11 | "viewbox": "0 0 120 170", |
| 12 | "d": "M10,10h80v150h-80z" |
| 13 | }, |
| 14 | { |
| 15 | "tag": "module", |
| 16 | "stroke": { |
| 17 | "width": 2 |
| 18 | }, |
| 19 | "viewbox": "0 0 120 20", |
| 20 | "d": "M15,5h70v12h-70z" |
| 21 | } |
| 22 | ], |
| 23 | |
| 24 | "defn": [ |
| 25 | { |
| 26 | "id": "rack", |
| 27 | "path": "chassis", |
| 28 | "fill": "gray2", |
| 29 | "subpathfill": "blue2", |
| 30 | "subpaths": [ |
| 31 | { "path": "module", "pos": [0, 0]}, |
| 32 | { "path": "module", "pos": [0, 20]}, |
| 33 | { "path": "module", "pos": [0, 40]}, |
| 34 | { "path": "module", "pos": [0, 60]} |
| 35 | ], |
| 36 | "dim":[120,170] |
| 37 | } |
| 38 | ], |
| 39 | |
| 40 | "load": { |
| 41 | "alpha": 0.9, |
| 42 | "sprites": [ |
Srikanth Vavilapalli | 5428b6c | 2015-05-14 20:22:47 -0700 | [diff] [blame] | 43 | { "id": "rack", "pos":[200,600], "class":"blue1" }, |
| 44 | { "id": "rack", "pos":[400,600], "class":"blue1" }, |
| 45 | { "id": "rack", "pos":[600,600], "class":"blue1" }, |
| 46 | { "id": "rack", "pos":[800,600], "class":"blue1" } |
Simon Hunt | 7f62f7c | 2015-05-11 17:38:02 -0700 | [diff] [blame] | 47 | ], |
| 48 | "labels": [ |
Srikanth Vavilapalli | 8c1ccca | 2015-06-08 19:23:24 -0700 | [diff] [blame] | 49 | { "pos":[550,80], "text":"", "class":"blue1", "size":1.4 } |
Simon Hunt | 7f62f7c | 2015-05-11 17:38:02 -0700 | [diff] [blame] | 50 | ] |
| 51 | } |
| 52 | } |