-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtopo_loop.json
117 lines (117 loc) · 2.92 KB
/
topo_loop.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"nodes": [
{
"isHost": true,
"id": "h1"
},
{
"isHost": true,
"id": "h2"
},
{
"isHost": true,
"id": "h3"
},
{
"isP4RuntimeSwitch": true,
"isP4Switch": true,
"isSwitch": true,
"device_id": 1,
"grpc_port": 50051,
"grpc_ip": "192.168.0.51",
"json_path": "/root/p4/build/packetinout.json",
"p4rt_path": "/root/p4/build/packetinout.p4info.txt",
"id": "s1"
},
{
"isP4RuntimeSwitch": true,
"isP4Switch": true,
"isSwitch": true,
"device_id": 2,
"grpc_port": 50051,
"grpc_ip": "192.168.0.52",
"json_path": "/root/p4/build/packetinout.json",
"p4rt_path": "/root/p4/build/packetinout.p4info.txt",
"id": "s2"
},
{
"isP4RuntimeSwitch": true,
"isP4Switch": true,
"isSwitch": true,
"device_id": 3,
"grpc_port": 50051,
"grpc_ip": "192.168.0.53",
"json_path": "/root/p4/build/packetinout.json",
"p4rt_path": "/root/p4/build/packetinout.p4info.txt",
"id": "s3"
}
],
"links": [
{
"weight": 1,
"intfName1": "eth1",
"intfName2": "eth1",
"node1": "s1",
"node2": "h1",
"port1": 1,
"port2": 1,
"source": "h1",
"target": "s1"
},
{
"weight": 1,
"intfName1": "eth1",
"intfName2": "eth1",
"node1": "s2",
"node2": "h2",
"port1": 1,
"port2": 1,
"source": "h2",
"target": "s2"
},
{
"weight": 1,
"intfName1": "eth1",
"intfName2": "eth1",
"node1": "s3",
"node2": "h3",
"port1": 1,
"port2": 1,
"source": "h3",
"target": "s3"
},
{
"weight": 1,
"intfName1": "eth2",
"intfName2": "eth2",
"node1": "s1",
"node2": "s2",
"port1": 2,
"port2": 2,
"source": "s2",
"target": "s1"
},
{
"weight": 1,
"intfName1": "eth3",
"intfName2": "eth2",
"node1": "s1",
"node2": "s3",
"port1": 3,
"port2": 2,
"source": "s3",
"target": "s1"
},
{
"weight": 1,
"intfName1": "eth3",
"intfName2": "eth3",
"node1": "s2",
"node2": "s3",
"port1": 3,
"port2": 3,
"source": "s3",
"target": "s2"
}
]
}