Fix PceCalculation bug when validating nodes
[transportpce.git] / tests / sample_configs / openroadm / 7.1 / oper-XPDRA.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
3   <netconf xmlns="urn:ietf:params:xml:ns:netmod:notification">
4   <streams>
5     <stream>
6       <name>NETCONF</name>
7     </stream>
8   </streams>
9 </netconf>
10   <org-openroadm-device xmlns="http://org/openroadm/device">
11     <info>
12       <node-id>XPDR-A1</node-id>
13       <node-number>1</node-number>
14       <node-type>xpdr</node-type>
15       <clli>NodeA</clli>
16       <vendor>vendorA</vendor>
17       <model>model2</model>
18       <serial-id>nodeid-1234</serial-id>
19       <ipAddress>1.2.3.4</ipAddress>
20       <prefix-length>24</prefix-length>
21       <defaultGateway>1.2.3.4</defaultGateway>
22       <source>static</source>
23       <current-ipAddress>1.2.3.4</current-ipAddress>
24       <current-prefix-length>10</current-prefix-length>
25       <current-defaultGateway>1.2.3.1</current-defaultGateway>
26       <macAddress>00:01:02:03:04:05</macAddress>
27       <softwareVersion>swversion1234</softwareVersion>
28       <openroadm-version>2.2</openroadm-version>
29       <template>template_TRANSPONDER</template>
30       <current-datetime>2017-10-22T15:23:43Z</current-datetime>
31       <geoLocation>
32         <latitude>1.0000</latitude>
33         <longitude>2.0000</longitude>
34       </geoLocation>
35     </info>
36     <users>
37       <user>
38         <name>openroadm</name>
39         <password>openroadm</password>
40         <group>sudo</group>
41       </user>
42     </users>
43     <shelves>
44       <shelf-name>1</shelf-name>
45       <shelf-type>pizza</shelf-type>
46       <rack>XYZ</rack>
47       <shelf-position>1</shelf-position>
48       <administrative-state>inService</administrative-state>
49       <operational-state>inService</operational-state>
50       <vendor>vendorA</vendor>
51       <model>1</model>
52       <serial-id>nodeid-1</serial-id>
53       <is-physical>true</is-physical>
54       <is-passive>true</is-passive>
55       <faceplate-label>xponder-XPDRA</faceplate-label>
56       <type>pizza</type>
57       <product-code>zzz</product-code>
58       <manufacture-date>2017-04-01T00:00:00+00:00</manufacture-date>
59       <clei>1234567890</clei>
60       <due-date>2017-02-24T15:56:10+00:00</due-date>
61       <slots>
62         <slot-name>1</slot-name>
63         <label>1</label>
64         <provisioned-circuit-pack>1/0</provisioned-circuit-pack>
65       </slots>
66     </shelves>
67     <circuit-packs>
68       <circuit-pack-type>Base_transponder_circuit_pack</circuit-pack-type>
69       <administrative-state>inService</administrative-state>
70       <operational-state>inService</operational-state>
71       <vendor>VendorA</vendor>
72       <model>model1</model>
73       <serial-id>nodeid-1234</serial-id>
74       <circuit-pack-category>
75         <type>circuitPack</type>
76       </circuit-pack-category>
77       <shelf>1</shelf>
78       <slot>1</slot>
79       <is-pluggable-optics>false</is-pluggable-optics>
80       <is-physical>true</is-physical>
81       <is-passive>true</is-passive>
82       <faceplate-label>xponder-XPDRA</faceplate-label>
83       <circuit-pack-product-code>baseXPDR</circuit-pack-product-code>
84       <circuit-pack-name>1/0</circuit-pack-name>
85       <circuit-pack-mode>inServiceMode</circuit-pack-mode>
86       <type>XPDR1</type>
87       <product-code>baseXPDR</product-code>
88       <manufacture-date>2007-10-10T00:00:00Z</manufacture-date>
89       <clei>12345678901</clei>
90       <hardware-version>0.1</hardware-version>
91       <cp-slots>
92         <slot-name>1</slot-name>
93         <label>1</label>
94         <provisioned-circuit-pack>1/0/1-PLUG-NET</provisioned-circuit-pack>
95       </cp-slots>
96       <cp-slots>
97         <slot-name>2</slot-name>
98         <label>2</label>
99         <provisioned-circuit-pack>1/0/1-PLUG-CLIENT</provisioned-circuit-pack>
100       </cp-slots>
101       <cp-slots>
102         <slot-name>3</slot-name>
103         <label>1</label>
104         <provisioned-circuit-pack>1/0/2-PLUG-NET</provisioned-circuit-pack>
105       </cp-slots>
106       <cp-slots>
107         <slot-name>4</slot-name>
108         <label>2</label>
109         <provisioned-circuit-pack>1/0/2-PLUG-CLIENT</provisioned-circuit-pack>
110       </cp-slots>
111     </circuit-packs>
112     <circuit-packs>
113       <circuit-pack-category>
114         <type>circuitPack</type>
115       </circuit-pack-category>
116       <circuit-pack-name>1/0/1-PLUG-NET</circuit-pack-name>
117       <circuit-pack-type>line_pluggable</circuit-pack-type>
118       <circuit-pack-product-code>Line_NW_P</circuit-pack-product-code>
119       <vendor>VendorA</vendor>
120       <model>CFP2</model>
121       <serial-id>_1234_</serial-id>
122       <type>line/network pluggable</type>
123       <product-code>Line_NW_P</product-code>
124       <hardware-version>0.1</hardware-version>
125       <administrative-state>inService</administrative-state>
126       <operational-state>inService</operational-state>
127       <circuit-pack-mode>NORMAL</circuit-pack-mode>
128       <shelf>1</shelf>
129       <slot>1</slot>
130       <subSlot>1</subSlot>
131       <is-pluggable-optics>false</is-pluggable-optics>
132       <is-physical>true</is-physical>
133       <is-passive>true</is-passive>
134       <faceplate-label>xponder-XPDRA</faceplate-label>
135       <equipment-state>not-reserved-available</equipment-state>
136       <ports>
137         <port-name>1</port-name>
138         <port-type>CFP2</port-type>
139         <port-qual>xpdr-network</port-qual>
140         <port-wavelength-type>wavelength</port-wavelength-type>
141         <port-direction>bidirectional</port-direction>
142         <is-physical>true</is-physical>
143         <faceplate-label>xponder-XPDRA</faceplate-label>
144         <administrative-state>inService</administrative-state>
145         <operational-state>inService</operational-state>
146         <transponder-port>
147           <port-power-capability-min-rx>-22.00</port-power-capability-min-rx>
148           <port-power-capability-min-tx>-5.00</port-power-capability-min-tx>
149           <port-power-capability-max-rx>1.00</port-power-capability-max-rx>
150           <port-power-capability-max-tx>0.00</port-power-capability-max-tx>
151         </transponder-port>
152       </ports>
153       <parent-circuit-pack>
154         <circuit-pack-name>1/0</circuit-pack-name>
155         <cp-slot-name>1</cp-slot-name>
156       </parent-circuit-pack>
157     </circuit-packs>
158     <circuit-packs>
159       <circuit-pack-category>
160         <type>circuitPack</type>
161       </circuit-pack-category>
162       <circuit-pack-name>1/0/1-PLUG-CLIENT</circuit-pack-name>
163       <circuit-pack-type>client_pluggable</circuit-pack-type>
164       <circuit-pack-product-code>Client_P</circuit-pack-product-code>
165       <vendor>VendorA</vendor>
166       <model>client_pluggable</model>
167       <serial-id>_1234_</serial-id>
168       <type>QSFP28</type>
169       <product-code>Client_P</product-code>
170       <hardware-version>0.1</hardware-version>
171       <operational-state>inService</operational-state>
172       <is-physical>true</is-physical>
173       <is-passive>true</is-passive>
174       <faceplate-label>xponder-XPDRA</faceplate-label>
175       <administrative-state>inService</administrative-state>
176       <circuit-pack-mode>NORMAL</circuit-pack-mode>
177       <shelf>1</shelf>
178       <slot>1</slot>
179       <subSlot>1</subSlot>
180       <is-pluggable-optics>true</is-pluggable-optics>
181       <equipment-state>not-reserved-available</equipment-state>
182       <ports>
183         <port-name>C1</port-name>
184         <port-type>QSFP28</port-type>
185         <port-qual>xpdr-client</port-qual>
186         <port-wavelength-type>wavelength</port-wavelength-type>
187         <port-direction>bidirectional</port-direction>
188         <is-physical>true</is-physical>
189         <faceplate-label>xponder-XPDRA</faceplate-label>
190         <administrative-state>inService</administrative-state>
191         <operational-state>inService</operational-state>
192         <transponder-port>
193           <port-power-capability-min-rx>-4.00</port-power-capability-min-rx>
194           <port-power-capability-min-tx>-10.00</port-power-capability-min-tx>
195           <port-power-capability-max-rx>4.00</port-power-capability-max-rx>
196           <port-power-capability-max-tx>4.00</port-power-capability-max-tx>
197         </transponder-port>
198       </ports>
199       <parent-circuit-pack>
200         <circuit-pack-name>1/0</circuit-pack-name>
201         <cp-slot-name>2</cp-slot-name>
202       </parent-circuit-pack>
203     </circuit-packs>
204     <circuit-packs>
205       <circuit-pack-category>
206         <type>circuitPack</type>
207       </circuit-pack-category>
208       <circuit-pack-name>1/0/2-PLUG-NET</circuit-pack-name>
209       <circuit-pack-type>line_pluggable</circuit-pack-type>
210       <circuit-pack-product-code>Line_NW_P</circuit-pack-product-code>
211       <vendor>VendorA</vendor>
212       <model>CFP2</model>
213       <serial-id>_1234_</serial-id>
214       <type>line/network pluggable</type>
215       <product-code>Line_NW_P</product-code>
216       <hardware-version>0.1</hardware-version>
217       <operational-state>inService</operational-state>
218       <circuit-pack-mode>NORMAL</circuit-pack-mode>
219       <shelf>1</shelf>
220       <slot>1</slot>
221       <subSlot>1</subSlot>
222       <is-pluggable-optics>true</is-pluggable-optics>
223       <is-physical>true</is-physical>
224       <is-passive>true</is-passive>
225       <faceplate-label>xponder-XPDRA</faceplate-label>
226       <administrative-state>inService</administrative-state>
227       <ports>
228         <port-name>1</port-name>
229         <port-type>CFP2</port-type>
230         <port-qual>xpdr-network</port-qual>
231         <port-wavelength-type>wavelength</port-wavelength-type>
232         <port-direction>bidirectional</port-direction>
233         <is-physical>true</is-physical>
234         <faceplate-label>xponder-XPDRA</faceplate-label>
235         <administrative-state>inService</administrative-state>
236         <operational-state>inService</operational-state>
237         <transponder-port>
238           <port-power-capability-min-rx>-22.00</port-power-capability-min-rx>
239           <port-power-capability-min-tx>-5.00</port-power-capability-min-tx>
240           <port-power-capability-max-rx>1.00</port-power-capability-max-rx>
241           <port-power-capability-max-tx>0.00</port-power-capability-max-tx>
242         </transponder-port>
243       </ports>
244       <parent-circuit-pack>
245         <circuit-pack-name>1/0</circuit-pack-name>
246         <cp-slot-name>3</cp-slot-name>
247       </parent-circuit-pack>
248     </circuit-packs>
249     <circuit-packs>
250       <circuit-pack-category>
251         <type>circuitPack</type>
252       </circuit-pack-category>
253       <circuit-pack-name>1/0/2-PLUG-CLIENT</circuit-pack-name>
254       <circuit-pack-type>client_pluggable</circuit-pack-type>
255       <circuit-pack-product-code>Client_P</circuit-pack-product-code>
256       <vendor>VendorA</vendor>
257       <model>client_pluggable</model>
258       <serial-id>_1234_</serial-id>
259       <type>QSFP28</type>
260       <product-code>Client_P</product-code>
261       <hardware-version>0.1</hardware-version>
262       <operational-state>inService</operational-state>
263       <circuit-pack-mode>NORMAL</circuit-pack-mode>
264       <shelf>1</shelf>
265       <slot>1</slot>
266       <subSlot>1</subSlot>
267       <is-pluggable-optics>true</is-pluggable-optics>
268       <is-physical>true</is-physical>
269       <is-passive>true</is-passive>
270       <faceplate-label>xponder-XPDRA</faceplate-label>
271       <administrative-state>inService</administrative-state>
272       <ports>
273         <port-name>C1</port-name>
274         <port-type>QSFP28</port-type>
275         <port-qual>xpdr-client</port-qual>
276         <port-wavelength-type>wavelength</port-wavelength-type>
277         <port-direction>bidirectional</port-direction>
278         <administrative-state>inService</administrative-state>
279         <operational-state>inService</operational-state>
280         <is-physical>true</is-physical>
281         <faceplate-label>xponder-XPDRA</faceplate-label>
282         <transponder-port>
283           <port-power-capability-min-rx>-4.00</port-power-capability-min-rx>
284           <port-power-capability-min-tx>-10.00</port-power-capability-min-tx>
285           <port-power-capability-max-rx>4.00</port-power-capability-max-rx>
286           <port-power-capability-max-tx>4.00</port-power-capability-max-tx>
287         </transponder-port>
288       </ports>
289       <parent-circuit-pack>
290         <circuit-pack-name>1/0</circuit-pack-name>
291         <cp-slot-name>4</cp-slot-name>
292       </parent-circuit-pack>
293     </circuit-packs>
294
295     <connection-map>
296       <connection-map-number>1</connection-map-number>
297       <source>
298         <circuit-pack-name>1/0/1-PLUG-CLIENT</circuit-pack-name>
299         <port-name>C1</port-name>
300       </source>
301       <destination>
302         <circuit-pack-name>1/0/1-PLUG-NET</circuit-pack-name>
303         <port-name>1</port-name>
304       </destination>
305     </connection-map>
306     <connection-map>
307       <connection-map-number>2</connection-map-number>
308       <source>
309         <circuit-pack-name>1/0/1-PLUG-NET</circuit-pack-name>
310         <port-name>1</port-name>
311       </source>
312       <destination>
313         <circuit-pack-name>1/0/1-PLUG-CLIENT</circuit-pack-name>
314         <port-name>C1</port-name>
315       </destination>
316     </connection-map>
317     <connection-map>
318       <connection-map-number>3</connection-map-number>
319       <source>
320         <circuit-pack-name>1/0/2-PLUG-CLIENT</circuit-pack-name>
321         <port-name>C1</port-name>
322       </source>
323       <destination>
324         <circuit-pack-name>1/0/2-PLUG-NET</circuit-pack-name>
325         <port-name>1</port-name>
326       </destination>
327     </connection-map>
328     <connection-map>
329       <connection-map-number>4</connection-map-number>
330       <source>
331         <circuit-pack-name>1/0/2-PLUG-NET</circuit-pack-name>
332         <port-name>1</port-name>
333       </source>
334       <destination>
335         <circuit-pack-name>1/0/2-PLUG-CLIENT</circuit-pack-name>
336         <port-name>C1</port-name>
337       </destination>
338     </connection-map>
339   </org-openroadm-device>
340   <current-pm-list xmlns="http://org/openroadm/pm">
341   <current-pm-entry>
342     <pm-resource-instance xmlns:d="http://org/openroadm/device">/d:org-openroadm-device/d:interface[d:name='XPDR1-NETWORK1-OTU']</pm-resource-instance>
343     <pm-resource-type>interface</pm-resource-type>
344     <pm-resource-type-extension></pm-resource-type-extension>
345     <retrieval-time>2018-06-07T13:22:58+00:00</retrieval-time>
346     <current-pm>
347       <type>opticalPowerOutput</type>
348       <extension></extension>
349       <location>nearEnd</location>
350       <direction>tx</direction>
351       <measurement>
352         <granularity>15min</granularity>
353         <pmParameterValue>2.5</pmParameterValue>
354         <pmParameterUnit>dBm</pmParameterUnit>
355         <validity>complete</validity>
356       </measurement>
357       <measurement>
358         <granularity>24Hour</granularity>
359         <pmParameterValue>2.23</pmParameterValue>
360         <pmParameterUnit>dBm</pmParameterUnit>
361         <validity>complete</validity>
362       </measurement>
363     </current-pm>
364     <current-pm>
365       <type>opticalPowerInput</type>
366       <extension></extension>
367       <location>nearEnd</location>
368       <direction>rx</direction>
369       <measurement>
370         <granularity>15min</granularity>
371         <pmParameterValue>-45.1</pmParameterValue>
372         <pmParameterUnit>dBm</pmParameterUnit>
373         <validity>complete</validity>
374       </measurement>
375       <measurement>
376         <granularity>24Hour</granularity>
377         <pmParameterValue>-49.3</pmParameterValue>
378         <pmParameterUnit>dBm</pmParameterUnit>
379         <validity>complete</validity>
380       </measurement>
381     </current-pm>
382   </current-pm-entry>
383 </current-pm-list>
384 </data>