Basic tests - Unification node inside
[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                             <topology-id>network-topo:1</topology-id>
5                             <topology-types>
6                                 <pcep:topology-pcep></pcep:topology-pcep>
7                             </topology-types>
8                             <node>
9                                 <node-id>pcep:1</node-id>
10                                 <pcep:path-computation-client>
11                                     <pcep:ip-address>192.168.1.1</pcep:ip-address>
12                                 </pcep:path-computation-client>
13                             </node>
14                             <node>
15                                 <node-id>pcep:2</node-id>
16                                 <pcep:path-computation-client>
17                                     <pcep:ip-address>192.168.1.2</pcep:ip-address>
18                                 </pcep:path-computation-client>
19                             </node>
20                             <node>
21                                 <node-id>pcep:3</node-id>
22                                 <pcep:path-computation-client>
23                                     <pcep:ip-address>192.168.2.1</pcep:ip-address>
24                                 </pcep:path-computation-client>
25                             </node>
26                             <node>
27                                 <node-id>pcep:4</node-id>
28                                 <pcep:path-computation-client>
29                                     <pcep:ip-address>192.168.2.1</pcep:ip-address>
30                                 </pcep:path-computation-client>
31                             </node>
32                             <node>
33                                 <node-id>pcep:5</node-id>
34                                 <pcep:path-computation-client>
35                                     <pcep:ip-address>192.168.2.3</pcep:ip-address>
36                                 </pcep:path-computation-client>
37                             </node>
38                         </topology>'''
39
40 NETWORK_UNDERLAY_TOPOLOGY_2 = '''<topology
41                                 xmlns="urn:TBD:params:xml:ns:yang:network-topology"
42                                 xmlns:pcep="urn:opendaylight:params:xml:ns:yang:topology:pcep">
43                             <topology-id>network-topo:2</topology-id>
44                             <topology-types>
45                                 <pcep:topology-pcep></pcep:topology-pcep>
46                             </topology-types>
47                             <node>
48                                 <node-id>pcep:6</node-id>
49                                 <pcep:path-computation-client>
50                                     <pcep:ip-address>192.168.1.3</pcep:ip-address>
51                                 </pcep:path-computation-client>
52                             </node>
53                             <node>
54                                 <node-id>pcep:7</node-id>
55                                 <pcep:path-computation-client>
56                                     <pcep:ip-address>192.168.1.4</pcep:ip-address>
57                                 </pcep:path-computation-client>
58                             </node>
59                             <node>
60                                 <node-id>pcep:8</node-id>
61                                 <pcep:path-computation-client>
62                                     <pcep:ip-address>192.168.2.4</pcep:ip-address>
63                                 </pcep:path-computation-client>
64                             </node>
65                             <node>
66                                 <node-id>pcep:9</node-id>
67                                 <pcep:path-computation-client>
68                                     <pcep:ip-address>192.168.2.5</pcep:ip-address>
69                                 </pcep:path-computation-client>
70                             </node>
71                             <node>
72                                 <node-id>pcep:10</node-id>
73                                 <pcep:path-computation-client>
74                                     <pcep:ip-address>192.168.2.3</pcep:ip-address>
75                                 </pcep:path-computation-client>
76                             </node>
77                         </topology>'''
78
79 OPENFLOW_UNDERLAY_NODES = '''
80 <nodes
81     xmlns="urn:opendaylight:inventory"
82     xmlns:flov-inv="urn:opendaylight:flow:inventory">
83     <node>
84         <id>openflow:1</id>
85         <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
86         <flov-inv:ip-address>192.168.1.1</flov-inv:ip-address>
87     </node>
88     <node>
89         <id>openflow:2</id>
90         <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
91         <flov-inv:ip-address>192.168.1.2</flov-inv:ip-address>
92     </node>
93     <node>
94         <id>openflow:3</id>
95         <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
96         <flov-inv:ip-address>192.168.1.3</flov-inv:ip-address>
97     </node>
98     <node>
99         <id>openflow:4</id>
100         <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
101         <flov-inv:ip-address>192.168.2.1</flov-inv:ip-address>
102     </node>
103     <node>
104         <id>openflow:5</id>
105         <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
106         <flov-inv:ip-address>192.168.2.2</flov-inv:ip-address>
107     </node>
108     <node>
109         <id>openflow:6</id>
110         <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
111         <flov-inv:ip-address>192.168.1.1</flov-inv:ip-address>
112     </node>
113     <node>
114         <id>openflow:7</id>
115         <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
116         <flov-inv:ip-address>192.168.2.3</flov-inv:ip-address>
117     </node>
118     <node>
119         <id>openflow:8</id>
120         <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
121         <flov-inv:ip-address>192.168.1.4</flov-inv:ip-address>
122     </node>
123     <node>
124         <id>openflow:9</id>
125         <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
126         <flov-inv:ip-address>192.168.2.3</flov-inv:ip-address>
127     </node>
128     <node>
129         <id>openflow:10</id>
130         <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
131         <flov-inv:ip-address>192.168.2.1</flov-inv:ip-address>
132     </node>
133 </nodes>
134 '''
135
136 OPENFLOW_UNDERLAY_TOPOLOGY_1 = '''
137 <topology
138         xmlns="urn:TBD:params:xml:ns:yang:network-topology"
139         xmlns:inventory="urn:opendaylight:inventory"
140         xmlns:inventory-topo="urn:opendaylight:model:topology:inventory">
141     <topology-id>openflow-topo:1</topology-id>
142     <node>
143         <node-id>of-node:1</node-id>
144         <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:1"]</inventory-topo:inventory-node-ref>
145     </node>
146     <node>
147         <node-id>of-node:2</node-id>
148         <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:2"]</inventory-topo:inventory-node-ref>
149     </node>
150     <node>
151         <node-id>of-node:3</node-id>
152         <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:3"]</inventory-topo:inventory-node-ref>
153     </node>
154     <node>
155         <node-id>of-node:4</node-id>
156         <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:4"]</inventory-topo:inventory-node-ref>
157     </node>
158     <node>
159         <node-id>of-node:5</node-id>
160         <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:5"]</inventory-topo:inventory-node-ref>
161     </node>
162 </topology>
163 '''
164
165 OPENFLOW_UNDERLAY_TOPOLOGY_2 = '''
166 <topology
167         xmlns="urn:TBD:params:xml:ns:yang:network-topology"
168         xmlns:inventory="urn:opendaylight:inventory"
169         xmlns:inventory-topo="urn:opendaylight:model:topology:inventory">
170     <topology-id>openflow-topo:2</topology-id>
171     <node>
172         <node-id>of-node:6</node-id>
173         <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:6"]</inventory-topo:inventory-node-ref>
174     </node>
175     <node>
176         <node-id>of-node:7</node-id>
177         <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:7"]</inventory-topo:inventory-node-ref>
178     </node>
179     <node>
180         <node-id>of-node:8</node-id>
181         <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:8"]</inventory-topo:inventory-node-ref>
182     </node>
183     <node>
184         <node-id>of-node:9</node-id>
185         <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:9"]</inventory-topo:inventory-node-ref>
186     </node>
187     <node>
188         <node-id>of-node:10</node-id>
189         <inventory-topo:inventory-node-ref>/inventory:nodes/inventory:node[inventory:id="openflow:10"]</inventory-topo:inventory-node-ref>
190     </node>
191 </topology>
192 '''