Simon Hunt | 0117205 | 2015-04-23 12:16:48 -0700 | [diff] [blame^] | 1 | { |
| 2 | "defn_name": "demo-clouds", |
| 3 | "defn_desc": "Demo Sample Subnet Clouds", |
| 4 | |
| 5 | "_comment": [ |
| 6 | "Sample cloud sprite layout", |
| 7 | "(1) Register on the server with ...", |
| 8 | " onos-upload-sprites localhost demo-clouds.json", |
| 9 | "(2) Load into topology view with ...", |
| 10 | " http://localhost:8181/onos/ui/index.html#/topo?sprites=demo-clouds" |
| 11 | ], |
| 12 | |
| 13 | "paths": [ |
| 14 | { |
| 15 | "tag": "dotted-cloud", |
| 16 | "stroke": { |
| 17 | "width": 0.8, |
| 18 | "dasharray": [2,2] |
| 19 | }, |
| 20 | "glyph": "cloud" |
| 21 | } |
| 22 | ], |
| 23 | |
| 24 | "defn": [ |
| 25 | { |
| 26 | "id": "subnetA", |
| 27 | "path": "dotted-cloud", |
| 28 | "dim": [400,400], |
| 29 | "labelyoff": 0.85 |
| 30 | } |
| 31 | ], |
| 32 | |
| 33 | "load": { |
| 34 | "sprites": [ |
| 35 | { "id": "subnetA", "pos":[250,40], "label":"192.168.2/24", "class":"blue1" }, |
| 36 | { "id": "subnetA", "pos":[-200,400], "label":"192.168.1/24", "class":"gold1" }, |
| 37 | { "id": "subnetA", "pos":[700,400], "label":"192.168.3/24", "class":"gold1" } |
| 38 | ], |
| 39 | "labels": [ |
| 40 | { "pos":[450,700], "text":"Demo Subnets", "size":1.6 } |
| 41 | ] |
| 42 | } |
| 43 | |
| 44 | } |