Skip to content

Commit

Permalink
Merge pull request #294 from ManasaBM1/ManasaBM1/issue290
Browse files Browse the repository at this point in the history
Resolve delete-ltp-and-dependents forwarding is not being sent when a…
  • Loading branch information
PrathibaJee authored Oct 24, 2023
2 parents e521bb5 + e998d8c commit c7dd124
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions server/service/IndividualServicesService.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const forwardingConfigurationService = require('onf-core-model-ap/applicationPat
const LogicalTerminationPoint = require('onf-core-model-ap/applicationPattern/onfModel/models/LogicalTerminationPoint');
const tcpClientInterface = require('onf-core-model-ap/applicationPattern/onfModel/models/layerProtocols/TcpClientInterface');
const httpClientInterface = require('onf-core-model-ap/applicationPattern/onfModel/models/layerProtocols/HttpClientInterface');
const operationClientInterface = require('onf-core-model-ap/applicationPattern/onfModel/models/layerProtocols/OperationClientInterface');
const onfAttributeFormatter = require('onf-core-model-ap/applicationPattern/onfModel/utility/OnfAttributeFormatter');
const ConfigurationStatus = require('onf-core-model-ap/applicationPattern/onfModel/services/models/ConfigurationStatus');
const LogicalTerminationPointConfigurationStatus = require('onf-core-model-ap/applicationPattern/onfModel/services/models/logicalTerminationPoint/ConfigurationStatus');
Expand Down Expand Up @@ -153,17 +152,11 @@ exports.disregardApplication = async function (body, user, originator, xCorrelat
if (!httpClientUuid) {
return;
}
const operationClientUuid = await operationClientInterface.getOperationClientUuidAsync(httpClientUuid, UPDATE_OPERATION_KEY_OPERATION);

await LogicalTerminationPointService.deleteApplicationLtpsAsync(httpClientUuid);

const cyclicOperationInput = new ForwardingConstructConfigurationInput(FC_CYCLIC_OPERATION_CAUSES_OPERATION_KEY_UPDATES, operationClientUuid);
const linkUpdateNotificationInput = new ForwardingConstructConfigurationInput(FC_LINK_UPDATE_NOTIFICATION_CAUSES_OPERATION_KEY_UPDATES, operationClientUuid);
const forwardingConfigurationInputList = [cyclicOperationInput, linkUpdateNotificationInput];
const forwardingConstructConfigurationStatus = await forwardingConfigurationService.unConfigureForwardingConstructAsync(operationServerName, forwardingConfigurationInputList);

let logicalTerminationPointConfigurationStatus= await LogicalTerminationPointService.deleteApplicationLtpsAsync(httpClientUuid);

let applicationLayerTopologyForwardingInputList = prepareALTForwardingAutomation.getALTUnConfigureForwardingAutomationInputAsync(
forwardingConstructConfigurationStatus
logicalTerminationPointConfigurationStatus
);

forwardingAutomationService.automateForwardingConstructAsync(
Expand Down

0 comments on commit c7dd124

Please sign in to comment.