aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/main
AgeCommit message (Collapse)AuthorFilesLines
2018-07-25TOSCA Consolidation Data - Refactoring Part 4eleonorali11-412/+467
1) Moving following APIs to relevant Consolidation Data handlers: addNodesGetAttrOut, addNodesGetAttrIn, addOutputParamGetAttrIn 2) Create APIs setNetworkRole, setResourceGroupCount in SubInterfaceConsolidationDataHandler 3) Remove APIs with switch on resource type: - ConsolidationDataUtil getPortTemplateConsolidationData, getComputeTemplateConsolidationData, getSubInterfaceTemplateConsolidationData getNestedTemplateConsolidationData - FunctionTranslationGetAttrImpl getEntityConsolidationData Change-Id: I0490c86ff9804955860eb40ff4be771a77194cc5 Issue-ID: SDC-1330 Signed-off-by: eleonorali <eleonoral@amdocs.com>
2018-07-23Fix zip-slip in openecomp-bePiotr Krysiak1-1/+1
Issue-ID: SDC-1401 Change-Id: I92cf8184ab50cb1d3b1ba2f71eab8f5701e1ee57 Signed-off-by: Piotr Krysiak <piotr.krysiak@nokia.com>
2018-07-15Nested input params appears in MainServiceTemplateeleonorali2-51/+65
When Nested heat belongs to Volume HEAT and Volume Heat was associated to main HEAT (parent) input parameters came from such nested were appear in MainServiceTemplate.yaml (TOSCA) Also these parameters had annotation in nestedServiceTemplate.yaml Change-Id: I46fff53de502c7ec48b6e4c26087121be89dd0a1 Issue-ID: SDC-1498 Signed-off-by: eleonorali <eleonoral@amdocs.com>
2018-06-27TOSCA Consolidation Data - Refactoring Part 3eleonorali4-121/+131
- Add Missing UTs for refactored code - Refactor APIs: - addVolumeToConsolidationData - addGroupIdToConsolidationData Change-Id: I83dedcbdf9715c6f72faa5fc242e76ea10efe386 Issue-ID: SDC-1330 Signed-off-by: eleonorali <eleonoral@amdocs.com>
2018-06-20VLAN Tagging - Display naming convention warningojasdubey3-117/+26
Vlan tagging HEAT validation doesn't show appropriate warning when naming convention is not followed Change-Id: I98d998ac425a66f0f0b362aecd5da6c867c5b7eb Issue-ID: SDC-1431 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
2018-06-13Remove Toggleeleonorali4-15/+2
Remove Toggle for SIROV and VLAN_TAGGING Change-Id: Ia8b883c1f85de24f5c2000654a0926141cc269e8 Issue-ID: SDC-1418 Signed-off-by: eleonorali <eleonoral@amdocs.com>
2018-06-06VFCInstanceGroup is not displayed on VF creationojasdubey1-3/+25
Fixed issue for displaying VFCInstanceGroup for VLAN tagging when naming convention is correct Change-Id: I5ea5c042458603389b1fb2aa6e6f985a7114049b Issue-ID: SDC-1398 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
2018-06-05fix get flat node typeshiria1-1431/+1323
update node type interface update return value to object which include the type hierarchy Change-Id: I97623c7bbad0223a174370d13aabf4c3efe9c21e Issue-ID: SDC-1394 Signed-off-by: shiria <shiri.amichai@amdocs.com>
2018-06-04Refactoring - TOSCA Consolidation Data handlingsiddharth09059-290/+358
Tried to handle class members from within class instead of outside Change-Id: Iee6b396562cdcbd1569dd6ce7b31a205e1de6257 Issue-ID: SDC-1330 Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
2018-05-31TOSCA Consolidation Data - Refactoring Part 2eleonorali2-8/+19
Fix some issues Change-Id: I85183a6a894350985e1d197fa84328071f3a7ce2 Issue-ID: SDC-1330 Signed-off-by: eleonorali <eleonoral@amdocs.com>
2018-05-31Refactor Onboarding Function Translation codeojasdubey11-764/+644
1. Fixed sonar violations and static analysis issues for function translation 2. Refactored methods for code smells Note: The below files are modified to keep successful compilation and will be handled separately in a different commit (i) HeatToToscaUtil (ii) TranslatorHeatToToscaParameterConverter (iii) TranslatorHeatToToscaPropertyConverter Change-Id: I75472c2848d1eb812468e7d6457c8da96d6c0e4e Issue-ID: SDC-1331 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
2018-05-31TOSCA Consolidation Data - Refactoring Part 2eleonorali18-817/+874
Refactor get Compute/Port/Nested/SubInterface Consolidation Data APIs Change-Id: Ibce3abcd766555fe0eeaaf2f728d3a384935877d Issue-ID: SDC-1330 Signed-off-by: eleonorali <eleonoral@amdocs.com>
2018-05-28Refactor Onboarding Translator codeojasdubey17-1667/+1690
1. Fixed sonar violations 2. Fixed static analysis issues 3. Refactored methods for code smells 4. Moved log messages to a common place Change-Id: I33725bc51040a2c7683b06b4294dea6f96c425e3 Issue-ID: SDC-1331 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
2018-05-23Refactor Onboarding Translator codeojasdubey13-1569/+1590
1. Fixed sonar violations 2. Fixed static analysis issues 3. Refactored methods for code smells 4. Moved log messages to a common place as per review comments Note: UnifiedCompositionService has been included to ensure successful compilation. The violations of this class will be handled in a separate commit Change-Id: I2a37176e1d5cebc5c32883df2d19f1c602c9d958 Issue-ID: SDC-1331 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
2018-05-17Refactor Onboarding Translator codeojasdubey9-1031/+1004
1. Fixed sonar violations 2. Fixed static analysis issues 2. Refactored methods for code smells Change-Id: I0d33c93156ddfaa43769a98f086e269b43c24cd2 Issue-ID: SDC-1331 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
2018-05-16TOSCA Consolidation Data handling - Refactoringeleonorali8-923/+1463
Create new Interface, Base and Implementation classes for Consolidation Data Handlers Change-Id: I9638a7b57321aca00b458b244b278807a99b25f2 Issue-ID: SDC-1330 Signed-off-by: eleonorali <eleonoral@amdocs.com> Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
2018-05-16Nested Dependency issuessiddharth09053-18/+16
Remove nested depends On connectivity Change-Id: Ic140e88fac74c31200cdd662dcbf6e296183ade3 Issue-ID: SDC-1315 Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
2018-05-15Removed logger.debug(, exception)mojahidi1-17/+7
Removed logger.debug(, exception) from code Change-Id: Ifc3d5947932027c3261c50a8f6275f5034576d60 Issue-ID: SDC-836 Signed-off-by: mojahidi <mojahidul.islam@amdocs.com>
2018-05-14Nested Dependency issuessiddharth09052-141/+88
Remove nested depends On connectivity Change-Id: I65bd9473f879fa72b453c2793f2b2406adde4513 Issue-ID: SDC-1315 Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
2018-05-08Junit Test Failuresiddharth09052-103/+103
Junit test were failing in local due to folder name change in common Change-Id: Ie78e2b8cbe41ce568b3f77928e7dd746d9ed3c95 Issue-ID: SDC-1312 Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
2018-04-30SIROV - add parent heat name for volumeeleonorali2-22/+23
Refactoring - handle Static Analysis Errors/Warnings Change-Id: I66abb24a1f7a2c5bfe018320560a0010e4afd277 Issue-ID: SDC-996 Signed-off-by: eleonorali <eleonoral@amdocs.com>
2018-04-30Rename packages from openecomp to onap.amitjai66-184/+187
This task is all about package name space change also make changes to pom for common module Change-Id: Ie9bda0f958a9a05826c0374830cc9cb7d6d196b6 Issue-ID: SDC-1272 Signed-off-by: amitjai <amitjai@amdocs.com>
2018-04-26Reducing onboarding backend maven build timeGautam Shah1-19/+0
Reducing onboarding backend maven build time Change-Id: Id0178cbf010e46f741f4bff11e14b0801f14d4b8 Issue-ID: SDC-1189 Signed-off-by: GAUTAMS <gautams@amdocs.com>
2018-04-24Fixed create VF for vOTA and vmstore heatsojasdubey1-14/+12
Updated code for handling identical value property 'ip_requirements' from list of list to list of identical value Change-Id: I1c3571f218fcc18ecfb22dd62112e1496109e3fa Issue-ID: SDC-1255 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
2018-04-17SIROV - add parent heat name for volumeeleonorali3-20/+44
SIROV - add parent heat name for parameter came from volume HEAT Change-Id: I5592dc8b292037e740a1d7ac11e7ee0576cc2ec8 Issue-ID: SDC-996 Signed-off-by: eleonorali <eleonoral@amdocs.com>
2018-04-15SIROV - add parent heat name for volumeeleonorali1-36/+35
Refactoring to solve static analysis found issues + fix spelling issue for Requirments String (all issues suggested by Vitaly E.) Change-Id: I2f09d4ab088db7973ba3ff3a71a21bd1c830fad4 Issue-ID: SDC-996 Signed-off-by: eleonorali <eleonoral@amdocs.com>
2018-04-12Subinterface_indicator property issuesiddharth09051-7/+14
It should only be present under port implementation Change-Id: I8b52905c5e5c888cf384bebf1d23168c7906b004 Issue-ID: SDC-1183 Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
2018-04-12Defect 451622: Fix for defect 430981 not correcteleonorali1-234/+236
Refactoring for API names Change-Id: I6b23ddf88752c09af07c9a49c68a042c8cfc9669 Issue-ID: SDC-1203 Signed-off-by: eleonorali <eleonoral@amdocs.com>
2018-04-11Subinterface_indicator property create VF bug fixojasdubey1-1/+3
Added toggle to fix regression bug for create VF when VLAN tagging is not enabled. Change-Id: I7751ae1a7ba48315319b5522cc230ece2f46e84d Issue-ID: SDC-1206 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
2018-04-10Defect 451622: Fix for defect 430981 not correcteleonorali1-56/+88
Only one default ipVersion - version4 should be created Change-Id: I27aad6acdacf66cf48f71f0a17cdd414aa510f93 Issue-ID: SDC-1203 Signed-off-by: eleonorali <eleonoral@amdocs.com>
2018-04-10Evaluate subinterface_indicator propertysiddharth09052-2/+7
Corrected the condition to mark subinterface_indicator true/false Change-Id: I3f21924defbc89a5fcd9a89ffc1ea0d28eec8c36 Issue-ID: SDC-1183 Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
2018-04-04Added new nodes typesiddharth09053-35/+50
Added new nodes type and new property in Port. All test data need to be updated, so file count is much more. Change-Id: Ic21befe8d7feee912fbed1d3eb676488db1fb68c Issue-ID: SDC-1183 Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
2018-03-29VLAN tagging - Support Pattern 1C2ojasdubey1-54/+69
1. Pattern 1C2 vlan tagging code 2. Count property handling 3. Added tests and updated existing test data Change-Id: Idef33b142d415e1c0a9663497eed621f35c2393b Issue-ID: SDC-1174 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
2018-03-28Code change to evaluate Network rolesiddharth09051-29/+32
Code change to evaluate Network Role of Sub interface resource Change-Id: I0e29c0a1512b76b6db569aaf534f5e59868ae715 Issue-ID: SDC-1072 Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
2018-03-27VLAN tagging - Pattern 4 VFC Instance Groupojasdubey5-140/+191
1. Create VFC instance group per sub-interface network role for pattern 4 heats 2. Added tests and updated existing test data Change-Id: Id4f84c5a7dac3adfddde1192947ecaa5502f21df Issue-ID: SDC-1073 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
2018-03-27VLAN tagging - VFC Instance Groupojasdubey12-140/+301
1. Create VFC instance group per sub-interface network role 2. Refactored PortTemplateConsolidationData and its references based on review comments 3. Updated test data after rebase 4. Updated to flatMap based on review comments Change-Id: I423593c5156ecae5eff3a4f2ce8591c85db727cc Issue-ID: SDC-1073 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
2018-03-22Code change to evaluate Network rolesiddharth09052-18/+36
Code change to evaluate Network Role of Sub interface resource Change-Id: I73b1cad7eb15c59153751a77a4bc78101042941d Issue-ID: SDC-1072 Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
2018-03-13Multiple ports (extCP) with wrong network-roleeleonorali1-830/+835
E2E/Internal Defect - multiple ports (extCP) with wrong network-role Change-Id: Ic3896287347978ad3e89ac14fb07916ea201d8fa Issue-ID: SDC-1113 Signed-off-by: eleonorali <eleonoral@amdocs.com>
2018-03-12Refactor port id regextalio1-48/+67
Change port id regex to allow getting ids with or without digits Change-Id: Ic2738c5433c258927caf04bd11dceac9320718c6 Issue-ID: SDC-1093 Signed-off-by: talio <tali.orenbach@amdocs.com>
2018-03-12Port Mirroring: Incorrect Interfaces list(2)eleonorali1-1/+1
Defect 427115 - Port Mirroring: Incorrect Interfaces list - not correct Port Type Change-Id: I5a58f5a0acf9df455d294d2dbc0b84cb2c1e03e2 Issue-ID: SDC-1107 Signed-off-by: eleonorali <eleonoral@amdocs.com>
2018-03-12Support Dual stuck - for difference version (2)eleonorali1-89/+107
E2E Defect 430981 - ip_requirments for multiple ports with difference version wasn't supported Change-Id: If3e93f099900bc078de6da9092b9d1460609e232 Issue-ID: SDC-1096 Signed-off-by: eleonorali <eleonoral@amdocs.com>
2018-03-11Validation of VSP fails with error nullavigaffa2-32/+61
Change-Id: I98bbff6b567932d06d4764ac24bc25984741834c Issue-ID: SDC-1093 Signed-off-by: avigaffa <avi.gaffa@amdocs.com>
2018-03-06Code Change & Junit for verifying Pattern4siddharth09051-7/+51
Simplified the code as per the review comment Change-Id: I4614cf25d743afb54d686934f9faa2a26edf0c89 Issue-ID: SDC-1074 Signed-off-by: siddharth0905 <siddharth.singh4@amdocs.com>
2018-02-28VLAN tagging - Pattern 1A, 1C1ojasdubey24-967/+2044
1. Implementation for supporting VLAN tagging in Pattern 1A and 1C1 heats 2. Updated code for switch case refactor with command design pattern 3. Added unit tests and bug fixes Change-Id: I54938ffd6673f865b4506a890ec8e7b9c54597b1 Issue-ID: SDC-1036 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
2018-02-19VLAN tagging - Added Consolidation Rulesojasdubey3-78/+360
1. Added rules for subinterface consolidation 2. Added new data types for supporting subinterface consolidation 3. Added unit tests 4. Updated license text 5. Updated code based on review comments Change-Id: I7c0d7a4747029c15212c3474280dd8fc6d623ccc Issue-ID: SDC-998 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com> Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
2018-02-11SRIOV - add annotationseleonorali3-302/+369
SRIOV - add annotations to input TOSCA parameter converted from HEAT file (2) Change-Id: Id0b0156730ae64093df42d09e2873de047c13ac9 Issue-ID: SDC-996 Signed-off-by: eleonorali <eleonoral@amdocs.com>
2018-02-08VLAN tagging - Enable first stage translationojasdubey1-17/+10
1. Added toggle for vlan tagging feature 2. Enabled existing translation of feature with toggle 3. Enabled unit tests for the same 4. Deleted unused test data 5. Updated license text 6. Updated code based on review comments Change-Id: I755df4889f18a32061e9d4d1ebec09162b2d8b83 Issue-ID: SDC-998 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
2018-02-04Removed unnecessary log constantsvempo2-5/+7
Removed unnecessary constants associated with logging. Moved remaining constants close to their respective business logic. Change-Id: I3497479a2edcf2c98dca888b2aed52cb2a98e86b Issue-ID: SDC-772 Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
2018-02-01Removed log constants from translator corevempo12-131/+42
Removed constants associated with audit/metrics logging from the business code. Some safe cleanup and refactoring. Change-Id: I95d0fd3e72baf0fe4991f400bfd1bae6eba8009b Issue-ID: SDC-772 Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
2018-01-28Remove MdcDataErrorMessage #2vempo2-10/+0
Change-Id: I8a89538aa31000cf5b04a38a175156ccaba5ed51 Issue-ID: SDC-875 Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>