From 2845424ec93223d2298bded1f60c8006e4acc8ae Mon Sep 17 00:00:00 2001 From: gururajarao79 Date: Thu, 1 Dec 2022 09:31:22 +0000 Subject: dcaegen2-services-pm-mapper incorrectly mapping the measResults onap-gerrit-review: -capitalized-extension Issue-ID: DCAEGEN2-3190 Signed-off-by: gururajarao79 Change-Id: I79376b9493bc38e20f6eb778241dc10de3aa920c --- src/main/resources/templates/org.3GPP.28.532#measData | 7 ++++--- src/main/resources/templates/org.3GPP.32.435#measCollec | 9 +++++---- 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'src/main/resources') diff --git a/src/main/resources/templates/org.3GPP.28.532#measData b/src/main/resources/templates/org.3GPP.28.532#measData index 8f86a78..cfcbb46 100644 --- a/src/main/resources/templates/org.3GPP.28.532#measData +++ b/src/main/resources/templates/org.3GPP.28.532#measData @@ -3,6 +3,7 @@ ============LICENSE_START======================================================= Copyright (C) 2019-2020 Nordix Foundation. Copyright (C) 2021 Samsung Electronics. + Copyright (C) 2023 Deutsche Telekom AG. All rights reserved. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -56,7 +57,7 @@ { "sMeasTypesList":[ <#if measInfo.measType?has_content> - <#list measInfo.measType as measType> + <#list measInfo.measType?sort_by("number(@p)") as measType> "${measType}"<#sep>, <#else> @@ -77,9 +78,9 @@ "suspectFlag": "${measValue.suspect[0]! "false"}", "measResults": [ <#if measValue.r?has_content> - <#list measValue.r as r> + <#list measValue.r?sort_by("number(@p)") as r> { - "p": ${r.@p}, + "p": ${r?index+1}, "sValue": "${r}" }<#sep>, diff --git a/src/main/resources/templates/org.3GPP.32.435#measCollec b/src/main/resources/templates/org.3GPP.32.435#measCollec index 98fdd80..3ea88df 100644 --- a/src/main/resources/templates/org.3GPP.32.435#measCollec +++ b/src/main/resources/templates/org.3GPP.32.435#measCollec @@ -3,6 +3,7 @@ ============LICENSE_START======================================================= Copyright (C) 2019-2020 Nordix Foundation. Copyright (C) 2021 Samsung Electronics. + Copyright (C) 2023 Deutsche Telekom AG. All rights reserved. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -56,7 +57,7 @@ { "sMeasTypesList":[ <#if measInfo.measType?has_content> - <#list measInfo.measType as measType> + <#list measInfo.measType?sort_by("number(@p)") as measType> "${measType}"<#sep>, <#else> @@ -77,9 +78,9 @@ "suspectFlag": "${measValue.suspect[0]! "false"}", "measResults": [ <#if measValue.r?has_content> - <#list measValue.r as r> + <#list measValue.r?sort_by("number(@p)") as r> { - "p": ${r.@p}, + "p": ${r?index+1}, "sValue": "${r}" }<#sep>, @@ -131,4 +132,4 @@ "measDataCollection": <@measDataCollection/> } - \ No newline at end of file + -- cgit 1.2.3-korg