13c77968446a980beb854c60c5d4153a418b03fe
[integration/test.git] / csit / variables / topoprocessing / Topologies.py
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>
6                             <topology-types>
7                                 <pcep:topology-pcep></pcep:topology-pcep>
8                             </topology-types>
9                             <node>
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>
14                                 <termination-point>
15                                     <tp-id>tp:1:1</tp-id>
16                                     <ovsdb:ofport>1119</ovsdb:ofport>
17                                 </termination-point>
18                                 <termination-point>
19                                     <tp-id>tp:1:2</tp-id>
20                                     <ovsdb:ofport>1119</ovsdb:ofport>
21                                 </termination-point>
22                                 <termination-point>
23                                     <tp-id>tp:1:3</tp-id>
24                                     <ovsdb:ofport>2119</ovsdb:ofport>
25                                 </termination-point>
26                             </node>
27                             <node>
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>
32                             </node>
33                             <node>
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>
38                                 <termination-point>
39                                     <tp-id>tp:3:1</tp-id>
40                                     <ovsdb:ofport>1118</ovsdb:ofport>
41                                 </termination-point>
42                                 <termination-point>
43                                     <tp-id>tp:3:2</tp-id>
44                                     <ovsdb:ofport>2118</ovsdb:ofport>
45                                 </termination-point>
46                             </node>
47                             <node>
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>
52                                 <termination-point>
53                                     <tp-id>tp:4:1</tp-id>
54                                     <ovsdb:ofport>1117</ovsdb:ofport>
55                                 </termination-point>
56                                 <termination-point>
57                                     <tp-id>tp:4:2</tp-id>
58                                     <ovsdb:ofport>1117</ovsdb:ofport>
59                                 </termination-point>
60                             </node>
61                             <node>
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>
66                                 <termination-point>
67                                     <tp-id>tp:5:1</tp-id>
68                                     <ovsdb:ofport>1116</ovsdb:ofport>
69                                 </termination-point>
70                             </node>
71                         </topology>'''
72
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>
78                             <topology-types>
79                                 <pcep:topology-pcep></pcep:topology-pcep>
80                             </topology-types>
81                             <node>
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>
86                                 <termination-point>
87                                     <tp-id>tp:6:1</tp-id>
88                                     <ovsdb:ofport>1116</ovsdb:ofport>
89                                 </termination-point>
90                             </node>
91                             <node>
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>
96                                 <termination-point>
97                                     <tp-id>tp:7:1</tp-id>
98                                     <ovsdb:ofport>1117</ovsdb:ofport>
99                                 </termination-point>
100                             </node>
101                             <node>
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>
106                                 <termination-point>
107                                     <tp-id>tp:8:1</tp-id>
108                                     <ovsdb:ofport>11120</ovsdb:ofport>
109                                 </termination-point>
110                             </node>
111                             <node>
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>
116                                 <termination-point>
117                                     <tp-id>tp:9:1</tp-id>
118                                     <ovsdb:ofport>1121</ovsdb:ofport>
119                                 </termination-point>
120                             </node>
121                             <node>
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>
126                                 <termination-point>
127                                     <tp-id>tp:10:1</tp-id>
128                                     <ovsdb:ofport>1122</ovsdb:ofport>
129                                 </termination-point>
130                             </node>
131                         </topology>'''
132
133 OPENFLOW_UNDERLAY_NODES = '''
134 <nodes
135     xmlns="urn:opendaylight:inventory"
136     xmlns:flov-inv="urn:opendaylight:flow:inventory">
137     <node>
138         <id>openflow:1</id>
139         <node-connector>
140             <id>openflow:1:1</id>
141             <flov-inv:port-number>1</flov-inv:port-number>
142         </node-connector>
143         <node-connector>
144             <id>openflow:1:2</id>
145             <flov-inv:port-number>1</flov-inv:port-number>
146         </node-connector>
147         <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
148         <flov-inv:ip-address>192.168.1.1</flov-inv:ip-address>
149     </node>
150     <node>
151         <id>openflow:2</id>
152         <node-connector>
153             <id>openflow:2:1</id>
154             <flov-inv:port-number>1</flov-inv:port-number>
155         </node-connector>
156         <node-connector>
157             <id>openflow:2:2</id>
158             <flov-inv:port-number>2</flov-inv:port-number>
159         </node-connector>
160         <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
161         <flov-inv:ip-address>192.168.1.2</flov-inv:ip-address>
162     </node>
163     <node>
164         <id>openflow:3</id>
165         <node-connector>
166             <id>openflow:3:1</id>
167             <flov-inv:port-number>2</flov-inv:port-number>
168         </node-connector>
169         <node-connector>
170             <id>openflow:3:2</id>
171             <flov-inv:port-number>2</flov-inv:port-number>
172         </node-connector>
173         <node-connector>
174             <id>openflow:3:3</id>
175             <flov-inv:port-number>1</flov-inv:port-number>
176         </node-connector>
177         <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
178         <flov-inv:ip-address>192.168.1.3</flov-inv:ip-address>
179     </node>
180     <node>
181         <id>openflow:4</id>
182         <node-connector>
183             <id>openflow:4:1</id>
184             <flov-inv:port-number>1</flov-inv:port-number>
185         </node-connector>
186         <node-connector>
187             <id>openflow:4:2</id>
188             <flov-inv:port-number>1</flov-inv:port-number>
189         </node-connector>
190         <node-connector>
191             <id>openflow:4:3</id>
192             <flov-inv:port-number>1</flov-inv:port-number>
193         </node-connector>
194         <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
195         <flov-inv:ip-address>192.168.2.1</flov-inv:ip-address>
196     </node>
197     <node>
198         <id>openflow:5</id>
199         <node-connector>
200             <id>openflow:5:1</id>
201             <flov-inv:port-number>3</flov-inv:port-number>
202         </node-connector>
203         <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
204         <flov-inv:ip-address>192.168.2.2</flov-inv:ip-address>
205     </node>
206     <node>
207         <id>openflow:6</id>
208         <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
209         <flov-inv:ip-address>192.168.1.1</flov-inv:ip-address>
210     </node>
211     <node>
212         <id>openflow:7</id>
213         <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
214         <flov-inv:ip-address>192.168.2.3</flov-inv:ip-address>
215     </node>
216     <node>
217         <id>openflow:8</id>
218         <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
219         <flov-inv:ip-address>192.168.1.4</flov-inv:ip-address>
220     </node>
221     <node>
222         <id>openflow:9</id>
223         <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
224         <flov-inv:ip-address>192.168.2.3</flov-inv:ip-address>
225     </node>
226     <node>
227         <id>openflow:10</id>
228         <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
229         <flov-inv:ip-address>192.168.2.1</flov-inv:ip-address>
230     </node>
231 </nodes>
232 '''
233
234 OPENFLOW_UNDERLAY_TOPOLOGY_1 = '''
235 <topology
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>
240     <node>
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>
243         <termination-point>
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>
248         </termination-point>
249         <termination-point>
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>
254         </termination-point>
255     </node>
256     <node>
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>
259         <termination-point>
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>
264         </termination-point>
265         <termination-point>
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>
270         </termination-point>
271     </node>
272     <node>
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>
275         <termination-point>
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>
280         </termination-point>
281         <termination-point>
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>
286         </termination-point>
287         <termination-point>
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>
292         </termination-point>
293     </node>
294     <node>
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>
297         <termination-point>
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>
302         </termination-point>
303         <termination-point>
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>
308         </termination-point>
309         <termination-point>
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>
314         </termination-point>
315     </node>
316     <node>
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>
319         <termination-point>
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>
324         </termination-point>
325     </node>
326 </topology>
327 '''
328
329 OPENFLOW_UNDERLAY_TOPOLOGY_2 = '''
330 <topology
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>
335     <node>
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>
338     </node>
339     <node>
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>
342     </node>
343     <node>
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>
346     </node>
347     <node>
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>
350     </node>
351     <node>
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>
354     </node>
355 </topology>
356 '''