2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 * Copyright © 2017 Amdocs
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END=========================================================
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 import React from 'react';
27 createNodeAttributes: () => {
32 createShapeAttributes: () => {
37 createCircleStyle: () => {
39 fill: 'rgb(98, 102, 104)',
40 stroke: 'rgb(78, 82, 84)',
44 createLinkAttributes: () => {
53 createLineStyle: () => {
55 stroke: 'rgb(217, 218, 218)',
59 createTestCircle: () => {
60 return React.createElement('circle', {
64 fill: 'rgb(255, 255, 255)',
65 stroke: 'rgb(98, 102, 104)',
69 getNodeLinkArray: () => {
72 'aaiEntityNodeDescriptors': {
74 'class': 'aai-entity-node general-node',
92 'class': 'id-type-label',
93 'displayKey': 'itemType',
103 'class': 'id-value-label',
104 'displayKey': 'itemNameValue',
114 'searchedNodeClass': {
115 'class': 'aai-entity-node search-node',
133 'class': 'id-type-label',
134 'displayKey': 'itemType',
144 'class': 'id-value-label',
145 'displayKey': 'itemNameValue',
155 'selectedSearchedNodeClass': {
156 'class': 'aai-entity-node selected-search-node',
174 'class': 'id-type-label',
175 'displayKey': 'itemType',
185 'class': 'id-value-label',
186 'displayKey': 'itemNameValue',
196 'name': 'icon_ellipses',
197 'class': 'node-button',
205 'className': 'node-button',
211 'name': 'icon_triangle_warning',
212 'class': 'node-button',
220 'className': 'node-button',
226 'selectedNodeClass': {
227 'class': 'aai-entity-node selected-node',
245 'class': 'id-type-label',
246 'displayKey': 'itemType',
256 'class': 'id-value-label',
257 'displayKey': 'itemNameValue',
267 'name': 'icon_ellipses',
268 'class': 'node-button',
276 'className': 'node-button',
282 'name': 'icon_triangle_warning',
283 'class': 'node-button',
291 'className': 'node-button',
300 'renderTimeInMs': 4550,
301 'numLinksResolvedSuccessfullyFromCache': 0,
302 'numLinksResolvedSuccessfullyFromServer': 7,
303 'numLinkResolveFailed': 0
306 'id': 'TRINITY-PSERVER',
307 'itemType': 'pserver',
308 'itemNameKey': 'pserver.TRINITY-PSERVER',
309 'itemNameValue': 'TRINITY-PSERVER',
311 'hostname': 'TRINITY-PSERVER',
313 'resource-version': '1455590484'
316 'className': 'selectedSearchedNodeClass',
318 'selfLinkResponseTimeInMs': 628,
319 'relationshipNode': false,
320 'searchTarget': true,
321 'enrichableNode': false,
322 'nodeValidated': true,
327 'itemType': 'complex',
328 'itemNameKey': 'complex.TRINITYSIL',
329 'itemNameValue': 'TRINITYSIL',
332 'postal-code': '07748',
333 'city': 'Middletown',
334 'physical-location-id': 'TRINITYSIL',
335 'resource-version': '1459957457',
336 'street1': 'Trinity',
338 'physical-location-type': 'Trinity',
342 'className': 'generalNodeClass',
344 'selfLinkResponseTimeInMs': 644,
345 'relationshipNode': false,
346 'searchTarget': false,
347 'enrichableNode': false,
348 'nodeValidated': true,
352 'id': 'c385bb3e-6ebd-4898-bc92-792e0ac2db50',
353 'itemType': 'vserver',
354 'itemNameKey': 'vserver.c385bb3e-6ebd-4898-bc92-792e0ac2db50',
355 'itemNameValue': 'c385bb3e-6ebd-4898-bc92-792e0ac2db50',
358 'resource-version': '1475160142',
359 'vserver-name': 'bems0001vm001',
360 'prov-status': 'ACTIVE',
361 'vserver-id': 'c385bb3e-6ebd-4898-bc92-792e0ac2db50',
362 'vserver-name2': 'bems0001vm001bem001-1452',
363 'vserver-selflink': 'TRINITY vserverLink',
364 'is-closed-loop-disabled': 'false'
367 'className': 'generalNodeClass',
369 'selfLinkResponseTimeInMs': 2633,
370 'relationshipNode': false,
371 'searchTarget': false,
372 'enrichableNode': false
375 'id': '7c73d776-001d-4042-a958-37f2e419ed10',
376 'itemType': 'vserver',
377 'itemNameKey': 'vserver.7c73d776-001d-4042-a958-37f2e419ed10',
378 'itemNameValue': '7c73d776-001d-4042-a958-37f2e419ed10',
380 'resource-version': '1477075390',
381 'vserver-name': 'nsbg0001vm002',
382 'prov-status': 'NVTPROV',
383 'vserver-id': '7c73d776-001d-4042-a958-37f2e419ed10',
384 'vserver-name2': 'VM-19631',
385 'vserver-selflink': 'TRINITY vserverLink'
388 'className': 'generalNodeClass',
390 'selfLinkResponseTimeInMs': 2368,
391 'relationshipNode': false,
392 'searchTarget': false,
393 'enrichableNode': false
396 'id': 'fc6be93d-915e-4034-a8f9-463b70130614',
397 'itemType': 'vserver',
398 'itemNameKey': 'vserver.fc6be93d-915e-4034-a8f9-463b70130614',
399 'itemNameValue': 'fc6be93d-915e-4034-a8f9-463b70130614',
401 'resource-version': '1477075398',
402 'vserver-name': 'nsbg0001vm004',
403 'prov-status': 'NVTPROV',
404 'vserver-id': 'fc6be93d-915e-4034-a8f9-463b70130614',
405 'vserver-name2': 'VM-19630',
406 'vserver-selflink': 'TRINITY vserverLink'
409 'className': 'generalNodeClass',
411 'selfLinkResponseTimeInMs': 2621,
412 'relationshipNode': false,
413 'searchTarget': false,
414 'enrichableNode': false
417 'id': '8555c2ed-6818-43c5-8cf5-cd36b0169031',
418 'itemType': 'vserver',
419 'itemNameKey': 'vserver.8555c2ed-6818-43c5-8cf5-cd36b0169031',
420 'itemNameValue': '8555c2ed-6818-43c5-8cf5-cd36b0169031',
422 'resource-version': '1477075396',
423 'vserver-name': 'nsbg0001vm003',
424 'prov-status': 'NVTPROV',
425 'vserver-id': '8555c2ed-6818-43c5-8cf5-cd36b0169031',
426 'vserver-name2': 'VM-19629',
427 'vserver-selflink': 'TRINITY vserverLink'
430 'className': 'generalNodeClass',
432 'selfLinkResponseTimeInMs': 2663,
433 'relationshipNode': false,
434 'searchTarget': false,
435 'enrichableNode': false
439 'id': 'TRINITY-PSERVER_TRINITYSIL',
440 'source': 'TRINITY-PSERVER',
441 'target': 'TRINITYSIL'
443 'id': 'TRINITY-PSERVER_c385bb3e-6ebd-4898-bc92-792e0ac2db50',
444 'source': 'TRINITY-PSERVER',
445 'target': 'c385bb3e-6ebd-4898-bc92-792e0ac2db50'
447 'id': 'TRINITY-PSERVER_7c73d776-001d-4042-a958-37f2e419ed10',
448 'source': 'TRINITY-PSERVER',
449 'target': '7c73d776-001d-4042-a958-37f2e419ed10'
451 'id': 'TRINITY-PSERVER_fc6be93d-915e-4034-a8f9-463b70130614',
452 'source': 'TRINITY-PSERVER',
453 'target': 'fc6be93d-915e-4034-a8f9-463b70130614'
455 'id': 'TRINITY-PSERVER_8555c2ed-6818-43c5-8cf5-cd36b0169031',
456 'source': 'TRINITY-PSERVER',
457 'target': '8555c2ed-6818-43c5-8cf5-cd36b0169031'