aboutsummaryrefslogtreecommitdiffstats
path: root/osdf
AgeCommit message (Collapse)AuthorFilesLines
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 the HAS response attribute namesPatel, Ankitkumar1-1/+1
Fixed the HAS response attribute names Issue-ID: OPTFRA-247 Change-Id: Id6afeafcb9fb094710ef7b624f2111e3608973dc Signed-off-by: Patel, Ankitkumar <ankit@research.att.com>
2018-05-29Fixed the distance policy typePatel, Ankitkumar1-1/+1
Fixed the distance_to_location policy type Issue-ID: OPTFRA-247 Change-Id: I5b63407fcf7c46dffc841b080b721e5c8203a3da Signed-off-by: Patel, Ankitkumar <ankit@research.att.com>
2018-05-29Fix to remove resources with no policiesPatel, Ankitkumar1-2/+3
Fix to remove resources with no policies from the HAS template Issue-ID: OPTFRA-247 Change-Id: I8762a5ac13038406d74ee2806a52f78b6df697a2 Signed-off-by: Patel, Ankitkumar <ankit@research.att.com>
2018-05-29Fixed case sensitive resource matchingPatel, Ankitkumar4-8/+12
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-22Eliminating emply elements from HAS templatev1.1.1Ankitkumar Patel3-17/+12
Eliminating empty elements from HAS template Issue-ID: OPTFRA-243 Change-Id: Iec6acf95f6f0a98757e3d208f102998d197b2daa Signed-off-by: Ankitkumar Patel <ankit@research.att.com>
2018-05-22Updating the VNF policy translationAnkitkumar Patel1-1/+1
Updating the VNF policy translation Issue-ID: OPTFRA-239 Change-Id: Iadce865b35ec94613502063d718a317aba798bc4 Signed-off-by: Ankitkumar Patel <ankit@research.att.com>
2018-05-19Fix the bug in translating a policyAnkitkumar Patel2-11/+23
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-05-04EELF logging is addedAnkitkumar Patel7-7/+1378
EELF logging is added. Issue-ID: OPTFRA-227 Change-Id: I2ec7ab4c13f93736acee82a36b9420480d78b50c Signed-off-by: Ankitkumar Patel <ankit@research.att.com>
2018-04-18[OPTFRA-217] Fix identifier value in placementSolChayal, Avteet (ac229e) ac229e@att.com1-1/+1
Identifier should be "serviceInstanceId" or "cloudRegionId" Issue-ID: OPTFRA-217 Change-Id: I1ddab070922f43ac65f54a3fcc6f36986d04de3a Signed-off-by: Chayal, Avteet (ac229e) ac229e@att.com <ac229e@att.com>
2018-04-05Fix for placement call check and sync responseChayal, Avteet (ac229e) ac229e@att.com1-2/+2
Fixed the condition to make placement call & sync response to client Issue-ID: OPTFRA-215 and OPTFRA-216 Change-Id: I0f996160e8cd339c663611ba53bd590271ea3b3a Signed-off-by: Chayal, Avteet (ac229e) ac229e@att.com <ac229e@att.com>
2018-04-04OPTFRA-214-requestState should be requestStatusChayal, Avteet (ac229e) ac229e@att.com2-4/+4
Fixed async response for placementDemand only scenario. Issue-ID: OPTFRA-214 Change-Id: Ia9bdced85a874fd19e74b53e52702d45b3c67052 Signed-off-by: Chayal, Avteet (ac229e) ac229e@att.com <ac229e@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-28Added optimization query processing module.Ankitkumar Patel3-3/+25
Added optimization query processing module. Issue-ID: OPTFRA-177 Change-Id: I4dd395b77bfe4bc392b90bc7087338f050fa622d Signed-off-by: Ankitkumar Patel <ankit@research.att.com>
2018-03-28Functest scripts, simulators, and payloadsSastry Isukapalli3-35/+5
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 Patel6-24/+21
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-28Adding an autostart in DockerSastry Isukapalli1-1/+1
Issue-ID: OPTFRA-22 Change-Id: I6b5e072d48d312e86cd681908e62b71059774093 Signed-off-by: Sastry Isukapalli <sastry@research.att.com>
2018-03-27SO response build module updatedAnkitkumar Patel1-11/+17
SO response build module is updated based on the HAS API. Issue-ID: OPTFRA-208 Change-Id: I57ed198967d2dc9a58f1221eb57fda56fcb5fd2d Signed-off-by: Ankitkumar Patel <ankit@research.att.com>
2018-03-27Updated the conductor adaptorAnkitkumar Patel5-30/+28
Updated the conductor adaptor code. Issue-ID: OPTFRA-207 Change-Id: I41bd6f2e39bc5ca6d2d27539772175363590416f Signed-off-by: Ankitkumar Patel <ankit@research.att.com>
2018-03-27Merge "Updates to address new HPA policies"Sastry Isukapalli4-87/+76
2018-03-27Updates to address new HPA policiesAnkitkumar Patel4-87/+76
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-26Updated the schematics models of the HAS APIAnkitkumar Patel1-3/+3
Updated the validation models and related testcases. Issue-ID: OPTFRA-203 Change-Id: I02219e64543eb7a9a7933322bf19f21e070496f4 Signed-off-by: Ankitkumar Patel <ankit@research.att.com>
2018-03-26Inserted policy tosca models and examplesAnkitkumar Patel8-0/+527
Uploaded the policy tosca models and policy examples for HAS. Issue-ID: OPTFRA-27 Change-Id: I96ae70c5fe34ce7f40f461801e149d81afa52ea3 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 Isukapalli4-64/+76
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 Isukapalli13-302/+170
Issue-ID: OPTFRA-146 Change-Id: I2261ae69f52b184cd7dcb7b86d5905538666a411 Signed-off-by: Sastry Isukapalli <sastry@research.att.com>
2018-02-19Adding/updating copyrights plus some unittestsSastry Isukapalli15-2/+223
Issue-ID: OPTFRA-96 Change-Id: Ica36e3cd90a87f97b6749500c00d7097c37abe39 Signed-off-by: Sastry Isukapalli <sastry@research.att.com>
2018-02-11Removed unused DB-adapters, test cases, 60+% coverSastry Isukapalli10-215/+12
We are not using OracleDB, PostgresDB, and VerticaDB, so there is no need to keep the "dead code" -- we can always add it back as needed. Added test cases so that all the files are at least minimally covered. Overall coverage on my local tox shows 66% coverage (I manually ensured all files are included in the coverage report). Issue-ID: OPTFRA-95 Change-Id: If1cab112236b4f32a96315308ce815088fa092d1 Signed-off-by: Sastry Isukapalli <sastry@research.att.com>
2018-02-11Re-org folders, onboard test folder, test configAnkitkumar Patel61-0/+4507
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>