aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/onos/web/gui/src/main/webapp/data/sprites/clouds.json
blob: e0c56030e2d0a01a22adbcfb748704166b77ca6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
  "defn_name": "clouds",
  "defn_desc": "Sample Subnet Cloud layout",

  "_comment": [
    "Sample cloud sprite layout",
    "(1) Register on the server with ...",
    "    onos-upload-sprites localhost clouds.json",
    "(2) Load into topology view with ...",
    "    http://localhost:8181/onos/ui/index.html#/topo?sprites=clouds"
  ],

  "paths": [
    {
      "tag": "cloud-dashed",
      "stroke": {
        "width": 0.8,
        "dasharray": [4,2]
      },
      "glyph": "cloud"
    },
    {
      "tag": "cloud-solid",
      "stroke": {
        "width": 1
      },
      "glyph": "cloud"
    }
  ],

  "defn": [
    {
      "id": "subnetA",
      "path": "cloud-dashed",
      "dim": [400,400],
      "labelyoff": 0.35
    },
    {
      "id": "subnetB",
      "path": "cloud-solid",
      "dim": [600,600],
      "labelyoff": 0.35
    }
  ],

  "load": {
    "sprites": [
      { "id": "subnetA", "pos":[-200,40], "label":"apples", "class":"blue1" },
      { "id": "subnetA", "pos":[250,40], "label":"bananas", "class":"blue1" },
      { "id": "subnetA", "pos":[700,40], "label":"cherries", "class":"blue1" },
      { "id": "subnetB", "pos":[-200,400], "label":"Menlo Park", "class":"gold1" },
      { "id": "subnetB", "pos":[500,400], "label":"Stanford", "class":"gold1" }
    ],
    "labels": [
      { "pos":[0,50], "text":"Sample Subnets", "size":1.4 }
    ]
  }

}