summaryrefslogtreecommitdiffstats
path: root/resource-assignment/provider/src
AgeCommit message (Collapse)AuthorFilesLines
2020-12-01Migrate sli-adaptor filesJessica Wagantall99-10308/+0
Migrate sli-adaptor repo files into a new "adaptors" directory. Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
2020-08-03Update adaptors to sodiumDan Timoney2-1/+9
Update sli/adaptors to OpenDaylight Sodium release. 2 changes were needed: - mdsal-resource : needed to add unimplemented abstract methods in inner anonymous BundleContext class in test case. - resource-assignment: needed to correct unit test problems that were ignored in earlier versions of h2 Change-Id: Ice63bfce64768e46c4376db55e3e9e97d0b934ad Issue-ID: CCSDK-2551 Signed-off-by: Dan Timoney <dtimoney@att.com>
2020-06-23RA: Add option for sequential number assignment from a rangestan-sb2-3/+36
Fix case, when no previous numbers have been allocated Change-Id: Iead3cb4fe4a8ed3f6de363d31677eb389e9f1329 Issue-ID: CCSDK-2416 Signed-off-by: Stan Bonev <sb5356@att.com>
2020-06-09RA: Add option for sequential number assignment from a rangesb53566-3/+171
Change-Id: Ifc967676d7c78063ba9ba67706bd4b98ba1d9115 Issue-ID: CCSDK-2416 Signed-off-by: Stan Bonev <sb5356@att.com>
2020-06-01Merge "added assert statements in 3 test classes"Dan Timoney1-0/+3
2020-05-28added assert statements in 3 test classesRupinder1-0/+3
Issue-ID: CCSDK-2232 Change-Id: Ide54fa192c934dc40bb15034c8e5dbf2c2594f62 Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
2020-05-27added assert statements in 7 test filesRupinder2-0/+7
Issue-ID: CCSDK-2232 Change-Id: I07e3806cac9a317130ad1d5fe4c9af4fb1a17a5d Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
2020-04-07removed code smellsRupinder3-3/+7
Reduced the code smells Issue-ID: CCSDK-2232 Change-Id: I30eec021ba50f28dc1df2fd554c4e349c4a76dd6 Signed-off-by: Rupinder<rupinsi1@in.ibm.com>
2020-03-26RA: Add the allowed range in the return valuessb53564-8/+65
Change-Id: I18530c17ac78269c1b48ba499edfb3921d23f164 Issue-ID: CCSDK-2189 Signed-off-by: Stan Bonev <sb5356@att.com>
2019-09-05Add junit coverageTimoney, Dan (dt5972)1-0/+45
Add junit test coverage for sli/adaptors Change-Id: Ia487abd65ef9ed10d66c25e455414cd8fc736943 Issue-ID: CCSDK-1694 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-08-19CCSDK-1556-Immediately return this expression instead of assigning it to the ↵Thugutla sailakshmi1-3/+1
temporary variable "rd" immediately return the expression Issue-ID: CCSDK-1559 Change-Id: I6a6b76684b99783fd498e3fac88b0a3747186b1c Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
2019-08-15Code changes for OpenDaylight NeonTimoney, Dan (dt5972)2-0/+162
Updated code for OpenDaylight Neon, using conversion script in ccsdk/parent/tools. Change-Id: Ic91cff9ee50102b8af1a73f829908de82995b2ef Issue-ID: CCSDK-1389 Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-08-05CCSDK-1559-return this expression instead of assigning it to a temporary ↵Thugutla Sailakshmi1-2/+4
variable return this expression instead of assigning it to a temporary variable Issue-ID: CCSDK-1559 Change-Id: I1b0ce8b89f51f2fd5b2da7d8f2401d2be5007615 Signed-off-by: Thugutla Sailakshmi <tsaila10@in.ibm.com>
2019-07-29CCSDK-1553 -remove exception from method bodyThugutla Sailakshmi1-3/+3
remove exception from method body Issue-ID: CCSDK-1553 Change-Id: I63216b592336dab8ea9ac426bee7c4f863354aae Signed-off-by: Thugutla Sailakshmi <tsaila10@in.ibm.com>
2019-05-28Revert "Fixed sonar fix in DataSourceWrap.java"Timoney, Dan (dt5972)1-12/+14
This reverts commit 6c1dee5b7d0e66338100c65efd51917d4f69998f. Sonar gave bad advice - this change causes connection to be closed on return to caller, which is useless. Change-Id: Id428c9058b5e33d72d58bbd951e6cdac2d2d151d Signed-off-by: Timoney, Dan (dt5972) <dtimoney@att.com>
2019-03-19RA: Fix Problems with resource query resultsStan Bonev1-1/+4
Change-Id: Ic0fa65bff95ab5bd8ab65b055dcf7ec378e99d91 Issue-ID: CCSDK-1170 Signed-off-by: Stan Bonev <sb5356@att.com>
2019-02-08RA: Add allocation items to query resultsStan Bonev5-60/+161
Change-Id: I35e51461ca1119c42e81fd9351c3b9cbd06da644 Issue-ID: CCSDK-1051 Signed-off-by: Stan Bonev <sb5356@att.com>
2019-01-30Merge "Sonar fix: ResourceJdbcDaoImpl.java"Dan Timoney1-4/+7
2019-01-21RA: Allow for partial resource releaseStan Bonev9-104/+314
Change-Id: Ie0cffbfaae6bb0ffcdb682f91ef3481fbdb35d7a Issue-ID: CCSDK-971 Signed-off-by: Stan Bonev <sb5356@att.com>
2019-01-10RA: Fix locking when there is expired lock in DBStan Bonev4-24/+26
Change-Id: I026bdea43c0386689c98902aac95be02e27f7704 Issue-ID: CCSDK-937 Signed-off-by: Stan Bonev <sb5356@att.com>
2019-01-09fixed sonar issues in ResourceAllocator.javaSandeep J1-3/+6
fixed sonar issues Issue-ID: CCSDK-525 Change-Id: Ifb2155d46aa1d1552c2ce1a9b0660b5b787e2f92 Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
2019-01-08Sonar fix: ResourceJdbcDaoImpl.javaArundathi Patil1-4/+7
Fixed sonar issues/code-smells across this file Issue-ID: CCSDK-919 Change-Id: I2f23c4fd39b55393590fd97d6a95a0c5acbb2a6d Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2019-01-07Merge "Sonar fix: AllocationItemJdbcDaoImpl.java"Dan Timoney1-1/+2
2019-01-02Sonar fix: AllocationItemJdbcDaoImpl.javaArundathi Patil1-1/+2
Fixed sonar issues/code-smells across this file Issue-ID: CCSDK-891 Change-Id: Iaea16ae96c919ad09eb7de31119a9bd14e2ef539 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2019-01-02Sonar Fix: ReleaseFunction.javaArundathi Patil1-1/+4
Fixed sonar issues/code smells across thsi file Issue-ID: CCSDK-888 Change-Id: I9748106bc5b09c342beb68df96860984722eb7d1 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
2018-12-28Merge "Fixed sonar issues in AllocationFunction.java"Dan Timoney1-3/+6
2018-12-26Fixed sonar issues in AllocationFunction.javaezhil1-3/+6
Fixed bug and major issues Issue-ID: CCSDK-875 Change-Id: I425a25eab33bc3203fcd30fa2abe4216a6bd4bc8 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2018-12-26Fixed sonar fix in DataSourceWrap.javaezhil1-14/+12
Fixed major bug Issue-ID: CCSDK-838 Change-Id: Iee8ce39e54f15f33e9d682068d721fb56610d12c Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2018-12-19Merge "Fixed sonar issue in ResourceAllocator.java"Dan Timoney1-9/+10
2018-12-19Merge "Fixed soanr issue in LockHelperImpl.java"Dan Timoney1-2/+3
2018-12-18Fixed sonar issue in ResourceAllocator.javaezhil1-9/+10
Fixed major sonar issue Issue-ID: CCSDK-836 Change-Id: I8bc5229f24f7a6c5668f52fc1ab3b8e13387edb1 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2018-12-18Fixed soanr issue in LockHelperImpl.javaezhil1-2/+3
Fixed major sonar issues Issue-ID: CCSDK-835 Change-Id: I53375dd95cdcec36f1a97630c9fdc2d9f57d8613 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2018-12-18Fixed sonar issue in ResourceLockedException.javaezhil1-1/+3
Fixed major sonar issue Issue-ID: CCSDK-834 Change-Id: Ifeb52731e712d1459f3922008fcf65161bda0dd3 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2018-11-29Added fix for potential nullpointer exceptionChandan Ghosh1-1/+1
Added fix for potential nullpointerexception reported in sonar Issue-ID: CCSDK-767 Change-Id: Ifebf7a57f27cb0de83d3cd5e805e0547b28ee845 Signed-off-by: Chandan Ghosh <cghosh12@in.ibm.com>
2018-11-28RA: Release resources on specific targetStan Bonev11-106/+472
Change-Id: I695a916a3d527f61b9483bbb27977695fb1e094c Issue-ID: CCSDK-766 Signed-off-by: Stan Bonev <sb5356@att.com>
2018-11-01RA: Enhance query for allocated resourcesStan Bonev12-91/+296
Change-Id: I97d724910d1caac8d7b16455296a41fef1669310 Issue-ID: CCSDK-644 Signed-off-by: Stan Bonev <sb5356@att.com>
2018-10-30RA: Add timeout parameters to the lock APIStan Bonev3-6/+28
Change-Id: I5f8cd856d245829036ed563969fe75887e443467 Issue-ID: CCSDK-642 Signed-off-by: Stan Bonev <sb5356@att.com>
2018-10-25RA: New criteria for querying allocated resourcesStan Bonev12-48/+392
Change-Id: Ia3a4b162ea4eca51ba7c500ad5daaa3865e26314 Issue-ID: CCSDK-620 Signed-off-by: Stan Bonev <sb5356@att.com>
2018-09-14RA: Expose resource locking as DG nodeStan Bonev5-0/+137
Change-Id: Ic12c8c7c59baf29630dab442de64a66dc40bc02e Issue-ID: CCSDK-573 Signed-off-by: Stan Bonev <sb5356@att.com>
2018-08-06RA: Add capability for Policy driven VlanTagssp694w6-98/+284
Change-Id: I5486a4989006c80b8a77ff2eb64fceed068c0c16 Issue-ID: CCSDK-438 Signed-off-by: Saurav Paira <sp694w@att.com>
2018-07-27RA: Add capability to assign new numbers for rangeStan Bonev9-505/+518
Change-Id: Ibb11219bfe0362055d388a4a10dab81e95979892 Issue-ID: CCSDK-408 Signed-off-by: Stan Bonev <sb5356@att.com>
2018-07-18RA: Fix unnecessary updates to allocation itemssb53562-60/+113
Change-Id: Ia3569ea5c7afe00624bb5d2368253cc3e5d834f5 Issue-ID: CCSDK-387 Signed-off-by: Stan Bonev <sb5356@att.com>
2018-06-26Support for defining multiple ranges in RANGE_RULEsb535610-213/+321
Change-Id: I5a5a1c61629a684dfc016f14000adbcb1e6dc9a1 Issue-ID: CCSDK-315 Signed-off-by: Stan Bonev <sb5356@att.com>
2018-06-06[CCSDK-245] RA: Refactor RA to make it genericsb535693-6608/+2016
Resource allocator is cleaned up and refactored so it does not contain any service specific logic. Issue-ID: CCSDK-245 Change-Id: Ib948eb813020fbe7dc779148e412de1e074b300b Signed-off-by: sb5356 <sb5356@att.com>
2018-04-12Used secure random number generationprakash.e1-1/+3
Issue-ID: CCSDK-184 Change-Id: I00719fb778a6ab7dc964bb1e4710a9014ba51fcd Signed-off-by: prakash.e <prakash.e@huawei.com>
2017-10-17Fix resource-assignment blueprintDan Timoney1-2/+14
Some entries in resource-assignment blueprint that had been copied from spring blueprint needed to be changed slightly due to differences between Spring and Aries. Change-Id: I196f88f2036f30673bee0f3d23773616f6c1ba1b Issue-ID: CCSDK-120 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-10-13Fix resource-assignment blueprintsDan Timoney2-21/+21
resource-assignment blueprint files contained references to openecomp that should be changed to onap. Change-Id: I1eb27ba8c805e65f67f167df8bf75e609e9b5f9f Issue-ID: CCSDK-120 Signed-off-by: Dan Timoney <dtimoney@att.com>
2017-09-28Added Blueprint configurationRich Tabedzki3-314/+134
Changes made: 1. Removed Spring DM configuration for resource-assignment 2. Added blueprint configuration for resource-assignment Change-Id: Ib084b863a6a5ee1283ba3dfb7b61d61619a27c38 Issue-ID: CCSDK-102 Signed-off-by: Rich Tabedzki <richard.tabedzki@att.com>
2017-09-21Move string literals to left hand sidesurya-huawei1-6/+6
Moving string literals to left-hand side of equals()/equalsIgnore() *This is done to prevent null pointer exception from being raised Issue-Id: CCSDK-87 Change-Id: Ibe9deee4fd48b3037be8708a0e3869d741c9173b Signed-off-by: surya-huawei <a.u.surya@huawei.com>
2017-09-20Fix Sonar Issue in sli/adaptors modulesurya-huawei1-8/+10
One blocker issue *Checking for a null dereferencing This is to avoid NullPointerException Issue-Id: CCSDK-87 Change-Id: Ie2192636e3ad8dfa9643cac61b3086c3cd33f126 Signed-off-by: surya-huawei <a.u.surya@huawei.com>