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>
6 <pcep:topology-pcep></pcep:topology-pcep>
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>
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>
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>
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>
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>
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>
45 <pcep:topology-pcep></pcep:topology-pcep>
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>
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>
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>
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>
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>
79 OPENFLOW_UNDERLAY_NODES = '''
81 xmlns="urn:opendaylight:inventory"
82 xmlns:flov-inv="urn:opendaylight:flow:inventory">
85 <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
86 <flov-inv:ip-address>192.168.1.1</flov-inv:ip-address>
90 <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
91 <flov-inv:ip-address>192.168.1.2</flov-inv:ip-address>
95 <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
96 <flov-inv:ip-address>192.168.1.3</flov-inv:ip-address>
100 <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
101 <flov-inv:ip-address>192.168.2.1</flov-inv:ip-address>
105 <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
106 <flov-inv:ip-address>192.168.2.2</flov-inv:ip-address>
110 <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
111 <flov-inv:ip-address>192.168.1.1</flov-inv:ip-address>
115 <flov-inv:manufacturer>Pantheon Technologies</flov-inv:manufacturer>
116 <flov-inv:ip-address>192.168.2.3</flov-inv:ip-address>
120 <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
121 <flov-inv:ip-address>192.168.1.4</flov-inv:ip-address>
125 <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
126 <flov-inv:ip-address>192.168.2.3</flov-inv:ip-address>
130 <flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
131 <flov-inv:ip-address>192.168.2.1</flov-inv:ip-address>
136 OPENFLOW_UNDERLAY_TOPOLOGY_1 = '''
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>
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>
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>
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>
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>
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>
165 OPENFLOW_UNDERLAY_TOPOLOGY_2 = '''
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>
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>
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>
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>
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>
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>