summaryrefslogtreecommitdiffstats
path: root/ueb-listener/src
AgeCommit message (Collapse)AuthorFilesLines
2020-12-01Migrate sli-northbound repoJessica Wagantall39-6169/+0
Migrate sli-northbound repo files into new directory "northbound". Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2020-05-18Change log4j2 configurationDan Timoney2-37/+26
Changed log4j2 configuration from using properties files to using XML, which corrected the issue we were seeing with log files being created but empty. Also updated sdc.client.version to use released version 1.4.2 instead of 1.4.2-SNAPSHOT, which no longer exists - causing a compile error. Change-Id: I7040453ccbc3b3fd246a07fa3287c7d4d331fb34 Issue-ID: SDNC-1167 Signed-off-by: Dan Timoney <dtimoney@att.com>
2019-11-07UEB Listener Final cleanup of deprecated sdc-tosca parser APIslalena.aria12-164/+130
Changes made: Replace references to all deprecated sdc-tosca parser APIs and replace with Entity-based equivalent. Changes are primarily in SdncBaseModel and junit test files. Issue-ID: CCSDK-1880 Change-Id: I5d7f12cdbebcfcb7d2487b6474cd7eb92eb32b9b Signed-off-by: lalena.aria <lalena.aria@att.com>
2019-10-22UEB Listener SdncBaseModel add extractValue for CapabilityAssignmentlalena.aria1-0/+17
Changes made: Add UEB Listener SdncBaseModel add extractValue for extracting properties on CapabilityAssignment objects. Issue-ID: CCSDK-1820 Change-Id: I10bbced5e9279bc8ef2bf48a87b2e2de0cb74942 Signed-off-by: lalena.aria <lalena.aria@att.com>
2019-09-17Migrate SdncVFModel to getEntitylalena.aria3-64/+70
Changes made: Replace deprecated APIs with getEntity for processing VF nodes in a model. Replace nodeTemplate with entityDetails in SdncVFModel. Corresponding changes in SdncVFModelTest. Issue-ID: CCSDK-1425 Change-Id: I2175af818c80f4526e0a57a196d03c9fba73bdbf Signed-off-by: lalena.aria <lalena.aria@att.com>
2019-08-15ASDC lib version updates and 2 bug fixeslalena.aria2-3/+3
Changes made: Added remove dots to normalized VF name in SdncVFModel.insertVFModuleData. Fixed path to use_ipv4 and use_ipv6 in SdncNodeModel. Issue-ID: CCSDK-1424 Change-Id: Ib60fb652ee695025a6b505b750667c9c8ff1ab2d Signed-off-by: lalena.aria <lalena.aria@att.com>
2019-08-09Use getEntity to populate Complex Resource-Related tableslalena.aria10-308/+355
Changes made: Clean up in SdncBaseModel for unused methods. Fixes in SdncGroupModel. Convert SdncNodeModel to entity. Corrected logging in SdncVFCModel. Corresponding Group-related and logging fixes in SdncVFModel. Corresponding SdncBaseModel changes for getEntity migration. Corresponding junit changes for getEntity migration. Issue-ID: CCSDK-1578 Change-Id: Ic7f7ec38325aeddcad2d86c8f8425ec825512714 Signed-off-by: lalena.aria <lalena.aria@att.com>
2019-07-22Use getEntity to populate Group-Related tableslalena.aria4-25/+108
Changes made: Convert SdncGroupModel to entity. Convert SdncVFModel.insertVFCInstanceGroupData to entity. Corresponding SdncBaseModel changes for getEntity migration. Corresponding junit changes for getEntity migration. Issue-ID: CCSDK-1501 Change-Id: I8a8938dc1b1e7bf37212799277aef60ffff5edb1 Signed-off-by: lalena.aria <lalena.aria@att.com>
2019-07-09Use getEntity to populate Policy-Related tableslalena.aria5-218/+126
Changes made: Update SdncBaseModel policy data methods to use getEntity. Update SdncVFModel to call updated SdncBaseModel policy data methods. Minor changes in SdncServiceModel.java. Corresponding junit changes for getEntity migration. Issue-ID: CCSDK-1456 Change-Id: Idf000bb48896ca4c57d6d1659730e2aea7f49ec4 Signed-off-by: lalena.aria <lalena.aria@att.com>
2019-06-28Logic change for insertion in to VF_MODULE_TO_VFC_MAPPINGlalena.aria2-49/+80
Changes made: Update SdncVFModel.insertVFModuleData to insert only CVFCs that contain VFC. Add check for empty and string null in SdncBaseModel extractValue methods. Issue-ID: CCSDK-1442 Change-Id: I058154e2e64e7123a13be5542021e7ca0187afe0 Signed-off-by: lalena.aria <lalena.aria@att.com>
2019-06-14Use getEntity to populate VFC and AR tablesAria, Lalena (la505a)8-270/+401
Changes made: Update SdncARModel to use IEntityDetails instead of NodeTemplate. Update SdncVFCModel to use IEntityDetails instead of Group. Small fixes in SdncVFModuleModel. Corresponding junit changes for getEntity migration. Issue-ID: CCSDK-1367 Change-Id: Ifaf57e9fb22ef87be80bad39948f07bb0a78a6bc Signed-off-by: lalena.aria <lalena.aria@att.com>
2019-05-20Use getEntity to populate VF Module tablesAgarwal, Ruchira (ra1926)5-36/+127
Changes made: Update SdncVFModel.insertVFModuleData to use getEntity. Update SdncVFModule to use IEntityDetails instead of Group. Issue-ID: CCSDK-1347 Change-Id: I319d4b56b7d1e9bfb6a2d7601a24cd5c192477d7 Signed-off-by: Aria, Lalena (la505a) <lalena.aria@att.com>
2019-03-13Use getEnitity API for ingestion of TOSCA PNFAria, Lalena (la505a)4-0/+329
Changes made: Update SdncUebCallback.processToscaCsar to ingest PNF entities. Add methods in SdncBaseModel.java to support processing of IEntityDetails. Add SdncPNFModel.java to populate VF_MODEL with PNF data. Add SdncPNFModelTest.java junit coverage. Change-Id: I9a82a94e8198d629395a60779f74178e4f8f065e Issue-ID: SDNC-675 Signed-off-by: Aria, Lalena (la505a) <lalena.aria@att.com>
2019-03-05Improve ueb-listener test coverageTimoney, Dan (dt5972)1-0/+1
Add missing initialization code in test case to trigger testing of pre-staged artifacts. Change-Id: I707ad708e461867b1dea79e11df13460262b6818 Issue-ID: CCSDK-1124 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-02-26Use getEntity to populate network_roleUbuntu2-29/+68
Changes made: Update sdc-tosca version to 1.5.0. Replace getCpListByVf with equivalent getEntity call in SdncVFModel.java. Replace policy.getMetaData with getMetaDataObj to work around parser issue. Change-Id: I1d972f75cc5ca1c8dc0e5d58880a3bb306608ca2 Issue-ID: CCSDK-1089 Signed-off-by: Ubuntu <lalena.aria@att.com>
2018-12-28Merge "Sonar fix: SdncGroupModel.java"Dan Timoney1-2/+5
2018-12-28Merge "Sonar fix: SdncVFModuleModel.java"Dan Timoney1-5/+1
2018-12-28Merge "Sonar fix: SdncUebConfiguration.java"Dan Timoney1-12/+12
2018-12-21Sonar fix: SdncGroupModel.javaArundathi Patil1-2/+5
Fixed sonar issues/code-smells across this file Issue-ID: CCSDK-865 Change-Id: I29a2badf731506c4abfa908345ccc72c465c8fb0 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-12-20Sonar fix: SdncVFModuleModel.javaArundathi Patil1-5/+1
Fixed sonar issues/code-smells across this file Issue-ID: CCSDK-867 Change-Id: I20c5214ce9ab3c2821e58b0c6e2530a0881ccc1d Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-12-20Sonar fix: SdncUebConfiguration.javaArundathi Patil1-12/+12
Fixed sonar issues/code-smells across this file Issue-ID: CCSDK-866 Change-Id: Icac8e0347d068902217e813a302db69b1bf5cc47 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-12-20Sonar fix: SdncArtifactMap.javaArundathi Patil1-14/+15
Fixed sonar issues/code-smells across this file Issue-ID: CCSDK-863 Change-Id: I8c471ab3cdca84427fe88f33a82117200d916b3d Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-12-18Sonar fix: SdncARModel.javaArundathi Patil1-2/+2
Fixed sonar issues/code-smells across this file Issue-ID: CCSDK-855 Change-Id: I5aa4859f2b30fb1efadd6d772cc5d80e00281c42 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-11-27Update sdc-tosca version to 1.4.7lalena.aria3-4/+2
Changes made: Update sdc-tosca version to 1.4.7. Replace org.onap.sdc.tosca.parser.impl.SdcTypes with org.onap.sdc.tosca.parser.enums.SdcTypes. Replace getNodeTemplatePropertyAsObject with getNodeTemplatePropertyValueAsObject. Change-Id: I9482cad49e2baae1c1383afabff9377c72441246 Issue-ID: CCSDK-758 Signed-off-by: lalena.aria <lalena.aria@att.com>
2018-11-19Merge "Add logic for ingesting related_network_role data"Dan Timoney4-3/+129
2018-11-19Merge "Replace logic for subinterface_indicator ingestion"Dan Timoney1-3/+12
2018-11-06Add logic for ingesting related_network_role datalalena.aria4-3/+130
Changes made: Add ingestion for related_network_role data at VL, FV and VFC. Add ingestion for trunk_network_indicator on VL. Fix ATTRIBUTE_VALUE_PAIR insertion for VFC Instance Group properties. Change-Id: Ifd46bad5963a430ed55aacad369ab64b723a11fd Issue-ID: CCSDK-649 Signed-off-by: lalena.aria <lalena.aria@att.com>
2018-11-06Fix misplaced ifTimoney, Dan (dt5972)1-33/+26
Updated main loop of ueb-listener to recreate client on each iteration rather than using client created outside loop. Change-Id: I5c5b9f26e472dfbffefdd49a870a293159f72b10 Issue-ID: SDNC-472 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2018-11-06Replace logic for subinterface_indicator ingestionlalena.aria1-3/+12
Changes made: Replace ingestion logic for VFC_TO_NETWORK_ROLE_MAPPING.subinterface_indicator with alternate logic suggested by ASDC. Change-Id: Ied21e9361091c3fe4c05c6d9a2ee35c6491a7e10 Issue-ID: CCSDK-630 Signed-off-by: lalena.aria <lalena.aria@att.com>
2018-11-02Explicitly exit on timeoutTimoney, Dan (dt5972)1-3/+10
Previously, when timeout occurs trying to connect successfully to SDC, code just dropped out of loop in main() method, expecting to exit. However, if the SDC client left any threads hanging, that might not cause process to exit. Instead, process should explicitly exit via System.exit(). Change-Id: I28316550cbfc2bbddeaadf080c0afa52a1eae350 Issue-ID: SDNC-472 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2018-10-31Fix error handlingTimoney, Dan (dt5972)1-2/+16
Recreate client objects after failure is returned by SDC before retrying. Change-Id: Ib165fc1220a010a0443a7dab4014aaba8c9f29f8 Issue-ID: SDNC-472 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2018-10-09Fix UEB client error handlingTimoney, Dan (dt5972)1-1/+7
Changed ueb-listener to retry start of client if it returns failure Change-Id: Ieda78615a38925824cb78d63939da00818bf4452 Issue-ID: SDNC-472 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2018-09-17VF Module ingestion add and parser vers updatelalena.aria1-2/+2
Changes made: Add vf_customization_uuid and vf_module_label in VF Module ingestion. Update sdc-tosca dependency version to 1.4.3 in pom.xml. Change-Id: I5b03e8ff72a74448901f1d5f6d9ed8b7688a6f15 Issue-ID: CCSDK-540 Signed-off-by: lalena.aria <lalena.aria@att.com>
2018-08-17Increase coverage and qualityGanesh Chandrasekaran1-28/+36
Issue-ID: CCSDK-470 Change-Id: Id847c9a79af795dd80a5fc22341ed2e385e53943 Signed-off-by: Ganesh Chandrasekaran <ganesh.c@samsung.com>
2018-07-30Add external policy ingestion for VF nodeslalena.aria2-34/+101
Changes made: Added SdncBaseModel.insertPolicyData for VF nodes. Added call to insertPolicyData from VF node ingestion. Change-Id: I0df1217352354068f11b0cc01923b564c730a149 Issue-ID: CCSDK-404 Signed-off-by: lalena.aria <lalena.aria@att.com>
2018-07-25Merge "Fix sonar issues"Dan Timoney1-17/+9
2018-07-25Fix sonar issuesParshad Patel1-17/+9
Fix use try-with-resources issues in ccsdk/sli/northbound Issue-ID: CCSDK-332 Change-Id: Ibc61e6b3ec81e774556172c63c0ca062b6bd6a26 Signed-off-by: Parshad Patel <pars.patel@samsung.com>
2018-07-24Adding junits for refactored UEB Listenerlalena.aria8-45/+343
Changes made: Added null check in SdncBaseModel.java Cleaned up in SdncVFCModel.java Added tests in SdncARModelTest.java, SdncNodeModelTest and SdncVFCModelTest Added files SdncGroupModelTest, SdncServiceModelTest and SdncVFModelTest Change-Id: If0261c94d67a61b0b19db51cbbbff7ae32912d06 Issue-ID: CCSDK-360 Signed-off-by: lalena.aria <lalena.aria@att.com>
2018-07-19Refactor for CCSDK UEB Listenerlalena.aria15-353/+1930
Changes made: Moved DB insertions into model classes. Added SdncGroupModel object. Added policy ingestion in SdncBaseModel. Cleanup in SdncUebCallback. Changed sdc.tosca.version to 1.3.5 in pom.xml. Issue-ID: CCSDK-360 Change-Id: If965c38275a1dc7fc63847d3aa944aed1a6bd1f9 Signed-off-by: lalena.aria <lalena.aria@att.com>
2018-07-10Sonar issue fix blocker, criticalArindam Mondal1-4/+2
Issue-ID: CCSDK-332 Change-Id: I8741cb5bf68d71f0376105d2b1683ac05534a001 Signed-off-by: Arindam Mondal <arind.mondal@samsung.com>
2018-05-25Update ueb-listener VF Model extractionlalena.aria1-2/+2
Changes made: Changed the location of extraction for ecomp_generated_naming when populating VF_MOEL table. Change-Id: I14982b4081013702c5e0023205363015199459f6 Issue-ID: SDNC-325 Signed-off-by: lalena.aria <lalena.aria@att.com>
2018-05-10Merge "Add mapping for vm_type_tag"Dan Timoney1-5/+8
2018-05-09Add mapping for vm_type_tagTimoney, Dan (dt5972)1-5/+8
If vm_type is not found in CSAR, use vm_type_tag value instead. Change-Id: Ifd73029446d465aad2d9d995559be837f29b97a4 Issue-ID: SDNC-305 Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
2018-05-08Remove unneeded document from csarTimoney, Dan (dt5972)1-0/+0
Removed unnecessary document with proprietary marking from CSAR test file. Change-Id: I75e3ca5ab75f80bcd9fc21fb9460d833a3c9edb7 Issue-ID: CCSDK-270 Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
2018-03-28Update versions to resolve security issuesTimoney, Dan (dt5972)16-65/+81
Update versions of sdc distribution client and jackson to address security issues. Issue-ID: CCSDK-164 Change-Id: Id02d879e87bb1a957968482578818928b6e3c281 Signed-off-by: Timoney, Dan (dt5972) <dt5972@att.com>
2018-03-28coverage sli-northboundJeremy Wolf5-1/+207
adding junit test files for AsdcApiSliClient, AsdcApiUtil, DataChangeClient, SdncFlatJsonDmaapConsumer, SdncARModel, SdncNodeModel, SdncVFCModel, SdncVFModuleModel, SdncUebCallback Change-Id: Ia7fb307b84957292f9080654c7ae31992434317f Issue-ID: CCSDK-230 Signed-off-by: Jeremy Wolf <jw720x@us.att.com>
2018-03-28coverage SdncAaiDmaapConsumershashikanth.vh1-0/+0
Coverage improvement for SdncAaiDmaapConsumer https://jira.onap.org/browse/CCSDK-213?jql=project%20%3D%20CCSDK%20AND%20text%20~%20coverage Issue-ID: CCSDK-213 Change-Id: Icc9af3a9f27d4bae543525b5651d1f6485ef8857 Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
2018-03-27SdncOdlConnection coverageshashikanth.vh1-0/+45
Coverage improvement for SdncOdlConnection https://jira.onap.org/browse/CCSDK-213?jql=project%20%3D%20CCSDK%20AND%20text%20~%20coverage Issue-ID: CCSDK-213 Change-Id: I8045722de77e8884be485bd6f1ed2243c08d2d2b Signed-off-by: shashikanth.vh <shashikanth.vh@huawei.com>
2018-01-09Removed of unused parameterprakash.e1-6/+2
*unused parameter and unused function is removed Change-Id: Ibf0f72d2948ad27313967ecadfb54f2a2bf0060b Issue-ID: CCSDK-151 Signed-off-by: prakash.e <prakash.e@huawei.com>
2018-01-09Removal of unused variablesprakash.e1-4/+2
*Romoved unused variables and code changes for performance improvement Change-Id: Ibe1993b750653d24379ffcc3638b71f6cefcaa6b Issue-ID: CCSDK-151 Signed-off-by: prakash.e <prakash.e@huawei.com>