aboutsummaryrefslogtreecommitdiffstats
path: root/osdf/adapters
AgeCommit message (Collapse)AuthorFilesLines
2023-02-15[OSDF] Enable OSDF in ServiceMesh deploymentAndreas Geissler1-44/+60
In case AAF is disabled the secret loading via AAF-SMS should not be called Issue-ID: OPTFRA-1099 Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de> Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> Change-Id: Ifca03215a36705b1c160b2cbf708389bd2162301
2021-10-04Support second level NSSI in terminate appkrishnaa961-0/+3
Issue-ID: OPTFRA-990 Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com> Change-Id: If47b19d18e5eb1cbef24418c7697e0770818959f
2021-07-14Fix issues in Slice selectionkrishnaa961-1/+1
Issue-ID: OPTFRA-983 Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com> Change-Id: I0dc22bc4bc65853b6693b603554e4dc99717d176
2021-06-01Fix sonar issuesMalarvizhi Paramasivam2-8/+7
Issue-ID: OPTFRA-946 Signed-off-by: Malarvizhi Paramasivam <malarvizhi.44@wipro.com> Change-Id: I6ccf61b6e07187f879d52c4c3b9f53b4188adf4a Signed-off-by: Malarvizhi Paramasivam <malarvizhi.44@wipro.com>
2021-04-08Update AAI query to DSL query - Slice terminationkrishnaa961-7/+39
Issue-ID: OPTFRA-936 Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com> Change-Id: I7a2bba7d23645c8bff9f503361a93fd3ac3ebc3a
2021-04-07Return error when polices are not presentkrishnaa961-20/+35
OOF must return error when the policies are not found for a particular request. Currently, It sends an empty request to conductor when policies are not available Issue-ID: OPTFRA-511 Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com> Change-Id: I8b4041cf1c6d6c62ee4df39138ee5d3bf904e064
2021-02-21Add support to process NST Selection for HASMD IRSHAD SHEIKH1-1/+0
Issue-ID: OPTFRA-911 Signed-off-by: MD IRSHAD SHEIKH <md.irshad.sheikh@huawei.com> Change-Id: I809857348b00fe415d416954b1cfbedd404bdffc
2021-01-05Remove ca-cert from docker imagekrishnaa962-22/+30
CA cert can be directly used by the request library. So it is not needed to install in the base image Issue-ID: OPTFRA-891 Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com> Change-Id: Ia7642cded9057148abcaf0f2f8c9e85d63a08012
2021-01-04Fix AAI request url for NxI Terminationhariharan971-1/+1
Issue-ID: OPTFRA-890 Signed-off-by: hariharan97 <rh20085046@wipro.com> Change-Id: I4e11419f260d04f02b8b77eb0924bc92ad881991
2020-10-06Fix slice selectionkrishnaa961-1/+1
Issue-ID: OPTFRA-855 Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com> Change-Id: If4f7155ced93d91ae22a2e82db01bcf4c32b6323
2020-09-18Add support to process NSI selection requestdhebeha4-41/+67
Issue-ID: OPTFRA-802 Signed-off-by: dhebeha <dhebeha.mj71@wipro.com> Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com> Change-Id: I85d951061abc697714425bd223b89102d4f2ede9
2020-09-17Add ML based optimization to PCI optkrishnaa961-0/+51
Add DCAE DES adapter to the adapters Add a simple ML model in PCI opt app Issue-ID: OPTFRA-769 Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com> Change-Id: I144887e1be1ac6be4d27eeec22f9669c71f2c2bb
2020-09-02Add Nxi-Termination featurehariharan972-0/+55
Issue-ID: OPTFRA-825 Signed-off-by: hariharan97 <rh20085046@wipro.com> Change-Id: I0d768e36708e9f26e5bcdf661b2bcb5772ed48c2
2020-05-11Fix for remote policy filteringLukasz Rajewski1-4/+5
Changed a way of processing policies by scope. Before filtering was resulting with None type access exception. Change-Id: Ide6515b4b18a2dc7344e92b32a76d00ba48d4301 Issue-ID: OPTFRA-755 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
2020-04-22Merge "add aggregation policy for NSI selection"Vikas Varma2-37/+47
2020-04-17add aggregation policy for NSI selectiondhebeha2-37/+47
made changes for other policy updates Issue-ID: OPTFRA-730 Signed-off-by: dhebeha <dhebeha.mj71@wipro.com> Change-Id: I3fb4ae184cdae9181037fb059ac144070228c29f
2020-04-14Remove encryption of passwords for osdf2.0.3vrvarma1-1/+4
Change-Id: I1815e798b29b21278353fbf4ea6cb5cd6475dbf5 Signed-off-by: vrvarma <vikas.varma@att.com> Issue-ID: OPTFRA-732
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-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 codevrvarma1-0/+2
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-27encryption/decryption utilitydhebeha1-16/+23
Change-Id: I1f7d2c6fe66b1ff4341660063203662b507a669a Issue-ID: OPTFRA-700 Signed-off-by: dhebeha <dhebeha.mj71@wipro.com>
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-04-22Merge "Insert tosca models for policy model uploading"Vikas Varma1-3/+3
2019-04-21Insert tosca models for policy model uploadingRuoyu Ying1-3/+3
- 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 Narayanan2-1/+6
2019-04-18Traffic Distributtion support addedLukasz Rajewski2-1/+6
* 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-09Merge "Reduce AAF auth permission cache time to 5 mins"Shankaranarayanan Puzhavakath Narayanan1-12/+22
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>
2018-10-19Enable SMS in OSDFDileep Ranganathan1-0/+4
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-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-17Merge "Secret Management Service feature"Shankaranarayanan Puzhavakath Narayanan1-0/+97
2018-09-14Add unit test cases for aaf auth apiVarma, Vikas1-1/+1
Change-Id: I611f3fc8dcfe9570d3202bb1473f163168d22d7c Signed-off-by: Varma, Vikas <vv8305@att.com> Issue-ID: OPTFRA-339
2018-09-14Secret Management Service featureDileep Ranganathan1-0/+97
Added supporting library required for enabling SMS integration. Added Unit tests and manual tests for store/retrieve/delete secrets. Added AAF cacert, preload_secrets config for testing. Integration with application NOT Done in this patch. Change-Id: Ic2be41f825b327064127fbf83f9e1057a68f19c2 Issue-ID: OPTFRA-343 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
2018-09-10Python implementation of the aaf cadi clientVarma, Vikas2-0/+99
Change-Id: I0cae202775361f221a7d8774254febfaf0a4bbac Python implementation of the aaf cadi client Change-Id: Icd31276a908eaf72ab30fc04e1d2a4715817a5b6 Signed-off-by: Varma, Vikas <vv8305@att.com> Issue-ID: OPTFRA-339
2018-05-30Fixed the config dir and default policy scope2.0.0-ONAP2.0.0-ONAPPatel, Ankitkumar1-1/+2
Fixed the config dir and default policy scope Issue-ID: OPTFRA-247 Change-Id: Ie15aaaa7ac6357ddc9fc0dc262591e844001d927 Signed-off-by: Patel, Ankitkumar <ankit@research.att.com>
2018-05-29Fixed case sensitive resource matchingPatel, Ankitkumar1-0/+1
Fixed the case sensitive matching for resources between policy and request. Issue-ID: OPTFRA-247 Change-Id: Ic031f6c950b6c6b44bd2e4231a9ef672beea994b Signed-off-by: Patel, Ankitkumar <ankit@research.att.com>
2018-05-19Fix the bug in translating a policyAnkitkumar Patel1-5/+8
Fix the bug in translating the VNF policy Issue-ID: OPTFRA-239 Change-Id: I0c9f678f22fec4eb3f5e190ea0080c899fb95445 Signed-off-by: Ankitkumar Patel <ankit@research.att.com>
2018-04-01Updated the policy adaptor for scope filteringAnkitkumar Patel1-23/+22
Updated the policy adaptor to support scope-based filtering. Issue-ID: OPTFRA-27 Change-Id: I908c1ee16c6f21982d8bfc1e3d6156d54555fdd3 Signed-off-by: Ankitkumar Patel <ankit@research.att.com>
2018-03-28Functest scripts, simulators, and payloadsSastry Isukapalli1-31/+0
osdf/adapters/policy/utils.py: Removed duplicated code (group_policies and group_policies_gen are very similar, and group_policies seems to be not used osdf/optimizers/placementopt/conductor/api_builder.py: changed param name from "grouped_policies" to "flat_policies" tox.ini added starup and shutdown of simulators (flask app with mock payloads) in tox tests rest all files/changes in "test/" folder quite a few payload files Patch set 2: removed a "print()" statement from simulator code Issue-ID: OPTFRA-22 Change-Id: I0006c577fc459c7c884b55e8316c689afd151780 Signed-off-by: Sastry Isukapalli <sastry@research.att.com>
2018-03-28Update the SO sync and async responses.Ankitkumar Patel2-9/+4
Updated the sync and async responses and addes testcases related to policy adaptors. Issue-ID: OPTFRA-208 Change-Id: Ia0f88df1b897b6158674f3c3a7ef239f2328dcfc Signed-off-by: Ankitkumar Patel <ankit@research.att.com>
2018-03-27Merge "Updates to address new HPA policies"Sastry Isukapalli1-3/+35
2018-03-27Updates to address new HPA policiesAnkitkumar Patel1-3/+35
Issue-ID: OPTFRA-100 Change-Id: Iaff7b50dc5394546cc46591bef9b054cd6cde792 Signed-off-by: Ankitkumar Patel <ankit@research.att.com>
2018-03-26Remove code smell from DMaaP adapterSastry Isukapalli1-24/+15
Issue-ID: OPTFRA-195 Change-Id: I67f2f5c6f9190bb91f34b371c0bc3ea1aa2367b0 Signed-off-by: Sastry Isukapalli <sastry@research.att.com>
2018-03-25Update the policy adaptor and related testcasesAnkitkumar Patel1-89/+68
Generalized the policy adaptor code by removing homing specific logic. Issue-ID: OPTFRA-27 Change-Id: I331030a2f3f5c0c17af1a72af9794131555a9217 Signed-off-by: Ankitkumar Patel <ankit@research.att.com>
2018-03-22Fix "brain-overload" functions flagged by SONARSastry Isukapalli2-39/+66
Refactored two brain-overload functions Moved a policy util function from conductor/api_builder.py to policy/utils.py Issue-ID: OPTFRA-195 Change-Id: I879e7f4f5d92cc530c66d3ed071bf5246397ba13 Signed-off-by: Sastry Isukapalli <sastry@research.att.com>