aboutsummaryrefslogtreecommitdiffstats
path: root/osdf
AgeCommit message (Collapse)AuthorFilesLines
2020-04-09Fix minor issues in policy interfacekrishnaa961-2/+2
Issue-ID: OPTFRA-731 Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com> Change-Id: I65e12da03b3f3881abda2dd3d1313ebe163fc3ff
2020-04-10Fix bugs in policy retrevialRuoyu Ying1-4/+5
Fix bugs in the payload sent to policy query Issue-ID: OPTFRA-731 Signed-off-by: Ruoyu Ying <ruoyu.ying@intel.com> Change-Id: I7ed833e4daf2eb08c6bf4b998fd61d4182246677 Signed-off-by: Ruoyu Ying <ruoyu.ying@intel.com>
2020-03-23Add functionality to support NSI selectionkrishnaa964-45/+66
Issue-ID: OPTFRA-677 Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com> Change-Id: Ibc51e15fce4692a445df400053060d3a6977b4ce
2020-03-20Add generic conductor interfacekrishnaa965-0/+621
Issue-ID: OPTFRA-715 Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com> Change-Id: I84218ab65e645a90d2ff1c365bdde1e06ab27d2e
2020-03-20fix csit, cleanup dockerfile for osdfvrvarma1-4/+5
Change-Id: Ie3d44592a382ba8e886c2a7544520cbed6971f84 Signed-off-by: vrvarma <vikas.varma@att.com> Issue-ID: OPTFRA-722
2020-03-09Merge "[WIP]Migration to new policy api"Shankaranarayanan Puzhavakath Narayanan2-39/+45
2020-03-10[WIP]Migration to new policy apiRuoyu Ying2-39/+45
*Change retrieval payload send to policy *Change the configs inside common_config Issue-ID: OPTFRA-520 Change-Id: I27a63294cdec3def7d415ed2dcb96e3606d9e21f Signed-off-by: Ruoyu Ying <ruoyu.ying@intel.com>
2020-03-04Adding the generic solver codevrvarma6-13/+60
Add docker file for optim engine Run pods as a non-root user Fix docker tag script Change-Id: If25fe66b839a70e83e35292031a2da012e81fe47 Signed-off-by: vrvarma <vikas.varma@att.com> Issue-ID: OPTFRA-712
2020-02-27Merge "encryption/decryption utility"Vikas Varma3-16/+132
2020-02-27encryption/decryption utilitydhebeha3-16/+132
Change-Id: I1f7d2c6fe66b1ff4341660063203662b507a669a Issue-ID: OPTFRA-700 Signed-off-by: dhebeha <dhebeha.mj71@wipro.com>
2020-02-25Setting the python oparent to 3.0.0 for osdfvrvarma1-11/+12
Change-Id: I333b5be4260d4968d7a9602eccdb8a8e3d99bea9 Signed-off-by: vrvarma <vv8305@att.com> Issue-ID: OPTFRA-686
2020-02-19Add apps folder into the coverage reportsvrvarma5-68/+0
Change-Id: I1c222b6a5cc5bbdc6353ce1b06c03e44917849fd Signed-off-by: vrvarma <vv8305@att.com> Issue-ID: OPTFRA-698
2020-02-14Fix sonarcloud coverage reports issuevrvarma2-2/+3
Change-Id: Ieaf2aac8ed425bdf547f6893262a3285470519d4 Signed-off-by: vrvarma <vv8305@att.com> Issue-ID: OPTFRA-698
2020-01-24Add passthrough attributesvrvarma2-0/+28
Added passthrough attributes in placement request. Current attributes HAS request section changed to filtering_attributes and new passthrough attributes added in HAS request - this one is read from vnf policy passthroughAttributes section. Change-Id: Ic1e9dcafb0aa0ce5c1b4ddcf35d034d457ac7d48 Signed-off-by: vrvarma <vv8305@att.com> Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com> Issue-ID: OPTFRA-611
2019-12-13osdf rearchitecture into apps and libsvrvarma35-2285/+177
Change-Id: I2db2f8e252bd5e60807b2ffabf5a5b193a789f7a Signed-off-by: vrvarma <vv8305@att.com> Issue-ID: OPTFRA-637
2019-11-19Merge "Unique field moved to vnf policy"Shankaranarayanan Puzhavakath Narayanan4-2/+8
2019-11-07Merge "Add onap log spec 1.2 for osdf"Shankaranarayanan Puzhavakath Narayanan13-1394/+92
2019-11-06Add onap log spec 1.2 for osdfvrvarma13-1394/+92
OPTFRA-319 OPTFRA-607 and OPTFRA-629 included in this fix Change-Id: Ieeeaa0417ffa41360d790c01b0ef1404960e6b6a Signed-off-by: vrvarma <vv8305@att.com> Issue-ID: OPTFRA-319
2019-10-30Update Policy config url and passRuoyu Ying1-4/+1
Update the config retrieval uri and authorization keys Issue-ID: OPTFRA-520 Signed-off-by: Ruoyu Ying <ruoyu.ying@intel.com> Change-Id: I694930fcbf2ac2b17c048d0341571a027552576c
2019-10-21Unique field moved to vnf policyLukasz Rajewski4-2/+8
Unique req field was moved from OSDF request to VNF policy -> content -> vnfProperties Change-Id: I96b8a2bb881370cdb8d86b52ad4798e24e98425d Issue-ID: OPTFRA-482 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
2019-07-29List of canidate identifiers supportLukasz Rajewski1-4/+1
List of candidate identifers in required and excluded candidates list now is supported only as a list Issue-ID: OPTFRA-486 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com> Change-Id: I2fdc11bc23239eeb1500c95925f8779da89dfcaf
2019-05-29Fix the pci-opt response to the swagger specs1.3.2vrvarma1-7/+5
Change-Id: I01f4e81563c02ccf6668fd4e39118bc1cf3f9aa8 Signed-off-by: vrvarma <vv8305@att.com> Issue-ID: OPTFRA-508
2019-05-24Fix the oof-osdf to configdb interface bugs1.3.1vrvarma3-4/+8
Change-Id: I41ce7210f108195a83a35db46094e27a88f239fb Signed-off-by: vrvarma <vv8305@att.com> Issue-ID: OPTFRA-508
2019-05-23Update the pciopt request to accept empty anrInputListvrvarma1-1/+1
Change-Id: Ia029867262aede2bd351dd046bc7c1483a408c09 Signed-off-by: vrvarma <vv8305@att.com> Issue-ID: OPTFRA-505
2019-05-13Fix to send num_solution as string to HASX1.3.0Chayal, Avteet (ac229e)1-1/+1
Fix to send num_solution as string to HAS Issue-ID: OPTFRA-497 Change-Id: I5fe509330ccb9e1c97b92ae44cec919ada0f8594 Signed-off-by: Chayal, Avteet (ac229e) <ac229e@att.com>
2019-05-07Fix OSDF input to HAS to use num_solutionChayal, Avteet (ac229e)2-3/+3
Fix OSDF input to HAS to use num_solution Issue-ID: OPTFRA-497 Change-Id: I339a9e09aac766ce918ce6fa6d4dffc9d7ae741b Signed-off-by: Chayal, Avteet (ac229e) <ac229e@att.com>
2019-04-23Fix for required/excluded candidatesLukasz Rajewski1-1/+4
The fix changes how required and excluded candiates list is generated for HAS request by OSDF. After the change it is now alligned with request format of HAS. Change-Id: I6c4a88c3672971e53b996d416caeda63771e08c1 Issue-ID: OPTFRA-483 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
2019-04-22Merge "Insert tosca models for policy model uploading"Vikas Varma10-3/+652
2019-04-21Insert tosca models for policy model uploadingRuoyu Ying10-3/+652
- Insert the tosca models that can be recognized by Policy Framework inside another new folder. - Add the path for models inside the osdf config in order to avoid changes in future in case there's a change of path. Change-Id: Ifff83a630bc48b7a3fff4aa17323910e6adedb0d Issue-ID: OPTFRA-415 Signed-off-by: Ruoyu Ying <ruoyu.ying@intel.com>
2019-04-20Merge "Traffic Distributtion support added"Shankaranarayanan Puzhavakath Narayanan6-50/+99
2019-04-18Traffic Distributtion support addedLukasz Rajewski6-50/+99
* New local polcies for vFW TD use case * Fixed encoding for conductor_request template and parameters section modified to accept all requestParameters * Conductor request can have many attributes in the 'attributes' section - all that are defined in the vnf policy file * Conductor request can have many request parameters in the 'requestParameters' section. The parameters come from QueryPolicies. Before list of suppoted parameters was hardcoded * Optional 'unique' parameter added to the placementDemand section. It is already supported by conductor for all inventory types * Improved debug logs for local policies * Unit tests added for expanded request format Change-Id: I41f219c366a3a77881c7096e64a6272edbada23b Issue-ID: OPTFRA-443 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
2019-04-12Updating code for pci-anr optimization callsvrvarma3-19/+228
Include pci-anr minizinc model Refactor the code to handle pci & pci-anr optimizations Fix pytest unit test cases Change-Id: I59eba39850a90e5aaf45f0e2de1881ebb5a9d5d8 Signed-off-by: vrvarma <vv8305@att.com> Issue-ID: OPTFRA-416 Signed-off-by: vrvarma <vv8305@att.com>
2019-04-09Merge "Reduce AAF auth permission cache time to 5 mins"Shankaranarayanan Puzhavakath Narayanan1-12/+22
2019-04-09Merge "Automate the process of policy model uploading"Vikas Varma1-0/+30
2019-04-09Reduce AAF auth permission cache time to 5 minsvrvarma1-12/+22
Refactor code smell issues found in sonar Change-Id: I819a91e374609224561afa7ddb6878fab37feaf2 Signed-off-by: vrvarma <vv8305@att.com> Issue-ID: OPTFRA-471
2019-04-05Automate the process of policy model uploadingRuoyu Ying1-0/+30
Add one more step after doing the healthcheck to upload all the models under /osdf/models/policy/placement/tosca Change-Id: I140efba27d603f43f6ae3f73b73b860dc8b10b42 Issue-ID: OPTFRA-415 Signed-off-by: Ruoyu Ying <ruoyu.ying@intel.com>
2019-04-03Initial model changes and api changes for pci-optvrvarma3-4/+14
PCI-OPT model changes for ANR optimization PCI-OPT swagger document changes for pci/anr optimization Change-Id: I2eb9447db7b3b73bc6cfd9b3e0aba7fed0aaabd6 Signed-off-by: vrvarma <vv8305@att.com> Issue-ID: OPTFRA-416
2019-02-12Fix to populate missing fields in request to HASChayal, Avteet (ac229e)1-1/+1
Populate requiredCandidates and excludedCandidates for HAS Issue-ID: OPTFRA-438 Change-Id: I23702a572ce3645aa52d27e7a8d58f775349cbb8 Signed-off-by: Chayal, Avteet (ac229e) <ac229e@att.com>
2018-11-27osdf pci-opt response will have only the updatesvrvarma3-15/+26
Change the pci-optimization responses to only have the updates Return Error message in case of failures or no solutions Change-Id: Ia2efc7dc1e5cbcdc2c9425a3f58b840130d759ed Signed-off-by: vrvarma <vv8305@att.com> Issue-ID: OPTFRA-404
2018-11-02Populate serviceResourceId in homing solution3.0.0-ONAP1.2.4Chayal, Avteet (ac229e)1-1/+2
Fix to populate serviceResourceId in solution to SO Updated code to pass service_resource_id in HAS payload Issue-ID: OPTFRA-249 Change-Id: I00415d84c096faccfad86989812ee485bf8f97c1 Signed-off-by: Chayal, Avteet (ac229e) <ac229e@att.com>
2018-11-02Changes for PWT testing with HAS and SOChayal, Avteet (ac229e)1-1/+1
Fixed tosca model for optimization policy Updated polices as pdp apis are case sensitive Added polices for PWT and IT for casablanca Removed extra spaces in vnf policy Issue-ID: OPTFRA-384 Change-Id: I17997e962939ff27e38b182134d7c25df77169d8 Signed-off-by: Chayal, Avteet (ac229e) <ac229e@att.com>
2018-11-01Merge "oof changes for the new sdnr-configdb changes"Dileep Ranganathan5-79/+85
2018-11-01Updated tosca models as per review commentsChayal, Avteet (ac229e)3-5/+5
Updated tosca models as per review comments Issue-ID: OPTFRA-384 Change-Id: I081f512fc1472836aa5599aa062db8a8b4baef14 Signed-off-by: Chayal, Avteet (ac229e) <ac229e@att.com>
2018-11-01oof changes for the new sdnr-configdb changesvrvarma5-79/+85
OSDF changes required for the latest configdb api specs. Improve performance building the minizinc request Change-Id: I5558c96c13f3cac25d50aed61ded3ffa079df3f7 Signed-off-by: vrvarma <vv8305@att.com> Issue-ID: OPTFRA-388
2018-11-01Fixed tosca models and updated policiesChayal, Avteet (ac229e)4-6/+6
Fixed tosca models and updated policies for vFW Issue-ID: OPTFRA-384 Change-Id: If84cd3117f3c7b3d91a22e379b38c567ed3804e2 Signed-off-by: Chayal, Avteet (ac229e) <ac229e@att.com>
2018-11-01Fixed tosca models, updated code and policiesChayal, Avteet (ac229e)7-13/+19
Fixed tosca models, updated policies and code for conductor payload changes for vFW and vCPE Change-Id: Ia98c632fc2fd564efa3b96e8a7888bc97d1c5448 Issue-ID: OPTFRA-384 Signed-off-by: Chayal, Avteet (ac229e) <ac229e@att.com>
2018-10-19Enable SMS in OSDFDileep Ranganathan2-2/+8
Load secrets from SMS in OSDF. Removed secrets from osdf_config.yaml. Unit tests to use the test/config/osdf_config.yaml. Helm charts uses a Job to load secrets. CSIT needs to load it using the preload tool provided by SMS. Change-Id: I0f832033476c02958f6392abba74e4d5a36cc902 Issue-ID: OPTFRA-343 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
2018-10-12Changed modelCustomizationName to optionalChayal, Avteet (ac229e)1-1/+1
Changed modelCustomizationName from mandatory to optional Issue-ID: OPTFRA-375 Change-Id: Id1d31acc747816efdae0cf73905cfc7af964bf5f Signed-off-by: Chayal, Avteet (ac229e) <ac229e@att.com>
2018-10-08Retrieve secrets using Secret Management ServiceDileep Ranganathan1-4/+34
Integrate with OSDF by retrieving stored secrets using SMS Application code remains in tact as the secrets are preloaded and stored in config. The configs in clear text will be deprecated eventually. OOM needs to load aaf-sms and preload secrets before oof deployment. Updated to use domain name instead of domain uuid. Change-Id: I88a3c3dd2ad87753cc056fb63c8bbabd546707ab Issue-ID: OPTFRA-343 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
2018-09-28Merge "Fix string to refer external AAI network"Dileep Ranganathan1-1/+1