Project

General

Profile

ConfigFileFormat » History » Version 1

Vince Lehman, 03/01/2016 09:02 AM

1 1 Vince Lehman
ConfigFileFormat
2
================
3
4
# File Format v2.0
5
6
## Topology Schema
7
``` JSON
8
{
9
  "$schema": "http://json-schema.org/draft-04/schema#",
10
  "id": "/",
11
  "type": "object",
12
  "properties": {
13
    "hosts": {
14
      "id": "hosts",
15
      "type": "array",
16
      "items": [],
17
      "description": "Array of hosts in the topology"
18
    },
19
    "links": {
20
      "id": "links",
21
      "type": "array",
22
      "items": [],
23
      "description": "Array of links in the topology"
24
    },
25
    "routers": {
26
      "id": "routers",
27
      "type": "array",
28
      "items": [],
29
      "description": "Array of routers in the topology"
30
    },
31
    "switches": {
32
      "id": "switches",
33
      "type": "array",
34
      "items": [],
35
      "description": "Array of switches in the topology"
36
    },
37
    "version": {
38
      "id": "version",
39
      "type": "string",
40
      "description": "File format version"
41
    }
42
  },
43
  "required": [
44
    "hosts",
45
    "links",
46
    "routers",
47
    "switches",
48
    "version"
49
  ]
50
}
51
52
```