-
Notifications
You must be signed in to change notification settings - Fork 898
/
Copy pathtopology.json
85 lines (85 loc) · 1.92 KB
/
topology.json
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
{
"hosts": {
"h1": {
"ip": "10.0.1.1/24",
"mac": "08:00:00:00:01:11",
"commands": [
"route add default gw 10.0.1.10 dev eth0",
"arp -i eth0 -s 10.0.1.10 08:00:00:00:01:00"
]
},
"h2": {
"ip": "10.0.2.2/24",
"mac": "08:00:00:00:02:22",
"commands": [
"route add default gw 10.0.2.20 dev eth0",
"arp -i eth0 -s 10.0.2.20 08:00:00:00:02:00"
]
},
"h3": {
"ip": "10.0.3.3/24",
"mac": "08:00:00:00:03:33",
"commands": [
"route add default gw 10.0.3.30 dev eth0",
"arp -i eth0 -s 10.0.3.30 08:00:00:00:03:00"
]
},
"h4": {
"ip": "10.0.4.4/24",
"mac": "08:00:00:00:04:44",
"commands": [
"route add default gw 10.0.4.40 dev eth0",
"arp -i eth0 -s 10.0.4.40 08:00:00:00:04:00"
]
}
},
"switches": {
"s1": {
"runtime_json": "pod-topo/s1-runtime.json",
"program": "build/firewall.json"
},
"s2": {
"runtime_json": "pod-topo/s2-runtime.json"
},
"s3": {
"runtime_json": "pod-topo/s3-runtime.json"
},
"s4": {
"runtime_json": "pod-topo/s4-runtime.json"
}
},
"links": [
[
"h1",
"s1-p1"
],
[
"h2",
"s1-p2"
],
[
"s1-p3",
"s3-p1"
],
[
"s1-p4",
"s4-p2"
],
[
"h3",
"s2-p1"
],
[
"h4",
"s2-p2"
],
[
"s2-p3",
"s4-p1"
],
[
"s2-p4",
"s3-p2"
]
]
}