+Initialize_Artifact_Deployment_And_Usage
+ [Arguments] ${tools_system_connect}=True
+ [Documentation] Places search utility to ODL system, which will be needed for version detection.
+ ... By default also initialize a SSH connection to Tools system,
+ ... as following Keywords assume a working connection towards target system.
+ # Connect to the ODL machine.
+ ${odl}= SSHKeywords.Open_Connection_To_ODL_System
+ # Deploy the search tool.
+ SSHLibrary.Put_File ${CURDIR}/../../tools/deployment/search.sh
+ SSHLibrary.Close_Connection
+ # Optionally connect to the Tools System machine.
+ BuiltIn.Return_From_Keyword_If not (${tools_system_connect}) # the argument may be a convoluted Python expression
+ SSHKeywords.Open_Connection_To_Tools_System
+
+NexusKeywords__Get_Items_To_Look_At
+ [Arguments] ${component}
+ [Documentation] Get a list of items that might contain the version number that we are looking for.
+ BuiltIn.Return_From_Keyword_If '${component}' == 'bgpcep' pcep-impl
+ [Return] ${component}-impl
+
+NexusKeywords__Detect_Version_To_Pull
+ [Arguments] ${component}
+ [Documentation] Determine the exact Nexus directory to be used as a source for a particular test tool
+ ... Figure out what version of the tool needs to be pulled out of the
+ ... Nexus by looking at the version directory of the subsystem from
+ ... which the tool is being pulled. This code is REALLY UGLY but there
+ ... is no way around it until the bug
+ ... https://bugs.opendaylight.org/show_bug.cgi?id=5206 gets fixed.
+ ... I also don't want to depend on maven-metadata-local.xml and other
+ ... bits and pieces of ODL distribution which are not required for ODL
+ ... to function properly.
+ ${itemlist}= NexusKeywords__Get_Items_To_Look_At ${component}
+ ${current_ssh_connection}= SSHLibrary.Get Connection
+ SSHKeywords.Open_Connection_To_ODL_System
+ ${version} ${result}= SSHLibrary.Execute_Command sh search.sh ${WORKSPACE}/${BUNDLEFOLDER}/system ${itemlist} return_rc=True
+ SSHLibrary.Close_Connection
+ Restore Current SSH Connection From Index ${current_ssh_connection.index}