aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/onos/web/api/src/main/resources/definitions/Paths.json
blob: 2407036ed002c335c123b005da02e77910a006d3 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
  "type": "object",
  "title": "paths",
  "required": [
    "paths"
  ],
  "properties": {
    "paths": {
      "type": "array",
      "xml": {
        "name": "hosts",
        "wrapped": true
      },
      "items": {
        "type": "object",
        "title": "host",
        "required": [
          "cost",
          "links"
        ],
        "properties": {
          "cost": {
            "type": "integer",
            "format": "int64",
            "example": 2
          },
          "links": {
            "type": "array",
            "xml": {
              "name": "links",
              "wrapped": true
            },
            "items": {
              "type": "object",
              "title": "link",
              "required": [
                "src",
                "dst",
                "type",
                "state"
              ],
              "properties": {
                "src": {
                  "type": "object",
                  "title": "src",
                  "required": [
                    "port",
                    "device"
                  ],
                  "properties": {
                    "port": {
                      "type": "string",
                      "example": "3"
                    },
                    "device": {
                      "type": "string",
                      "example": "of:0000000000000002"
                    }
                  }
                },
                "dst": {
                  "type": "object",
                  "title": "dst",
                  "required": [
                    "port",
                    "device"
                  ],
                  "properties": {
                    "port": {
                      "type": "string",
                      "example": "2"
                    },
                    "device": {
                      "type": "string",
                      "example": "of:0000000000000003"
                    }
                  }
                },
                "type": {
                  "type": "string",
                  "example": "DIRECT"
                },
                "state": {
                  "type": "string",
                  "example": "ACTIVE"
                }
              }
            }
          }
        }
      }
    }
  }
}