aboutsummaryrefslogtreecommitdiffstats
path: root/osdf/adapters/policy/interface.py
AgeCommit message (Collapse)AuthorFilesLines
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
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-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-10[WIP]Migration to new policy apiRuoyu Ying1-33/+39
*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>
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 Narayanan1-0/+4
2019-04-18Traffic Distributtion support addedLukasz Rajewski1-0/+4
* 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-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-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-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-28Update the SO sync and async responses.Ankitkumar Patel1-5/+2
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-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 Isukapalli1-25/+34
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>
2018-03-17New policies and required code changesSastry Isukapalli1-11/+9
Issue-ID: OPTFRA-146 Change-Id: I2261ae69f52b184cd7dcb7b86d5905538666a411 Signed-off-by: Sastry Isukapalli <sastry@research.att.com>
2018-02-11Re-org folders, onboard test folder, test configAnkitkumar Patel1-0/+204
Reorganized the folder structure. Onboarded testcases. Added test config. Issue-ID: OPTFRA-74 Change-Id: I97882a162a405a18ffd287495039e15ae9d0ad7b Signed-off-by: Ankitkumar Patel <ankit@research.att.com>