1 NETWORK_UNDERLAY_TOPOLOGY_1 = '''<topology
2 xmlns="urn:TBD:params:xml:ns:yang:network-topology"
3 xmlns:pcep="urn:opendaylight:params:xml:ns:yang:topology:pcep"
4 xmlns:ovsdb="urn:opendaylight:params:xml:ns:yang:ovsdb">
5 <topology-id>network-topo:1</topology-id>
7 <pcep:topology-pcep></pcep:topology-pcep>
10 <node-id>pcep:1</node-id>
11 <pcep:path-computation-client>
12 <pcep:ip-address>192.168.1.1</pcep:ip-address>
13 </pcep:path-computation-client>
16 <ovsdb:ofport>1119</ovsdb:ofport>
20 <ovsdb:ofport>1119</ovsdb:ofport>
24 <ovsdb:ofport>2119</ovsdb:ofport>
28 <node-id>pcep:2</node-id>
29 <pcep:path-computation-client>
30 <pcep:ip-address>192.168.1.2</pcep:ip-address>
31 </pcep:path-computation-client>
34 <node-id>pcep:3</node-id>
35 <pcep:path-computation-client>
36 <pcep:ip-address>192.168.2.1</pcep:ip-address>
37 </pcep:path-computation-client>
40 <ovsdb:ofport>1118</ovsdb:ofport>
44 <ovsdb:ofport>2118</ovsdb:ofport>
48 <node-id>pcep:4</node-id>
49 <pcep:path-computation-client>
50 <pcep:ip-address>192.168.2.1</pcep:ip-address>
51 </pcep:path-computation-client>
54 <ovsdb:ofport>1117</ovsdb:ofport>
58 <ovsdb:ofport>1117</ovsdb:ofport>
62 <node-id>pcep:5</node-id>
63 <pcep:path-computation-client>
64 <pcep:ip-address>192.168.2.3</pcep:ip-address>
65 </pcep:path-computation-client>
68 <ovsdb:ofport>1116</ovsdb:ofport>
73 NETWORK_UNDERLAY_TOPOLOGY_2 = '''<topology
74 xmlns="urn:TBD:params:xml:ns:yang:network-topology"
75 xmlns:pcep="urn:opendaylight:params:xml:ns:yang:topology:pcep"
76 xmlns:ovsdb="urn:opendaylight:params:xml:ns:yang:ovsdb">
77 <topology-id>network-topo:2</topology-id>
79 <pcep:topology-pcep></pcep:topology-pcep>
82 <node-id>pcep:6</node-id>
83 <pcep:path-computation-client>
84 <pcep:ip-address>192.168.1.3</pcep:ip-address>
85 </pcep:path-computation-client>
88 <ovsdb:ofport>1116</ovsdb:ofport>
92 <node-id>pcep:7</node-id>
93 <pcep:path-computation-client>
94 <pcep:ip-address>192.168.1.4</pcep:ip-address>
95 </pcep:path-computation-client>
98 <ovsdb:ofport>1117</ovsdb:ofport>
102 <node-id>pcep:8</node-id>
103 <pcep:path-computation-client>
104 <pcep:ip-address>192.168.2.4</pcep:ip-address>
105 </pcep:path-computation-client>
107 <tp-id>tp:8:1</tp-id>
108 <ovsdb:ofport>11120</ovsdb:ofport>
112 <node-id>pcep:9</node-id>
113 <pcep:path-computation-client>
114 <pcep:ip-address>192.168.2.5</pcep:ip-address>
115 </pcep:path-computation-client>
117 <tp-id>tp:9:1</tp-id>
118 <ovsdb:ofport>1121</ovsdb:ofport>
122 <node-id>pcep:10</node-id>
123 <pcep:path-computation-client>
124 <pcep:ip-address>192.168.2.3</pcep:ip-address>
125 </pcep:path-computation-client>
127 <tp-id>tp:10:1</tp-id>
128 <ovsdb:ofport>1122</ovsdb:ofport>
133 OPENFLOW_UNDERLAY_NODES = '''
135 xmlns="urn:opendaylight:inventory"
136 xmlns:flov-inv="urn:opendaylight:flow:inventory">
140 <id>openflow:1:1</id>
141 <flov-inv:port-number>1</flov-inv:port-number>
144 <id>openflow:1:2</id>
145 <flov-inv:port-number>1</flov-inv:port-number>
147 <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
148 <flov-inv:ip-address>192.168.1.1</flov-inv:ip-address>
153 <id>openflow:2:1</id>
154 <flov-inv:port-number>1</flov-inv:port-number>
157 <id>openflow:2:2</id>
158 <flov-inv:port-number>2</flov-inv:port-number>
160 <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
161 <flov-inv:ip-address>192.168.1.2</flov-inv:ip-address>
166 <id>openflow:3:1</id>
167 <flov-inv:port-number>2</flov-inv:port-number>
170 <id>openflow:3:2</id>
171 <flov-inv:port-number>2</flov-inv:port-number>
174 <id>openflow:3:3</id>
175 <flov-inv:port-number>1</flov-inv:port-number>
177 <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
178 <flov-inv:ip-address>192.168.1.3</flov-inv:ip-address>
183 <id>openflow:4:1</id>
184 <flov-inv:port-number>1</flov-inv:port-number>
187 <id>openflow:4:2</id>
188 <flov-inv:port-number>1</flov-inv:port-number>
191 <id>openflow:4:3</id>
192 <flov-inv:port-number>1</flov-inv:port-number>
194 <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
195 <flov-inv:ip-address>192.168.2.1</flov-inv:ip-address>
200 <id>openflow:5:1</id>
201 <flov-inv:port-number>3</flov-inv:port-number>
203 <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
204 <flov-inv:ip-address>192.168.2.2</flov-inv:ip-address>
208 <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
209 <flov-inv:ip-address>192.168.1.1</flov-inv:ip-address>
213 <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
214 <flov-inv:ip-address>192.168.2.3</flov-inv:ip-address>
218 <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
219 <flov-inv:ip-address>192.168.1.4</flov-inv:ip-address>
223 <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
224 <flov-inv:ip-address>192.168.2.3</flov-inv:ip-address>
228 <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
229 <flov-inv:ip-address>192.168.2.1</flov-inv:ip-address>
234 OPENFLOW_UNDERLAY_TOPOLOGY_1 = '''
236 xmlns="urn:TBD:params:xml:ns:yang:network-topology"
237 xmlns:inventory="urn:opendaylight:inventory"
238 xmlns:inventory-topo="urn:opendaylight:model:topology:inventory">
239 <topology-id>openflow-topo:1</topology-id>
241 <node-id>of-node:1</node-id>
242 <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:1"]</inventory-topo:inventory-node-ref>
244 <tp-id>tp:1:1</tp-id>
245 <inventory-topo:inventory-node-connector-ref>
246 /inventory:nodes/inventory:node[inventory:id="openflow:1"]/inventory:node-connector[inventory:id="openflow:1:1"]
247 </inventory-topo:inventory-node-connector-ref>
250 <tp-id>tp:1:2</tp-id>
251 <inventory-topo:inventory-node-connector-ref>
252 /inventory:nodes/inventory:node[inventory:id="openflow:1"]/inventory:node-connector[inventory:id="openflow:1:2"]
253 </inventory-topo:inventory-node-connector-ref>
257 <node-id>of-node:2</node-id>
258 <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:2"]</inventory-topo:inventory-node-ref>
260 <tp-id>tp:2:1</tp-id>
261 <inventory-topo:inventory-node-connector-ref>
262 /inventory:nodes/inventory:node[inventory:id="openflow:2"]/inventory:node-connector[inventory:id="openflow:2:1"]
263 </inventory-topo:inventory-node-connector-ref>
266 <tp-id>tp:2:2</tp-id>
267 <inventory-topo:inventory-node-connector-ref>
268 /inventory:nodes/inventory:node[inventory:id="openflow:2"]/inventory:node-connector[inventory:id="openflow:2:2"]
269 </inventory-topo:inventory-node-connector-ref>
273 <node-id>of-node:3</node-id>
274 <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:3"]</inventory-topo:inventory-node-ref>
276 <tp-id>tp:3:1</tp-id>
277 <inventory-topo:inventory-node-connector-ref>
278 /inventory:nodes/inventory:node[inventory:id="openflow:3"]/inventory:node-connector[inventory:id="openflow:3:1"]
279 </inventory-topo:inventory-node-connector-ref>
282 <tp-id>tp:3:2</tp-id>
283 <inventory-topo:inventory-node-connector-ref>
284 /inventory:nodes/inventory:node[inventory:id="openflow:3"]/inventory:node-connector[inventory:id="openflow:3:2"]
285 </inventory-topo:inventory-node-connector-ref>
288 <tp-id>tp:3:3</tp-id>
289 <inventory-topo:inventory-node-connector-ref>
290 /inventory:nodes/inventory:node[inventory:id="openflow:3"]/inventory:node-connector[inventory:id="openflow:3:3"]
291 </inventory-topo:inventory-node-connector-ref>
295 <node-id>of-node:4</node-id>
296 <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:4"]</inventory-topo:inventory-node-ref>
298 <tp-id>tp:4:1</tp-id>
299 <inventory-topo:inventory-node-connector-ref>
300 /inventory:nodes/inventory:node[inventory:id="openflow:4"]/inventory:node-connector[inventory:id="openflow:4:1"]
301 </inventory-topo:inventory-node-connector-ref>
304 <tp-id>tp:4:2</tp-id>
305 <inventory-topo:inventory-node-connector-ref>
306 /inventory:nodes/inventory:node[inventory:id="openflow:4"]/inventory:node-connector[inventory:id="openflow:4:2"]
307 </inventory-topo:inventory-node-connector-ref>
310 <tp-id>tp:4:3</tp-id>
311 <inventory-topo:inventory-node-connector-ref>
312 /inventory:nodes/inventory:node[inventory:id="openflow:4"]/inventory:node-connector[inventory:id="openflow:4:3"]
313 </inventory-topo:inventory-node-connector-ref>
317 <node-id>of-node:5</node-id>
318 <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:5"]</inventory-topo:inventory-node-ref>
320 <tp-id>tp:5:1</tp-id>
321 <inventory-topo:inventory-node-connector-ref>
322 /inventory:nodes/inventory:node[inventory:id="openflow:5"]/inventory:node-connector[inventory:id="openflow:5:1"]
323 </inventory-topo:inventory-node-connector-ref>
329 OPENFLOW_UNDERLAY_TOPOLOGY_2 = '''
331 xmlns="urn:TBD:params:xml:ns:yang:network-topology"
332 xmlns:inventory="urn:opendaylight:inventory"
333 xmlns:inventory-topo="urn:opendaylight:model:topology:inventory">
334 <topology-id>openflow-topo:2</topology-id>
336 <node-id>of-node:6</node-id>
337 <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:6"]</inventory-topo:inventory-node-ref>
340 <node-id>of-node:7</node-id>
341 <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:7"]</inventory-topo:inventory-node-ref>
344 <node-id>of-node:8</node-id>
345 <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:8"]</inventory-topo:inventory-node-ref>
348 <node-id>of-node:9</node-id>
349 <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:9"]</inventory-topo:inventory-node-ref>
352 <node-id>of-node:10</node-id>
353 <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:10"]</inventory-topo:inventory-node-ref>