aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/onos/web/gui/src/main/webapp/data/sprites/demo-clouds.json
blob: 98ebc2646f175c9ab44d06c8e1074c234fc7623e (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
{
  "defn_name": "demo-clouds",
  "defn_desc": "Demo Sample Subnet Clouds",

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

  "paths": [
    {
      "tag": "dotted-cloud",
      "stroke": {
        "width": 0.8,
        "dasharray": [2,2]
      },
      "glyph": "cloud"
    }
  ],

  "defn": [
    {
      "id": "subnetA",
      "path": "dotted-cloud",
      "dim": [400,400],
      "labelyoff": 0.85
    }
  ],

  "load": {
    "sprites": [
      { "id": "subnetA", "pos":[250,40], "label":"192.168.2.0/24", "class":"blue1" },
      { "id": "subnetA", "pos":[-200,400], "label":"192.168.1.0/24", "class":"gold1" },
      { "id": "subnetA", "pos":[700,400], "label":"192.168.3.0/24", "class":"gold1" }
    ],
    "labels": [
      { "pos":[450,700], "text":"Demo Subnets", "size":1.6 }
    ]
  }

}