aboutsummaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor/functions/netconf-executor/src/main
AgeCommit message (Collapse)AuthorFilesLines
2021-01-22Renaming Files having BluePrint to have BlueprintKAPIL SINGAL2-3/+3
Replacing BluePrint with Blueprint throughout Issue-ID: CCSDK-3098 Signed-off-by: KAPIL SINGAL <ks220y@att.com> Change-Id: Ibee8bad07ae7d9287073db2d4f2f2cd730fa8b96
2020-12-16Fixed NoClassDefFoundError when USE_SCRIPT_COMPILE_CACHE is set to falseJulien Fontaine1-5/+0
USE_SCRIPT_COMPILE_CACHE set to false cleans the Class Loader cache after each kotlin script execution. When several kotlin script are executed in parallel (ie no dependency between them) and USE_SCRIPT_COMPILE_CACHE=false then the class loader from the cache may be deleted before one of those executed kotlin script get the time to finish which to the NoClassDefFoundError. Removed cleanupInstance method for kotlin script executors that where causing the class loader to be removed prematurely. Now the behaviour is to remove the class loader from the cache only when we publish a new CBA which was already the case when CDS run with a single instance. In cluster mode, a topic has been added to hazelcast to allow the instance publishing the updated CBA to communicate to the other instances by sending a message to clean the class loader for this CBA from their cache. Added mutex on kotlin script compilation to fix race condition. For concurrent kotlin script execution each process wanted to compile an executable but it was causing a race condition if a process tries to execute while another still compile. Mutex on the execution path prevent this behaviour Issue-ID: CCSDK-3052 Signed-off-by: Julien Fontaine <julien.fontaine@bell.ca> Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: I6ab002352b3272898ad0b183341ee664652c8ae3
2020-09-22Enabling Code FormatterSingal, Kapil (ks220y)9-13/+45
Code Formatter was turned off due to java 11 migation Issue-ID: CCSDK-2852 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: I3d02ed3cc7a93d7551fe25356512cfe8db1517d8
2020-06-09Add ResourceResolutionResult to ResourceResolutionServiceJozsef Csongvai1-1/+1
In order to ensure consistent behavior for assignment-map, supporting occurences and multiple artifact-prefixes, ResourceResolutionService needs to return assignment-map alongside generated template content. Issue-ID: CCSDK-2389 Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca> Change-Id: I54c1991d23d65217f3492b08a2170a6d41b6482d
2020-03-19Fix kotlin cache lazy loadingSebastien Premont-Tendland1-0/+3
When USE_SCRIPT_COMPILATION_CACHE is set to false the classLoader is closed after the class is instantiated. This is causing an issue when lazy loading is happening during the script execution. Lazy loading occurs when a suspendible function returning something is called from "processNB", kotlin will create a second class that will be loaded during execution (needs to be in the classpath during execution). Issue-ID: CCSDK-2150 Signed-off-by: Sebastien Premont-Tendland <sebastien.premont@bell.ca> Change-Id: I64780287352d762325662e0e5d5b94038dedee7f
2020-02-13add support for reply-time-out in cds blueprintAbdelmuhaimen Seaudi1-2/+2
Issue-ID: CCSDK-2089 Signed-off-by: Abdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com> Change-Id: Ic325aaa37df2db27713728b1d1fb7903298b02d5 Signed-off-by: Abdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com>
2019-12-30Runtime services for Relationship Type and TemplatesBrinda Santh1-2/+2
Added and improved blueprint runtime service property resolution api. Relationship template CBA sample Performance improvement on Artifact resolutions. Added connection config DSL for DB, GRPC connections. Added starter relationship connection config models. Issue-ID: CCSDK-1054 Signed-off-by: Brinda Santh <bs2796@att.com> Change-Id: I73e1deed708dc924352867ddd1d1b2271c8ea106
2019-11-26Formatting Code base with ktlintSingal, Kapil (ks220y)16-149/+263
No Business logic change, just the code format. Competible with IntelliJ: https://github.com/pinterest/ktlint#option-3 To format run: mvn process-sources -P format Issue-ID: CCSDK-1947 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: Ic9e9209fb7023d77f434693ad5a01229f8d09331
2019-11-07Merge "netconf lib bugfixes: invoke_rpc + timeouts."Dan Timoney5-21/+64
2019-11-06Fixed typo...Oleg Mitsura1-1/+1
Issue-ID: CCSDK-1908 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: I962db89c620c46f8979df03c20c26d3bfc32fb73
2019-11-05netconf retry disconnect()Oleg Mitsura1-2/+10
Issue-ID: CCSDK-1908 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: I90ca822c042ec84fda717a152c4f699bacdd87ad
2019-10-31netconf lib bugfixes: invoke_rpc + timeouts.Oleg Mitsura5-21/+64
Issue-ID: CCSDK-1886 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com> Change-Id: I0a33199d4b4cbd5e3355d1e7596d22bd7cdbd075
2019-09-26Fixing distribution and propertiesSingal, Kapil (ks220y)1-1/+1
Excluding to embedd Target path, and renaming blueprint to blueprints in properties Issue-ID: CCSDK-1758 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: Ie6f0ff177e0945fb252710a425a16afade1b01a3
2019-09-18Refactoring Netconf NetconfMessageUtilsSingal, Kapil (ks220y)4-50/+27
Appending New Line before and after request body within doWrapRpc and removing new line is child API's which forms the request body Issue-ID: CCSDK-1743 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: Ic58566e24a21c71d545c45fb95a667c17de2fe66
2019-08-27Add Get function in Netconf execution service for operational commandsSteve Siani3-0/+39
Issue-ID: CCSDK-1657 Signed-off-by: Steve Siani <alphonse.steve.siani.djissitchi@ibm.com> Change-Id: I12b82a7f1233fce256190ec0d35a5b85ad937b7b
2019-07-23Refactor Netconf script component parent.Brinda Santh2-3/+5
Change-Id: Ibbec8cd5785372a89e14a86d4e6ff7f9fed4aad2 Issue-ID: CCSDK-1499 Signed-off-by: Brinda Santh <brindasanth@in.ibm.com> Signed-off-by: Steve Siani <alphonse.steve.siani.djissitchi@ibm.com>
2019-07-18Resolve Attribute and properties fails with subPropertyNameSteve Siani1-1/+6
Issue-ID: CCSDK-1489 Signed-off-by: Steve Siani <alphonse.steve.siani.djissitchi@ibm.com> Change-Id: If27c0dd301f2c0e63cecc662cd89b1a72d1b21f1
2019-07-08Fix interrupt state left ON on NetconfSessionImpl.syncRpc()Eliezio Oliveira1-1/+0
Change-Id: Ib1a58ff94f88f352636b5f0af7a6fe5244a8fe7e Issue-ID: CCSDK-1455 Signed-off-by: Eliezio Oliveira <eliezio.oliveira@est.tech>
2019-06-25Refractor blueprint script dependencyBrinda Santh2-20/+70
Change-Id: I2e6b4dd278c1a4a3069a44f648129599365909d4 Issue-ID: CCSDK-1428 Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
2019-06-25Store resolution and expose with REST APIAlexis de Talhouët1-5/+0
Change-Id: Ie1fe9c02542ccd5fbfa18f1e2d6ddb633f55c214 Issue-ID: CCSDK-1423 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-06-14Correct netconf capability matching regexAbdelmuhaimen Seaudi1-2/+2
Issue-ID: CCSDK-1403 Signed-off-by: Abdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com> Change-Id: I0e8efc620f09af4fc776fbbf9d4e08e721dc8c63
2019-05-23Add cli executor optionsBrinda Santh1-0/+28
Change-Id: I55abe099997bad1666b762b7f8355b084f691001 Issue-ID: CCSDK-1335 Signed-off-by: Brinda Santh <brindasanth@in.ibm.com>
2019-04-11netconf-executor: NetconfSessionImp removed useless methodOleg Mitsura1-12/+1
Issue-ID: CCSDK-1126 Change-Id: I40fa7a5d83d14a33d8e06fe28394828f86f857fd Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com>
2019-04-11netconf-executor: NetconfSessionImplTest improvementsOleg Mitsura2-27/+38
Issue-ID: CCSDK-1126 Change-Id: Ied0360a37f8f22801c63c2aeb70ee73d45cc7b4b Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com>
2019-04-10Merge "netconf-executor: NetconfSessionImplTest"Dan Timoney2-16/+37
2019-04-10netconf-executor: NetconfSessionImplTestOleg Mitsura2-16/+37
Issue-ID: CCSDK-1126 patchset 6: test: undid most of NetconfSessionImpl and muted some tests it affected Change-Id: Iff406705fa06a00c2629d248010192354d9e2a41 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com>
2019-04-10netconf-executor: RpcMessageUtilsTest improvementOleg Mitsura1-1/+1
Issue-ID: CCSDK-1126 Change-Id: I245661bb6ca1afa6aece98c83a1758a7a6f93621 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com>
2019-04-10netconf-executor: Moving NetconfSessionListenerImpl out of ↵Oleg Mitsura2-14/+75
NetconfSessionImpl, and adding test for it. Issue-ID: CCSDK-1126 Change-Id: I8674c247e64efdf48faf35b8d21eae5eaed14d95 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com>
2019-04-09netconf-executor: NetconfDeviceCommunicator testsOleg Mitsura1-0/+10
Issue-ID: CCSDK-1126 Change-Id: I524dbc9b8edcdf3922f762b77cfbb13b7b69df16 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com>
2019-04-08netconf-executor tests: adding MessageStateTestsOleg Mitsura3-54/+45
Issue-ID: CCSDK-1126 Change-Id: I6351163cf6e157eda41a47b07e53dfaac00f5da5 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com>
2019-04-08Adding NetconfRpcServiceImplTest for netconf-executorOleg Mitsura3-49/+26
Issue-ID: CCSDK-1126 Change-Id: Ib223ed93bbc8a81dea1d1fdf8c2aa12ef91ff9a8 Signed-off-by: Oleg Mitsura <oleg.mitsura@amdocs.com>
2019-04-01Improve bulk processingMuthuramalingam, Brinda Santh1-6/+8
Change-Id: Ia8bd447563072284aa71e00eab0ef9b93e1776b1 Issue-ID: CCSDK-1127 Signed-off-by: Muthuramalingam, Brinda Santh <brindasanth@in.ibm.com>
2019-04-01Improve function interfacesMuthuramalingam, Brinda Santh1-10/+7
Change-Id: I24f45d39ac05491a4217101e00bcbf8d122e4e1a Issue-ID: CCSDK-1137 Signed-off-by: Muthuramalingam, Brinda Santh <brindasanth@in.ibm.com>
2019-03-29Update sshd to 2.2.0Alexis de Talhouët1-3/+1
Change-Id: I1bc052cfc7681d0f5d6793aa08e2083332ee88b3 Issue-ID: CCSDK-1137 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-03-25Migrate ccsdk/apps to ccsdk/cdsAlexis de Talhouët15-55/+55
Issue-ID: CCSDK-1177 Issue-ID: CCSDK-1178 Change-Id: I0c02702fbec52211ca367abbba72aebecee8cbaa Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-03-20Netconf executor code coveragevinal patel1-0/+11
Change-Id: Ia7b6ece822e4ad551f2b562d11842f3a8be03219 Issue-ID: CCSDK-1126 Signed-off-by: vinal patel <vinal.narendrabhai.patel@ibm.com>
2019-03-15Improve scripting component.Muthuramalingam, Brinda Santh2-19/+6
Change-Id: I1e0c319e4117553695fa9161e7ffcd91f605be05 Issue-ID: CCSDK-1137 Signed-off-by: Muthuramalingam, Brinda Santh <brindasanth@in.ibm.com>
2019-03-11Add support to invoke device specific RPCAlexis de Talhouët2-0/+31
Change-Id: Ia003ed669cc88a4c24a495e79db620b5034bc3ca Issue-ID: CCSDK-790 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-03-07Add support for resource-resolution storageAlexis de Talhouët1-3/+10
Change-Id: I0113191075804f6b77ce54c741bf0a1ccd356c77 Issue-ID: CCSDK-338 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-02-20Add support for commit confirmed capabilityAlexis de Talhouët3-5/+69
Change-Id: I3608a6a62469d4b5dfc5fc69f610f9da186156c2 Issue-ID: CCSDK-790 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-02-20Add component function scripting serviceMuthuramalingam, Brinda Santh2-11/+33
Change-Id: I7c5b49617823dd623566fb4be4d431012420e17c Issue-ID: CCSDK-959 Signed-off-by: Muthuramalingam, Brinda Santh <brindasanth@in.ibm.com>
2019-02-18Simplify NetconfRpcServiceAlexis de Talhouët7-197/+110
Change-Id: I6daac25c272ab6b437c07602167a76a2d61816db Issue-ID: CCSDK-790 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-02-17Netconf resolution serviceAlexis de Talhouët2-5/+18
Change-Id: I0346c88cd11136561426260a206bd7bf07f90dd3 Issue-ID: CCSDK-1086 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-02-16Rework netconf-executorAlexis de Talhouët22-1348/+969
- rework connection logic - rework rpc service - rework netconf session handling - rework netconf device communicator - rework python netconf bindings - rework python netconf client - add python script showcasing netconf functions Change-Id: Ibb9bf811e7d96e993aa866371d56c172de83be2c Issue-ID: CCSDK-790:x Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
2019-02-12Add netconf script component functionMuthuramalingam, Brinda Santh8-95/+122
Change-Id: I094025fba5626bae0b4b13320f1cbbb76cda3bfd Issue-ID: CCSDK-790 Signed-off-by: Muthuramalingam, Brinda Santh <brindasanth@in.ibm.com>
2019-02-12Jython execution component and serviceSteve Alphonse Siani5-280/+7
Change-Id: I2610e73a9c7ba073b5fa9d148dcd6fb5b9ad9ae3 Issue-ID: CCSDK-696 Signed-off-by: Steve Alphonse Siani <alphonse.steve.siani.djissitchi@ibm.com>
2019-02-11Blueprint modeled Netconf capability componentsCherukuri, Venkatanaresh (vn166g)20-99/+1743
Adding Netconf Executor Function module Change-Id: I8b896fef84a465db2b9365d038b611e9fdf793ea Issue-ID: CCSDK-790 Signed-off-by: Cherukuri, Venkatanaresh (vn166g) <vn166g@att.com>
2019-02-06Blueprint Processor Python Script ComponentsCherukuri, Venkatanaresh (vn166g)1-32/+0
Adding Python scripts for Netconf Executor components Change-Id: I6d84dea2e47860063a1140146aebe94d61f8d9c1 Issue-ID: CCSDK-997 Signed-off-by: Cherukuri, Venkatanaresh (vn166g) <vn166g@att.com>
2019-01-101 Controller Design StudioCherukuri, Venkatanaresh (vn166g)10-1/+685
Adding Netconf Executor Function module to support Netconf Transactions Change-Id: Idc2765f680819e2553a7a43d8b23dbecc2628f4a Issue-ID: CCSDK-790 Signed-off-by: Cherukuri, Venkatanaresh (vn166g) <vn166g@att.com>
2018-12-04Add Netconf Executor Function moduleMuthuramalingam, Brinda Santh(bs2796)4-0/+115
Change-Id: If264e63d4fc4305bc26dc6b249a462afefcbfe1e Issue-ID: CCSDK-790 Signed-off-by: Muthuramalingam, Brinda Santh(bs2796) <bs2796@att.com>