blob: e0c56030e2d0a01a22adbcfb748704166b77ca6d [file] [log] [blame]
Simon Hunt017a7c32015-04-15 19:23:27 -07001{
2 "defn_name": "clouds",
3 "defn_desc": "Sample Subnet Cloud layout",
4
5 "_comment": [
6 "Sample cloud sprite layout",
7 "(1) Register on the server with ...",
8 " onos-upload-sprites localhost clouds.json",
9 "(2) Load into topology view with ...",
10 " http://localhost:8181/onos/ui/index.html#/topo?sprites=clouds"
11 ],
12
13 "paths": [
14 {
15 "tag": "cloud-dashed",
16 "stroke": {
17 "width": 0.8,
18 "dasharray": [4,2]
19 },
20 "glyph": "cloud"
21 },
22 {
23 "tag": "cloud-solid",
24 "stroke": {
25 "width": 1
26 },
27 "glyph": "cloud"
28 }
29 ],
30
31 "defn": [
32 {
33 "id": "subnetA",
34 "path": "cloud-dashed",
35 "dim": [400,400],
36 "labelyoff": 0.35
37 },
38 {
39 "id": "subnetB",
40 "path": "cloud-solid",
41 "dim": [600,600],
42 "labelyoff": 0.35
43 }
44 ],
45
46 "load": {
47 "sprites": [
48 { "id": "subnetA", "pos":[-200,40], "label":"apples", "class":"blue1" },
49 { "id": "subnetA", "pos":[250,40], "label":"bananas", "class":"blue1" },
50 { "id": "subnetA", "pos":[700,40], "label":"cherries", "class":"blue1" },
51 { "id": "subnetB", "pos":[-200,400], "label":"Menlo Park", "class":"gold1" },
52 { "id": "subnetB", "pos":[500,400], "label":"Stanford", "class":"gold1" }
53 ],
54 "labels": [
55 { "pos":[0,50], "text":"Sample Subnets", "size":1.4 }
56 ]
57 }
58
59}