Merge "Add nemo-impl test file"
[nemo.git] / nemo-ui / src / main / resources / nemo / module / test / servicechain_userJson.js
1 var keyWords=['Create','Import','Host','Node','Connection','Flow','Operation','Type','Endnodes','Property','Contain','Match','Target','Action'];\r
2 var userinfo ={\r
3   "users": {\r
4     "user": [\r
5       {\r
6         "user-id": "af4fc2be-e3f4-4388-a8ef-3aabae872f2b",\r
7         "user-role": "tenant",\r
8         "user-password": "abcd",\r
9         "user-name": "user1",\r
10         "objects": {\r
11           "node": [\r
12             {\r
13               "node-id": "94a6fb90-b425-4ffd-9515-c0684aa4c37f",\r
14               "property": [\r
15                 {\r
16                   "property-name": "ac-info-network",\r
17                   "property-values": {\r
18                     "string-value": [\r
19                       {\r
20                         "value": "layer3",\r
21                         "order": 0\r
22                       }\r
23                     ]\r
24                   }\r
25                 },\r
26                 {\r
27                   "property-name": "ip-prefix",\r
28                   "property-values": {\r
29                     "string-value": [\r
30                       {\r
31                         "value": "192.168.11.0/24",\r
32                         "order": 0\r
33                       }\r
34                     ]\r
35                   }\r
36                 },\r
37                 {\r
38                   "property-name": "ac-info-protocol",\r
39                   "property-values": {\r
40                     "string-value": [\r
41                       {\r
42                         "value": "static",\r
43                         "order": 0\r
44                       }\r
45                     ]\r
46                   }\r
47                 },\r
48                 {\r
49                   "property-name": "location",\r
50                   "property-values": {\r
51                     "string-value": [\r
52                       {\r
53                         "value": "openflow:4:2",\r
54                         "order": 0\r
55                       }\r
56                     ]\r
57                   }\r
58                 }\r
59               ],\r
60               "node-type": "ext-group",\r
61               "node-name": "headquarter"\r
62             },\r
63             {\r
64               "node-id": "41ee9aad-5f61-469d-99a9-e691d2a1de05",\r
65               "node-type": "chain-group",\r
66               "node-name": "chain1",\r
67               "sub-node": [\r
68                 {\r
69                   "node-id": "c2cd9de6-ab25-4d3f-bff2-c4d785a41995",\r
70                   "order": 0\r
71                 },\r
72                 {\r
73                   "node-id": "a5a96dc7-51dd-44a5-802b-7e67a309fb36",\r
74                   "order": 1\r
75                 }\r
76               ]\r
77             },\r
78             {\r
79               "node-id": "c2cd9de6-ab25-4d3f-bff2-c4d785a41995",\r
80               "property": [\r
81                 {\r
82                   "property-name": "location",\r
83                   "property-values": {\r
84                     "string-value": [\r
85                       {\r
86                         "value": "openflow:1:1",\r
87                         "order": 0\r
88                       }\r
89                     ]\r
90                   }\r
91                 },\r
92                 {\r
93                   "property-name": "operating-mode",\r
94                   "property-values": {\r
95                     "string-value": [\r
96                       {\r
97                         "value": "layer3",\r
98                         "order": 0\r
99                       }\r
100                     ]\r
101                   }\r
102                 }\r
103               ],\r
104               "node-type": "fw",\r
105               "node-name": "fw1"\r
106             },\r
107             {\r
108               "node-id": "b46cfa7f-93a3-43f4-ac20-09307c75feca",\r
109               "property": [\r
110                 {\r
111                   "property-name": "ac-info-network",\r
112                   "property-values": {\r
113                     "string-value": [\r
114                       {\r
115                         "value": "layer3",\r
116                         "order": 0\r
117                       }\r
118                     ]\r
119                   }\r
120                 },\r
121                 {\r
122                   "property-name": "ip-prefix",\r
123                   "property-values": {\r
124                     "string-value": [\r
125                       {\r
126                         "value": "192.168.12.0/24",\r
127                         "order": 0\r
128                       }\r
129                     ]\r
130                   }\r
131                 },\r
132                 {\r
133                   "property-name": "ac-info-protocol",\r
134                   "property-values": {\r
135                     "string-value": [\r
136                       {\r
137                         "value": "static",\r
138                         "order": 0\r
139                       }\r
140                     ]\r
141                   }\r
142                 },\r
143                 {\r
144                   "property-name": "location",\r
145                   "property-values": {\r
146                     "string-value": [\r
147                       {\r
148                         "value": "openflow:3:4",\r
149                         "order": 0\r
150                       }\r
151                     ]\r
152                   }\r
153                 }\r
154               ],\r
155               "node-type": "ext-group",\r
156               "node-name": "branch"\r
157             },\r
158             {\r
159               "node-id": "a5a96dc7-51dd-44a5-802b-7e67a309fb36",\r
160               "property": [\r
161                 {\r
162                   "property-name": "location",\r
163                   "property-values": {\r
164                     "string-value": [\r
165                       {\r
166                         "value": "openflow:2:2",\r
167                         "order": 0\r
168                       }\r
169                     ]\r
170                   }\r
171                 },\r
172                 {\r
173                   "property-name": "operating-mode",\r
174                   "property-values": {\r
175                     "string-value": [\r
176                       {\r
177                         "value": "layer3",\r
178                         "order": 0\r
179                       }\r
180                     ]\r
181                   }\r
182                 }\r
183               ],\r
184               "node-type": "cache",\r
185               "node-name": "cache2"\r
186             }\r
187           ],\r
188           "connection": [\r
189             {\r
190               "connection-id": "fed2b570-2e80-4914-a5af-040594b651b9",\r
191               "connection-type": "p2p",\r
192               "end-node": [\r
193                 {\r
194                   "node-id": "41ee9aad-5f61-469d-99a9-e691d2a1de05",\r
195                   "order": 0\r
196                 },\r
197                 {\r
198                   "node-id": "b46cfa7f-93a3-43f4-ac20-09307c75feca",\r
199                   "order": 0\r
200                 }\r
201               ],\r
202               "connection-name": "c3"\r
203             },\r
204             {\r
205               "connection-id": "7175bac3-b785-2278-90ed-613480e354e8",\r
206               "connection-type": "p2p",\r
207               "end-node": [\r
208                 {\r
209                   "node-id": "94a6fb90-b425-4ffd-9515-c0684aa4c37f",\r
210                   "order": 0\r
211                 },\r
212                 {\r
213                   "node-id": "b46cfa7f-93a3-43f4-ac20-09307c75feca",\r
214                   "order": 0\r
215                 }\r
216               ],\r
217               "connection-name": "c1"\r
218             },\r
219             {\r
220               "connection-id": "9397bac3-d9a7-449a-b20f-8356a2f3760a",\r
221               "connection-type": "p2p",\r
222               "end-node": [\r
223                 {\r
224                   "node-id": "94a6fb90-b425-4ffd-9515-c0684aa4c37f",\r
225                   "order": 0\r
226                 },\r
227                 {\r
228                   "node-id": "41ee9aad-5f61-469d-99a9-e691d2a1de05",\r
229                   "order": 0\r
230                 }\r
231               ],\r
232               "connection-name": "c2"\r
233             }\r
234           ],\r
235           "flow": [\r
236             {\r
237               "flow-id": "cf48eeee-882e-435a-adf4-ea22ba88331f",\r
238               "match-item": [\r
239                 {\r
240                   "match-item-name": "dst-ip",\r
241                   "match-item-value": {\r
242                     "string-value": "192.168.11.0/24"\r
243                   }\r
244                 },\r
245                 {\r
246                   "match-item-name": "src-ip",\r
247                   "match-item-value": {\r
248                     "string-value": "192.168.12.0/24"\r
249                   }\r
250                 }\r
251               ],\r
252               "flow-name": "f1"\r
253             }\r
254           ]\r
255         },\r
256         "operations": {\r
257           "operation": [\r
258             {\r
259               "operation-id": "619ee3bb-1e40-480f-b0fa-a331820a5518",\r
260               "priority": 0,\r
261               "action": [\r
262                 {\r
263                   "action-name": "go-through",\r
264                   "order": 0,\r
265                   "parameter-values": {\r
266                     "string-value": [\r
267                       {\r
268                         "value": "41ee9aad-5f61-469d-99a9-e691d2a1de05",\r
269                         "order": 0\r
270                       }\r
271                     ]\r
272                   }\r
273                 }\r
274               ],\r
275               "target-object": "cf48eeee-882e-435a-adf4-ea22ba88331f",\r
276               "operation-name": "o1"\r
277             }\r
278           ]\r
279         }\r
280       }\r
281     ]\r
282   }\r
283 }\r
284 //console.log(userinfo);\r
285 var physicalJson= {\r
286   "physical-network": {\r
287     "physical-nodes": {\r
288       "physical-node": [\r
289         {\r
290           "node-id": "openflow:3",\r
291           "attribute": [\r
292             {\r
293               "attribute-name": "location",\r
294               "attribute-value": {\r
295                 "string-value": "openflow:3"\r
296               }\r
297             }\r
298           ],\r
299           "node-type": "router",\r
300           "physical-port": [\r
301             {\r
302               "port-id": "openflow:3:1",\r
303               "attribute": [\r
304                 {\r
305                   "attribute-name": "location",\r
306                   "attribute-value": {\r
307                     "string-value": "openflow:3:1"\r
308                   }\r
309                 }\r
310               ],\r
311               "port-type": "internal",\r
312               "mac-address": "D2:69:26:45:3C:B4",\r
313               "bandwidth": 10240\r
314             },\r
315             {\r
316               "port-id": "openflow:3:2",\r
317               "attribute": [\r
318                 {\r
319                   "attribute-name": "location",\r
320                   "attribute-value": {\r
321                     "string-value": "openflow:3:2"\r
322                   }\r
323                 }\r
324               ],\r
325               "port-type": "internal",\r
326               "mac-address": "82:F5:6A:E7:C2:51",\r
327               "bandwidth": 10240\r
328             },\r
329             {\r
330               "port-id": "openflow:3:3",\r
331               "attribute": [\r
332                 {\r
333                   "attribute-name": "location",\r
334                   "attribute-value": {\r
335                     "string-value": "openflow:3:3"\r
336                   }\r
337                 }\r
338               ],\r
339               "port-type": "internal",\r
340               "mac-address": "7E:BD:57:AB:AD:12",\r
341               "bandwidth": 10240\r
342             },\r
343             {\r
344               "port-id": "openflow:3:4",\r
345               "attribute": [\r
346                 {\r
347                   "attribute-name": "location",\r
348                   "attribute-value": {\r
349                     "string-value": "openflow:3:4"\r
350                   }\r
351                 }\r
352               ],\r
353               "port-type": "external",\r
354               "mac-address": "00:0C:29:98:7E:1D",\r
355               "bandwidth": 10240\r
356             }\r
357           ]\r
358         },\r
359         {\r
360           "node-id": "openflow:4",\r
361           "attribute": [\r
362             {\r
363               "attribute-name": "location",\r
364               "attribute-value": {\r
365                 "string-value": "openflow:4"\r
366               }\r
367             }\r
368           ],\r
369           "node-type": "router",\r
370           "physical-port": [\r
371             {\r
372               "port-id": "openflow:4:2",\r
373               "attribute": [\r
374                 {\r
375                   "attribute-name": "location",\r
376                   "attribute-value": {\r
377                     "string-value": "openflow:4:2"\r
378                   }\r
379                 }\r
380               ],\r
381               "port-type": "external",\r
382               "mac-address": "00:0C:29:98:7E:27",\r
383               "bandwidth": 10240\r
384             },\r
385             {\r
386               "port-id": "openflow:4:1",\r
387               "attribute": [\r
388                 {\r
389                   "attribute-name": "location",\r
390                   "attribute-value": {\r
391                     "string-value": "openflow:4:1"\r
392                   }\r
393                 }\r
394               ],\r
395               "port-type": "internal",\r
396               "mac-address": "16:4E:17:55:69:EF",\r
397               "bandwidth": 10240\r
398             }\r
399           ]\r
400         },\r
401         {\r
402           "node-id": "openflow:1",\r
403           "attribute": [\r
404             {\r
405               "attribute-name": "location",\r
406               "attribute-value": {\r
407                 "string-value": "openflow:1"\r
408               }\r
409             }\r
410           ],\r
411           "node-type": "router",\r
412           "physical-port": [\r
413             {\r
414               "port-id": "openflow:1:1",\r
415               "attribute": [\r
416                 {\r
417                   "attribute-name": "location",\r
418                   "attribute-value": {\r
419                     "string-value": "openflow:1:1"\r
420                   }\r
421                 }\r
422               ],\r
423               "port-type": "external",\r
424               "mac-address": "00:0C:29:98:7E:09",\r
425               "bandwidth": 10240\r
426             },\r
427             {\r
428               "port-id": "openflow:1:2",\r
429               "attribute": [\r
430                 {\r
431                   "attribute-name": "location",\r
432                   "attribute-value": {\r
433                     "string-value": "openflow:1:2"\r
434                   }\r
435                 }\r
436               ],\r
437               "port-type": "external",\r
438               "mac-address": "9E:A7:FD:52:0E:4F",\r
439               "bandwidth": 10240\r
440             },\r
441             {\r
442               "port-id": "openflow:1:3",\r
443               "attribute": [\r
444                 {\r
445                   "attribute-name": "location",\r
446                   "attribute-value": {\r
447                     "string-value": "openflow:1:3"\r
448                   }\r
449                 }\r
450               ],\r
451               "port-type": "internal",\r
452               "mac-address": "6E:93:61:CF:19:D0",\r
453               "bandwidth": 10240\r
454             }\r
455           ]\r
456         },\r
457         {\r
458           "node-id": "openflow:2",\r
459           "attribute": [\r
460             {\r
461               "attribute-name": "location",\r
462               "attribute-value": {\r
463                 "string-value": "openflow:2"\r
464               }\r
465             }\r
466           ],\r
467           "node-type": "router",\r
468           "physical-port": [\r
469             {\r
470               "port-id": "openflow:2:3",\r
471               "attribute": [\r
472                 {\r
473                   "attribute-name": "location",\r
474                   "attribute-value": {\r
475                     "string-value": "openflow:2:3"\r
476                   }\r
477                 }\r
478               ],\r
479               "port-type": "internal",\r
480               "mac-address": "F2:23:F9:75:DA:F8",\r
481               "bandwidth": 10240\r
482             },\r
483             {\r
484               "port-id": "openflow:2:2",\r
485               "attribute": [\r
486                 {\r
487                   "attribute-name": "location",\r
488                   "attribute-value": {\r
489                     "string-value": "openflow:2:2"\r
490                   }\r
491                 }\r
492               ],\r
493               "port-type": "external",\r
494               "mac-address": "00:0C:29:98:7E:13",\r
495               "bandwidth": 10240\r
496             },\r
497             {\r
498               "port-id": "openflow:2:1",\r
499               "attribute": [\r
500                 {\r
501                   "attribute-name": "location",\r
502                   "attribute-value": {\r
503                     "string-value": "openflow:2:1"\r
504                   }\r
505                 }\r
506               ],\r
507               "port-type": "external",\r
508               "mac-address": "6E:7E:E6:D8:CA:56",\r
509               "bandwidth": 10240\r
510             }\r
511           ]\r
512         }\r
513       ]\r
514     },\r
515     "physical-links": {\r
516       "physical-link": [\r
517         {\r
518           "link-id": "openflow:4:2",\r
519           "loss-rate": 1,\r
520           "delay": 1,\r
521           "dest-port-id": "openflow:2:2",\r
522           "src-port-id": "openflow:4:2",\r
523           "dest-node-id": "openflow:2",\r
524           "bandwidth": 10240,\r
525           "src-node-id": "openflow:4"\r
526         },\r
527         {\r
528           "link-id": "openflow:4:1",\r
529           "loss-rate": 1,\r
530           "delay": 1,\r
531           "src-port-id": "openflow:4:1",\r
532           "dest-node-id": "openflow:3",\r
533           "metric": 1,\r
534           "dest-port-id": "openflow:3:3",\r
535           "bandwidth": 10240,\r
536           "src-node-id": "openflow:4"\r
537         },\r
538         {\r
539           "link-id": "openflow:2:3",\r
540           "loss-rate": 1,\r
541           "delay": 1,\r
542           "src-port-id": "openflow:2:3",\r
543           "dest-node-id": "openflow:3",\r
544           "metric": 1,\r
545           "dest-port-id": "openflow:3:2",\r
546           "bandwidth": 10240,\r
547           "src-node-id": "openflow:2"\r
548         },\r
549         {\r
550           "link-id": "openflow:3:1",\r
551           "loss-rate": 1,\r
552           "delay": 1,\r
553           "src-port-id": "openflow:3:1",\r
554           "dest-node-id": "openflow:1",\r
555           "metric": 1,\r
556           "dest-port-id": "openflow:1:3",\r
557           "bandwidth": 10240,\r
558           "src-node-id": "openflow:3"\r
559         },\r
560         {\r
561           "link-id": "openflow:1:3",\r
562           "loss-rate": 1,\r
563           "delay": 1,\r
564           "src-port-id": "openflow:1:3",\r
565           "dest-node-id": "openflow:3",\r
566           "metric": 1,\r
567           "dest-port-id": "openflow:3:1",\r
568           "bandwidth": 10240,\r
569           "src-node-id": "openflow:1"\r
570         },\r
571         {\r
572           "link-id": "openflow:3:3",\r
573           "loss-rate": 1,\r
574           "delay": 1,\r
575           "src-port-id": "openflow:3:3",\r
576           "dest-node-id": "openflow:4",\r
577           "metric": 1,\r
578           "dest-port-id": "openflow:4:1",\r
579           "bandwidth": 10240,\r
580           "src-node-id": "openflow:3"\r
581         },\r
582         {\r
583           "link-id": "openflow:3:2",\r
584           "loss-rate": 1,\r
585           "delay": 1,\r
586           "src-port-id": "openflow:3:2",\r
587           "dest-node-id": "openflow:2",\r
588           "metric": 1,\r
589           "dest-port-id": "openflow:2:3",\r
590           "bandwidth": 10240,\r
591           "src-node-id": "openflow:3"\r
592         },\r
593         {\r
594           "link-id": "openflow:2:2",\r
595           "loss-rate": 1,\r
596           "delay": 1,\r
597           "dest-port-id": "openflow:4:2",\r
598           "src-port-id": "openflow:2:2",\r
599           "dest-node-id": "openflow:4",\r
600           "bandwidth": 10240,\r
601           "src-node-id": "openflow:2"\r
602         },\r
603         {\r
604           "link-id": "openflow:3:4",\r
605           "loss-rate": 1,\r
606           "delay": 1,\r
607           "dest-port-id": "openflow:4:2",\r
608           "src-port-id": "openflow:3:4",\r
609           "dest-node-id": "openflow:4",\r
610           "bandwidth": 10240,\r
611           "src-node-id": "openflow:3"\r
612         }\r
613       ]\r
614     },\r
615     "physical-paths": {\r
616       "physical-path": [\r
617         {\r
618           "path-id": "d26f3d08-dcd8-4bdb-b74e-d09cc5ab4090",\r
619           "delay": 0,\r
620           "physical-link": [\r
621             {\r
622               "link-id": "openflow:3:3",\r
623               "order": 1\r
624             },\r
625             {\r
626               "link-id": "openflow:2:3",\r
627               "order": 0\r
628             }\r
629           ],\r
630           "metric": 2,\r
631           "bandwidth": 0\r
632         },\r
633         {\r
634           "path-id": "0eec470f-ec46-4390-8c84-4c27ca013255",\r
635           "delay": 0,\r
636           "physical-link": [\r
637             {\r
638               "link-id": "openflow:1:3",\r
639               "order": 0\r
640             }\r
641           ],\r
642           "metric": 1,\r
643           "bandwidth": 0\r
644         },\r
645         {\r
646           "path-id": "6065bd5d-5058-41ec-a901-92e184755b52",\r
647           "delay": 0,\r
648           "physical-link": [\r
649             {\r
650               "link-id": "openflow:3:2",\r
651               "order": 1\r
652             },\r
653             {\r
654               "link-id": "openflow:1:3",\r
655               "order": 0\r
656             }\r
657           ],\r
658           "metric": 2,\r
659           "bandwidth": 0\r
660         },\r
661         {\r
662           "path-id": "c8da2902-31d9-49f5-b7a8-ade64c497bea",\r
663           "delay": 0,\r
664           "physical-link": [\r
665             {\r
666               "link-id": "openflow:3:2",\r
667               "order": 1\r
668             },\r
669             {\r
670               "link-id": "openflow:4:1",\r
671               "order": 0\r
672             }\r
673           ],\r
674           "metric": 2,\r
675           "bandwidth": 0\r
676         },\r
677         {\r
678           "path-id": "ae567148-9747-4aa7-9fef-b08d282e4d17",\r
679           "delay": 0,\r
680           "physical-link": [\r
681             {\r
682               "link-id": "openflow:4:1",\r
683               "order": 0\r
684             }\r
685           ],\r
686           "metric": 1,\r
687           "bandwidth": 0\r
688         },\r
689         {\r
690           "path-id": "ae1b6b7a-2725-4f26-8b75-7c21a086a1c4",\r
691           "delay": 0,\r
692           "physical-link": [\r
693             {\r
694               "link-id": "openflow:3:1",\r
695               "order": 0\r
696             }\r
697           ],\r
698           "metric": 1,\r
699           "bandwidth": 0\r
700         },\r
701         {\r
702           "path-id": "6592bf47-5953-442e-90d3-e2fde9221fd5",\r
703           "delay": 0,\r
704           "physical-link": [\r
705             {\r
706               "link-id": "openflow:3:3",\r
707               "order": 0\r
708             }\r
709           ],\r
710           "metric": 1,\r
711           "bandwidth": 0\r
712         },\r
713         {\r
714           "path-id": "8b9dbbc9-a895-4adc-9cca-29217c1fa1ff",\r
715           "delay": 0,\r
716           "physical-link": [\r
717             {\r
718               "link-id": "openflow:2:3",\r
719               "order": 0\r
720             },\r
721             {\r
722               "link-id": "openflow:3:1",\r
723               "order": 1\r
724             }\r
725           ],\r
726           "metric": 2,\r
727           "bandwidth": 0\r
728         }\r
729       ]\r
730     }\r
731   }\r
732 }\r
733 var virtualJson={\r
734   "virtual-networks": {\r
735     "virtual-network": [\r
736       {\r
737         "network-id": "af4fc2be-e3f4-4388-a8ef-3aabae872f2b",\r
738         "virtual-nodes": {\r
739           "virtual-node": [\r
740             {\r
741               "node-id": "43429643-c423-4d46-817d-092ac20d3b79",\r
742               "node-type": "vrouter",\r
743               "physical-resource-requirement": [\r
744                 {\r
745                   "attribute-name": "location",\r
746                   "attribute-value": {\r
747                     "string-value": "openflow:4"\r
748                   },\r
749                   "attribute-match-pattern": "equal"\r
750                 }\r
751               ],\r
752               "virtual-port": [\r
753                 {\r
754                   "port-id": "1f0bf4a0-6857-47ec-b2af-2104ef1d0c79",\r
755                   "external-ip-prefixes": {\r
756                     "external-ip-prefix": [\r
757                       "192.168.11.0/24"\r
758                     ]\r
759                   },\r
760                   "port-type": "external",\r
761                   "physical-resource-requirement": [\r
762                     {\r
763                       "attribute-name": "location",\r
764                       "attribute-value": {\r
765                         "string-value": "openflow:4:2"\r
766                       },\r
767                       "attribute-match-pattern": "equal"\r
768                     }\r
769                   ]\r
770                 },\r
771                 {\r
772                   "port-id": "41a4e6b1-019e-456c-bd99-8fc5f60c3a29",\r
773                   "port-type": "internal",\r
774                   "bandwidth": 0\r
775                 },\r
776                 {\r
777                   "port-id": "6c494b58-fabf-48f7-8907-43850cb4607a",\r
778                   "port-type": "internal"\r
779                 }\r
780               ]\r
781             },\r
782             {\r
783               "node-id": "ef802514-a373-4f24-a162-0553ffe13f09",\r
784               "node-type": "vrouter",\r
785               "physical-resource-requirement": [\r
786                 {\r
787                   "attribute-name": "location",\r
788                   "attribute-value": {\r
789                     "string-value": "openflow:2"\r
790                   },\r
791                   "attribute-match-pattern": "equal"\r
792                 }\r
793               ],\r
794               "virtual-port": [\r
795                 {\r
796                   "port-id": "a086ba37-a6b7-490a-a3cb-27a31378e096",\r
797                   "port-type": "internal"\r
798                 },\r
799                 {\r
800                   "port-id": "6208bb8d-1489-4aec-bf21-8702d8f69951",\r
801                   "port-type": "internal"\r
802                 },\r
803                 {\r
804                   "port-id": "32ddfaa1-1dd8-434a-8479-362d592521d1",\r
805                   "external-ip-prefixes": {},\r
806                   "port-type": "external",\r
807                   "physical-resource-requirement": [\r
808                     {\r
809                       "attribute-name": "location",\r
810                       "attribute-value": {\r
811                         "string-value": "openflow:2:2"\r
812                       },\r
813                       "attribute-match-pattern": "equal"\r
814                     }\r
815                   ]\r
816                 }\r
817               ]\r
818             },\r
819             {\r
820               "node-id": "7f41bc57-f4ee-42cc-8fac-f25bda374be9",\r
821               "node-type": "vrouter",\r
822               "physical-resource-requirement": [\r
823                 {\r
824                   "attribute-name": "location",\r
825                   "attribute-value": {\r
826                     "string-value": "openflow:1"\r
827                   },\r
828                   "attribute-match-pattern": "equal"\r
829                 }\r
830               ],\r
831               "virtual-port": [\r
832                 {\r
833                   "port-id": "6285cebd-5d4a-4a1d-b732-20470240547a",\r
834                   "port-type": "internal"\r
835                 },\r
836                 {\r
837                   "port-id": "e8c938ca-f1d5-450d-a6ca-3cd81119c0ec",\r
838                   "port-type": "internal"\r
839                 },\r
840                 {\r
841                   "port-id": "e427cc5e-93c9-4f5d-adf6-a2dc2b50e57c",\r
842                   "external-ip-prefixes": {},\r
843                   "port-type": "external",\r
844                   "physical-resource-requirement": [\r
845                     {\r
846                       "attribute-name": "location",\r
847                       "attribute-value": {\r
848                         "string-value": "openflow:1:1"\r
849                       },\r
850                       "attribute-match-pattern": "equal"\r
851                     }\r
852                   ]\r
853                 }\r
854               ]\r
855             },\r
856             {\r
857               "node-id": "02f661f4-4097-4d2d-8986-5c17e74429ad",\r
858               "node-type": "vrouter",\r
859               "physical-resource-requirement": [\r
860                 {\r
861                   "attribute-name": "location",\r
862                   "attribute-value": {\r
863                     "string-value": "openflow:3"\r
864                   },\r
865                   "attribute-match-pattern": "equal"\r
866                 }\r
867               ],\r
868               "virtual-port": [\r
869                 {\r
870                   "port-id": "5d0faf77-435c-4c19-a129-db6481aa40a5",\r
871                   "port-type": "internal"\r
872                 },\r
873                 {\r
874                   "port-id": "82712a15-b38f-459c-ae1e-be1e34566a2a",\r
875                   "external-ip-prefixes": {\r
876                     "external-ip-prefix": [\r
877                       "192.168.12.0/24"\r
878                     ]\r
879                   },\r
880                   "port-type": "external",\r
881                   "physical-resource-requirement": [\r
882                     {\r
883                       "attribute-name": "location",\r
884                       "attribute-value": {\r
885                         "string-value": "openflow:3:4"\r
886                       },\r
887                       "attribute-match-pattern": "equal"\r
888                     }\r
889                   ]\r
890                 },\r
891                 {\r
892                   "port-id": "aca59fd4-8958-49e1-a290-a39529a8e699",\r
893                   "port-type": "internal",\r
894                   "bandwidth": 0\r
895                 }\r
896               ]\r
897             }\r
898           ]\r
899         },\r
900         "virtual-arps": {},\r
901         "virtual-links": {\r
902           "virtual-link": [\r
903             {\r
904               "link-id": "7d28e3a4-32bc-4393-b4ac-b5cb3e88bddb",\r
905               "src-node-id": "43429643-c423-4d46-817d-092ac20d3b79",\r
906               "delay": 0,\r
907               "dest-port-id": "a086ba37-a6b7-490a-a3cb-27a31378e096",\r
908               "metric": 2,\r
909               "bandwidth": 0,\r
910               "dest-node-id": "ef802514-a373-4f24-a162-0553ffe13f09",\r
911               "src-port-id": "6c494b58-fabf-48f7-8907-43850cb4607a"\r
912             },\r
913             {\r
914               "link-id": "cdf567ba-f523-4ac1-a240-4db08bdc4091",\r
915               "src-node-id": "ef802514-a373-4f24-a162-0553ffe13f09",\r
916               "delay": 0,\r
917               "dest-port-id": "6c494b58-fabf-48f7-8907-43850cb4607a",\r
918               "metric": 2,\r
919               "bandwidth": 0,\r
920               "dest-node-id": "43429643-c423-4d46-817d-092ac20d3b79",\r
921               "src-port-id": "a086ba37-a6b7-490a-a3cb-27a31378e096"\r
922             },\r
923             {\r
924               "link-id": "c7f45b8c-a4eb-4b8c-9ecd-2330d9b61d36",\r
925               "src-node-id": "7f41bc57-f4ee-42cc-8fac-f25bda374be9",\r
926               "delay": 0,\r
927               "dest-port-id": "6208bb8d-1489-4aec-bf21-8702d8f69951",\r
928               "metric": 2,\r
929               "bandwidth": 0,\r
930               "dest-node-id": "ef802514-a373-4f24-a162-0553ffe13f09",\r
931               "src-port-id": "e8c938ca-f1d5-450d-a6ca-3cd81119c0ec"\r
932             },\r
933             {\r
934               "link-id": "9957beb9-e9a6-47fb-8c94-9be6d56bd427",\r
935               "src-node-id": "ef802514-a373-4f24-a162-0553ffe13f09",\r
936               "delay": 0,\r
937               "dest-port-id": "e8c938ca-f1d5-450d-a6ca-3cd81119c0ec",\r
938               "metric": 2,\r
939               "bandwidth": 0,\r
940               "dest-node-id": "7f41bc57-f4ee-42cc-8fac-f25bda374be9",\r
941               "src-port-id": "6208bb8d-1489-4aec-bf21-8702d8f69951"\r
942             },\r
943             {\r
944               "link-id": "20cd9c28-483e-4703-8adb-43326799c9a2",\r
945               "src-node-id": "7f41bc57-f4ee-42cc-8fac-f25bda374be9",\r
946               "delay": 0,\r
947               "dest-port-id": "5d0faf77-435c-4c19-a129-db6481aa40a5",\r
948               "metric": 1,\r
949               "bandwidth": 0,\r
950               "dest-node-id": "02f661f4-4097-4d2d-8986-5c17e74429ad",\r
951               "src-port-id": "6285cebd-5d4a-4a1d-b732-20470240547a"\r
952             },\r
953             {\r
954               "link-id": "82937d51-52b6-4334-8fe4-eac541e97684",\r
955               "src-node-id": "02f661f4-4097-4d2d-8986-5c17e74429ad",\r
956               "delay": 0,\r
957               "dest-port-id": "6285cebd-5d4a-4a1d-b732-20470240547a",\r
958               "metric": 1,\r
959               "bandwidth": 0,\r
960               "dest-node-id": "7f41bc57-f4ee-42cc-8fac-f25bda374be9",\r
961               "src-port-id": "5d0faf77-435c-4c19-a129-db6481aa40a5"\r
962             },\r
963             {\r
964               "link-id": "39ded017-fed2-41f8-b709-ae102ebd015d",\r
965               "src-node-id": "02f661f4-4097-4d2d-8986-5c17e74429ad",\r
966               "delay": 0,\r
967               "dest-port-id": "41a4e6b1-019e-456c-bd99-8fc5f60c3a29",\r
968               "metric": 1,\r
969               "bandwidth": 0,\r
970               "dest-node-id": "43429643-c423-4d46-817d-092ac20d3b79",\r
971               "src-port-id": "aca59fd4-8958-49e1-a290-a39529a8e699"\r
972             },\r
973             {\r
974               "link-id": "3b9cdd19-0c5e-4a99-ad48-a323e949a9a3",\r
975               "src-node-id": "43429643-c423-4d46-817d-092ac20d3b79",\r
976               "delay": 0,\r
977               "dest-port-id": "aca59fd4-8958-49e1-a290-a39529a8e699",\r
978               "metric": 1,\r
979               "bandwidth": 0,\r
980               "dest-node-id": "02f661f4-4097-4d2d-8986-5c17e74429ad",\r
981               "src-port-id": "41a4e6b1-019e-456c-bd99-8fc5f60c3a29"\r
982             }\r
983           ]\r
984         },\r
985         "user-id": "af4fc2be-e3f4-4388-a8ef-3aabae872f2b",\r
986         "virtual-routes": {},\r
987         "virtual-paths": {\r
988           "virtual-path": [\r
989             {\r
990               "path-id": "9e29b1b5-1627-488d-a5b4-8fe221235493",\r
991               "virtual-link": [\r
992                 {\r
993                   "link-id": "82937d51-52b6-4334-8fe4-eac541e97684",\r
994                   "order": 0\r
995                 }\r
996               ],\r
997               "bandwidth": 0\r
998             },\r
999             {\r
1000               "path-id": "ff6042a3-bdfa-4f0e-8b17-336b3e2f3ecb",\r
1001               "virtual-link": [\r
1002                 {\r
1003                   "link-id": "cdf567ba-f523-4ac1-a240-4db08bdc4091",\r
1004                   "order": 0\r
1005                 }\r
1006               ],\r
1007               "bandwidth": 0\r
1008             },\r
1009             {\r
1010               "path-id": "a12799b8-523d-4ab2-8fbf-f356c5ad52eb",\r
1011               "virtual-link": [\r
1012                 {\r
1013                   "link-id": "c7f45b8c-a4eb-4b8c-9ecd-2330d9b61d36",\r
1014                   "order": 0\r
1015                 }\r
1016               ],\r
1017               "bandwidth": 0\r
1018             }\r
1019           ]\r
1020         }\r
1021       }\r
1022     ]\r
1023   }\r
1024 }\r
1025 var MappingJson={\r
1026   "intent-vn-mapping-results": {\r
1027     "user-intent-vn-mapping": [\r
1028       {\r
1029         "user-id": "af4fc2be-e3f4-4388-a8ef-3aabae872f2b",\r
1030         "intent-vn-mapping-result": [\r
1031           {\r
1032             "intent-id": "94a6fb90-b425-4ffd-9515-c0684aa4c37f",\r
1033             "intent-type": "node",\r
1034             "virtual-resource": [\r
1035               {\r
1036                 "virtual-resource-id": "fa9a6915-b6d9-4248-87c4-3237bddd4489",\r
1037                 "parent-virtual-resource-entity-id": "43429643-c423-4d46-817d-092ac20d3b79",\r
1038                 "virtual-resource-type": "vport",\r
1039                 "order": 0,\r
1040                 "virtual-resource-entity-id": "1f0bf4a0-6857-47ec-b2af-2104ef1d0c79"\r
1041               }\r
1042             ]\r
1043           },\r
1044           {\r
1045             "intent-id": "b46cfa7f-93a3-43f4-ac20-09307c75feca",\r
1046             "intent-type": "node",\r
1047             "virtual-resource": [\r
1048               {\r
1049                 "virtual-resource-id": "460f3011-6f1b-46d8-9fe7-0d5576ff592d",\r
1050                 "parent-virtual-resource-entity-id": "02f661f4-4097-4d2d-8986-5c17e74429ad",\r
1051                 "virtual-resource-type": "vport",\r
1052                 "order": 0,\r
1053                 "virtual-resource-entity-id": "82712a15-b38f-459c-ae1e-be1e34566a2a"\r
1054               }\r
1055             ]\r
1056           },\r
1057           {\r
1058             "intent-id": "7175bac3-b785-2278-90ed-613480e354e8",\r
1059             "intent-type": "connection",\r
1060             "virtual-resource": [\r
1061               {\r
1062                 "virtual-resource-id": "0395de51-d926-4f1f-ba25-5977f1490d2e",\r
1063                 "virtual-resource-type": "vlink",\r
1064                 "order": 0,\r
1065                 "virtual-resource-entity-id": "39ded017-fed2-41f8-b709-ae102ebd015d"\r
1066               },\r
1067               {\r
1068                 "virtual-resource-id": "b303592e-f379-470f-af6f-c28937969bc3",\r
1069                 "virtual-resource-type": "vlink",\r
1070                 "order": 0,\r
1071                 "virtual-resource-entity-id": "3b9cdd19-0c5e-4a99-ad48-a323e949a9a3"\r
1072               }\r
1073             ]\r
1074           },\r
1075           {\r
1076             "intent-id": "619ee3bb-1e40-480f-b0fa-a331820a5518",\r
1077             "intent-type": "operation",\r
1078             "virtual-resource": [\r
1079               {\r
1080                 "virtual-resource-id": "eb289733-18c8-4601-8544-25e9f56045d0",\r
1081                 "parent-virtual-resource-entity-id": "ef802514-a373-4f24-a162-0553ffe13f09",\r
1082                 "virtual-resource-type": "vport",\r
1083                 "order": 3,\r
1084                 "virtual-resource-entity-id": "32ddfaa1-1dd8-434a-8479-362d592521d1"\r
1085               },\r
1086               {\r
1087                 "virtual-resource-id": "11ee03c9-3bf6-421b-b783-2524fca560fd",\r
1088                 "virtual-resource-type": "vpath",\r
1089                 "order": 2,\r
1090                 "virtual-resource-entity-id": "a12799b8-523d-4ab2-8fbf-f356c5ad52eb"\r
1091               },\r
1092               {\r
1093                 "virtual-resource-id": "2c9b5484-bc1f-410e-9089-ac2ed0e74842",\r
1094                 "virtual-resource-type": "vpath",\r
1095                 "order": 4,\r
1096                 "virtual-resource-entity-id": "ff6042a3-bdfa-4f0e-8b17-336b3e2f3ecb"\r
1097               },\r
1098               {\r
1099                 "virtual-resource-id": "31d34ef8-08a3-45b2-af7c-31c2fff126e2",\r
1100                 "parent-virtual-resource-entity-id": "7f41bc57-f4ee-42cc-8fac-f25bda374be9",\r
1101                 "virtual-resource-type": "vport",\r
1102                 "order": 1,\r
1103                 "virtual-resource-entity-id": "e427cc5e-93c9-4f5d-adf6-a2dc2b50e57c"\r
1104               },\r
1105               {\r
1106                 "virtual-resource-id": "80cfeef9-eb82-4f72-a1b0-852964d0f236",\r
1107                 "virtual-resource-type": "vpath",\r
1108                 "order": 0,\r
1109                 "virtual-resource-entity-id": "9e29b1b5-1627-488d-a5b4-8fe221235493"\r
1110               }\r
1111             ]\r
1112           },\r
1113           {\r
1114             "intent-id": "c2cd9de6-ab25-4d3f-bff2-c4d785a41995",\r
1115             "intent-type": "node",\r
1116             "virtual-resource": [\r
1117               {\r
1118                 "virtual-resource-id": "31d34ef8-08a3-45b2-af7c-31c2fff126e2",\r
1119                 "parent-virtual-resource-entity-id": "7f41bc57-f4ee-42cc-8fac-f25bda374be9",\r
1120                 "virtual-resource-type": "vport",\r
1121                 "order": 0,\r
1122                 "virtual-resource-entity-id": "e427cc5e-93c9-4f5d-adf6-a2dc2b50e57c"\r
1123               }\r
1124             ]\r
1125           },\r
1126           {\r
1127             "intent-id": "41ee9aad-5f61-469d-99a9-e691d2a1de05",\r
1128             "intent-type": "node",\r
1129             "virtual-resource": [\r
1130               {\r
1131                 "virtual-resource-id": "eb289733-18c8-4601-8544-25e9f56045d0",\r
1132                 "parent-virtual-resource-entity-id": "ef802514-a373-4f24-a162-0553ffe13f09",\r
1133                 "virtual-resource-type": "vport",\r
1134                 "order": 2,\r
1135                 "virtual-resource-entity-id": "32ddfaa1-1dd8-434a-8479-362d592521d1"\r
1136               },\r
1137               {\r
1138                 "virtual-resource-id": "11ee03c9-3bf6-421b-b783-2524fca560fd",\r
1139                 "virtual-resource-type": "vpath",\r
1140                 "order": 1,\r
1141                 "virtual-resource-entity-id": "a12799b8-523d-4ab2-8fbf-f356c5ad52eb"\r
1142               },\r
1143               {\r
1144                 "virtual-resource-id": "31d34ef8-08a3-45b2-af7c-31c2fff126e2",\r
1145                 "parent-virtual-resource-entity-id": "7f41bc57-f4ee-42cc-8fac-f25bda374be9",\r
1146                 "virtual-resource-type": "vport",\r
1147                 "order": 0,\r
1148                 "virtual-resource-entity-id": "e427cc5e-93c9-4f5d-adf6-a2dc2b50e57c"\r
1149               }\r
1150             ]\r
1151           },\r
1152           {\r
1153             "intent-id": "a5a96dc7-51dd-44a5-802b-7e67a309fb36",\r
1154             "intent-type": "node",\r
1155             "virtual-resource": [\r
1156               {\r
1157                 "virtual-resource-id": "eb289733-18c8-4601-8544-25e9f56045d0",\r
1158                 "parent-virtual-resource-entity-id": "ef802514-a373-4f24-a162-0553ffe13f09",\r
1159                 "virtual-resource-type": "vport",\r
1160                 "order": 0,\r
1161                 "virtual-resource-entity-id": "32ddfaa1-1dd8-434a-8479-362d592521d1"\r
1162               }\r
1163             ]\r
1164           }\r
1165         ],\r
1166         "virtual-network-id": "af4fc2be-e3f4-4388-a8ef-3aabae872f2b"\r
1167       }\r
1168     ]\r
1169   }\r
1170 }