aboutsummaryrefslogtreecommitdiff
path: root/nets/doc-example.json
blob: a953d98b94311c0ef85eae29f795fb850f596fc5 (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
{
    "nodes": [
        {
            "name": "r1",
            "type": "router"
        },
        {
            "name": "r2",
            "type": "router"
        },
        {
            "name": "h1",
            "type": "host"
        },
        {
            "name": "h2",
            "type": "host"
        },
        {
            "name": "h3",
            "type": "host"
        }
    ],
    "networks": [
        {
            "name": "r1-hosts",
            "links": [
                "h1",
                "r1"
            ]
        },
        {
            "name": "r1-r2",
            "links": [
                "r1",
                "r2"
            ]
        },
        {
            "name": "r2-hosts",
            "links": [
                "r2",
                "h2",
                "h3"
            ]
        }
    ]
}