Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified original-ltp-name (fake) in original-ltp-name (correct) #143

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions server/service/IndividualServicesService.js
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ async function PromptForUpdatingMacTableFromDeviceCausesMacTableBeingRetrievedFr

//STEP 3
async function PromptForUpdatingMacTableFromDeviceCausesLtpUuidBeingTranslatedIntoLtpNameBasedOnMwdi(mountName, body, user, originator, xCorrelator, traceIndicator, customerJourney) {
let additionaResponse;
let additionaResponse = {};
try {

if (body == "LTP-MNGT") {
Expand Down Expand Up @@ -1003,18 +1003,12 @@ async function PromptForUpdatingMacTableFromDeviceCausesLtpUuidBeingTranslatedIn
headers: httpRequestHeader
});

let data = response.data['core-model-1-4:logical-termination-point'][0]['name'];
let data = response.data['ltp-augment-1-0:ltp-augment-pac']['original-ltp-name'];

if (data !== null && data !== undefined) {
// Find element with "value-name" equal to "ltpName"
var desiredItem = data.find(item => item["value-name"] === "ltpName");

// Get the value
var nameLtp = desiredItem ? desiredItem["value"] : undefined;

additionaResponse = {
'egress-ltp': body,
'original-ltp-name': nameLtp
'original-ltp-name': data
};
}
else {
Expand Down Expand Up @@ -1335,7 +1329,7 @@ exports.readCurrentMacTableFromDevice = async function (body, user, originator,
getOriginalLtpName(step3DataArray, step2Data['egress-ltp']),
step2Data['vlan-id'],
step2Data['mac-address'],
"2010-11-20T14:00:00+01:00");
"1111111111");
macAddressArray.push(entry);
});

Expand Down
Loading