Notifications

83 views

Description

Network Switch Pattern throwing JAVASCRIPT_CODE_FAILURE: Caused by error in Ad hoc script 'EvalClosure-Normalize MAC on nexus results' at line 3 due to incorrect eval code while in debug mode.

Error as seen in debug mode:

Test failed: Failed to set attribute while testing the step due to the following error: JAVASCRIPT_CODE_FAILURE: Caused by error in Ad hoc script 'EvalClosure-Normalize MAC on nexus results' at line 3 1: var rtrn = ''; 2: var currentMAC = dot1dTpFdbTable___dot1dTpFdbAddress; ==> 3: rtrn = currentMAC.replace(/\./g,'');

Steps to Reproduce

> Run discovery on Network Switch pattern and error is reproduced in debug mode

Workaround

The step 35.19. Normalize MAC on nexus results wrong eval and does not match the operation type of "Set Parameter value". It should be "Transform table".

Attached XML has the updated pattern with new step added where the operation is set to "Transform table".


Related Problem: PRB1383328

Seen In

SR - ITOM - CMDB CI Class Models - 201908
SR - ITOM - CMDB CI Class Models - 201909
SR - ITOM - Discovery and Service Mapping - 201908

Fixed In

Paris

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2020-10-04 23:33:24
Published:2020-09-21
sa_pattern_fc811e29db352200868a7c841f961951 (1).xml[View]