Charles Chan
Committed by Gerrit Code Review

Fix network config sample to include adjacencySids for segmentrouting

- Also add a config for 4x4 leaf-spine topology

Change-Id: If696a52b078b882e468a9dec35b636ef1f4da207
...@@ -39,7 +39,8 @@ ...@@ -39,7 +39,8 @@
39 "nodeSid" : 105, 39 "nodeSid" : 105,
40 "routerIp" : "192.168.0.11", 40 "routerIp" : "192.168.0.11",
41 "routerMac" : "00:00:01:00:11:80", 41 "routerMac" : "00:00:01:00:11:80",
42 - "isEdgeRouter" : false 42 + "isEdgeRouter" : false,
43 + "adjacencySids" : []
43 } 44 }
44 } 45 }
45 }, 46 },
......
...@@ -44,7 +44,8 @@ ...@@ -44,7 +44,8 @@
44 "nodeSid" : 101, 44 "nodeSid" : 101,
45 "routerIp" : "10.0.1.254", 45 "routerIp" : "10.0.1.254",
46 "routerMac" : "00:00:00:00:01:80", 46 "routerMac" : "00:00:00:00:01:80",
47 - "isEdgeRouter" : true 47 + "isEdgeRouter" : true,
48 + "adjacencySids" : []
48 } 49 }
49 }, 50 },
50 "of:0000000000000002" : { 51 "of:0000000000000002" : {
...@@ -53,7 +54,8 @@ ...@@ -53,7 +54,8 @@
53 "nodeSid" : 102, 54 "nodeSid" : 102,
54 "routerIp" : "10.0.2.254", 55 "routerIp" : "10.0.2.254",
55 "routerMac" : "00:00:00:00:02:80", 56 "routerMac" : "00:00:00:00:02:80",
56 - "isEdgeRouter" : true 57 + "isEdgeRouter" : true,
58 + "adjacencySids" : []
57 } 59 }
58 }, 60 },
59 "of:0000000000000191" : { 61 "of:0000000000000191" : {
...@@ -62,7 +64,8 @@ ...@@ -62,7 +64,8 @@
62 "nodeSid" : 103, 64 "nodeSid" : 103,
63 "routerIp" : "192.168.0.11", 65 "routerIp" : "192.168.0.11",
64 "routerMac" : "00:00:01:00:11:80", 66 "routerMac" : "00:00:01:00:11:80",
65 - "isEdgeRouter" : false 67 + "isEdgeRouter" : false,
68 + "adjacencySids" : []
66 } 69 }
67 }, 70 },
68 "of:0000000000000192" : { 71 "of:0000000000000192" : {
...@@ -71,7 +74,8 @@ ...@@ -71,7 +74,8 @@
71 "nodeSid" : 104, 74 "nodeSid" : 104,
72 "routerIp" : "192.168.0.22", 75 "routerIp" : "192.168.0.22",
73 "routerMac" : "00:00:01:00:22:80", 76 "routerMac" : "00:00:01:00:22:80",
74 - "isEdgeRouter" : false 77 + "isEdgeRouter" : false,
78 + "adjacencySids" : []
75 } 79 }
76 } 80 }
77 }, 81 },
......
1 +{
2 + "ports" : {
3 + "of:0000000000000001/5" : {
4 + "interfaces" : [
5 + {
6 + "ips" : [ "10.0.1.254/24" ],
7 + "mac" : "08:9e:01:82:38:68",
8 + "vlan" : "100"
9 + }
10 + ]
11 + },
12 + "of:0000000000000001/6" : {
13 + "interfaces" : [
14 + {
15 + "ips" : [ "10.0.1.254/24" ],
16 + "mac" : "08:9e:01:82:38:68",
17 + "vlan" : "100"
18 + }
19 + ]
20 + },
21 + "of:0000000000000002/5" : {
22 + "interfaces" : [
23 + {
24 + "ips" : [ "10.0.2.254/24" ],
25 + "mac" : "08:9e:01:82:38:68",
26 + "vlan" : "100"
27 + }
28 + ]
29 + },
30 + "of:0000000000000002/6" : {
31 + "interfaces" : [
32 + {
33 + "ips" : [ "10.0.2.254/24" ],
34 + "mac" : "08:9e:01:82:38:68",
35 + "vlan" : "100"
36 + }
37 + ]
38 + },
39 + "of:0000000000000003/5" : {
40 + "interfaces" : [
41 + {
42 + "ips" : [ "10.0.3.254/24" ],
43 + "mac" : "08:9e:01:82:38:68",
44 + "vlan" : "100"
45 + }
46 + ]
47 + },
48 + "of:0000000000000003/6" : {
49 + "interfaces" : [
50 + {
51 + "ips" : [ "10.0.3.254/24" ],
52 + "mac" : "08:9e:01:82:38:68",
53 + "vlan" : "100"
54 + }
55 + ]
56 + },
57 + "of:0000000000000004/5" : {
58 + "interfaces" : [
59 + {
60 + "ips" : [ "10.0.4.254/24" ],
61 + "mac" : "08:9e:01:82:38:68",
62 + "vlan" : "100"
63 + }
64 + ]
65 + },
66 + "of:0000000000000004/6" : {
67 + "interfaces" : [
68 + {
69 + "ips" : [ "10.0.4.254/24" ],
70 + "mac" : "08:9e:01:82:38:68",
71 + "vlan" : "100"
72 + }
73 + ]
74 + }
75 + },
76 + "devices" : {
77 + "of:0000000000000001" : {
78 + "segmentrouting" : {
79 + "name" : "Leaf-R1",
80 + "nodeSid" : 101,
81 + "routerIp" : "10.0.1.254",
82 + "routerMac" : "00:00:00:00:01:80",
83 + "isEdgeRouter" : true,
84 + "adjacencySids" : []
85 + }
86 + },
87 + "of:0000000000000002" : {
88 + "segmentrouting" : {
89 + "name" : "Leaf-R2",
90 + "nodeSid" : 102,
91 + "routerIp" : "10.0.2.254",
92 + "routerMac" : "00:00:00:00:02:80",
93 + "isEdgeRouter" : true,
94 + "adjacencySids" : []
95 + }
96 + },
97 + "of:0000000000000003" : {
98 + "segmentrouting" : {
99 + "name" : "Leaf-R3",
100 + "nodeSid" : 103,
101 + "routerIp" : "10.0.3.254",
102 + "routerMac" : "00:00:00:00:03:80",
103 + "isEdgeRouter" : true,
104 + "adjacencySids" : []
105 + }
106 + },
107 + "of:0000000000000004" : {
108 + "segmentrouting" : {
109 + "name" : "Leaf-R4",
110 + "nodeSid" : 104,
111 + "routerIp" : "10.0.4.254",
112 + "routerMac" : "00:00:00:00:04:80",
113 + "isEdgeRouter" : true,
114 + "adjacencySids" : []
115 + }
116 + },
117 + "of:0000000000000191" : {
118 + "segmentrouting" : {
119 + "name" : "Spine-R1",
120 + "nodeSid" : 105,
121 + "routerIp" : "192.168.0.11",
122 + "routerMac" : "00:00:01:00:11:80",
123 + "isEdgeRouter" : false,
124 + "adjacencySids" : []
125 + }
126 + },
127 + "of:0000000000000192" : {
128 + "segmentrouting" : {
129 + "name" : "Spine-R2",
130 + "nodeSid" : 106,
131 + "routerIp" : "192.168.0.22",
132 + "routerMac" : "00:00:01:00:22:80",
133 + "isEdgeRouter" : false,
134 + "adjacencySids" : []
135 + }
136 + },
137 + "of:0000000000000193" : {
138 + "segmentrouting" : {
139 + "name" : "Spine-R3",
140 + "nodeSid" : 107,
141 + "routerIp" : "192.168.0.33",
142 + "routerMac" : "00:00:03:00:33:80",
143 + "isEdgeRouter" : false,
144 + "adjacencySids" : []
145 + }
146 + },
147 + "of:0000000000000194" : {
148 + "segmentrouting" : {
149 + "name" : "Spine-R4",
150 + "nodeSid" : 108,
151 + "routerIp" : "192.168.0.44",
152 + "routerMac" : "00:00:04:00:44:80",
153 + "isEdgeRouter" : false,
154 + "adjacencySids" : []
155 + }
156 + }
157 + },
158 + "hosts" : {
159 + "00:00:00:00:00:01/4093" : {
160 + "basic": {
161 + "ips": ["10.0.1.1"],
162 + "location": "of:0000000000000001/5"
163 + }
164 + },
165 + "00:00:00:00:00:02/4093" : {
166 + "basic": {
167 + "ips": ["10.0.1.2"],
168 + "location": "of:0000000000000001/6"
169 + }
170 + },
171 + "00:00:00:00:00:03/4093" : {
172 + "basic": {
173 + "ips": ["10.0.2.1"],
174 + "location": "of:0000000000000002/5"
175 + }
176 + },
177 + "00:00:00:00:00:04/4093" : {
178 + "basic": {
179 + "ips": ["10.0.2.2"],
180 + "location": "of:0000000000000002/6"
181 + }
182 + },
183 + "00:00:00:00:00:05/4093" : {
184 + "basic": {
185 + "ips": ["10.0.3.1"],
186 + "location": "of:0000000000000003/5"
187 + }
188 + },
189 + "00:00:00:00:00:06/4093" : {
190 + "basic": {
191 + "ips": ["10.0.3.2"],
192 + "location": "of:0000000000000003/6"
193 + }
194 + },
195 + "00:00:00:00:00:07/4093" : {
196 + "basic": {
197 + "ips": ["10.0.4.1"],
198 + "location": "of:0000000000000004/5"
199 + }
200 + },
201 + "00:00:00:00:00:08/4093" : {
202 + "basic": {
203 + "ips": ["10.0.4.2"],
204 + "location": "of:0000000000000004/6"
205 + }
206 + }
207 + }
208 +}