- ${lines}= Get Line Count ${stdout}
- ${last}= Evaluate ${lines} - 1
- ${id}= Get Line ${stdout} ${last}
- [Return] ${id}
+ ${lines}= Get Line Count ${stdout}
+ ${last}= Evaluate ${lines} - 1
+ ${id}= Get Line ${stdout} ${last}
+ [Return] ${id}
+
+
+Update VNFD
+ [Documentation] Onboards ("Updates") a NF Package into OSM.
+ ... - Parameters:
+ ... - vnfd_pkg: Name (and location) of the NF Package
+ ... - vnfd_name: Name of the existing NF Package
+
+ [Arguments] ${vnfd_pkg} ${vnfd_name}
+
+ # Proceedes with the onboarding with the appropriate arguments
+ ${rc} ${stdout}= Run and Return RC and Output osm vnfpkg-update --content ${vnfd_pkg} ${vnfd_name}
+ log ${stdout}
+ Should Be Equal As Integers ${rc} ${success_return_code}
+ ${lines}= Get Line Count ${stdout}
+ ${last}= Evaluate ${lines} - 1
+ ${id}= Get Line ${stdout} ${last}
+ [Return] ${id}