3 Library OperatingSystem
6 ${karaf_shell_port} 8101
7 ${karaf_prompt} opendaylight-user
9 ${karaf_password} karaf
12 Verify Feature Is Installed
13 [Documentation] Will Succeed if the given ${feature_name} is found in the output of "feature:list -i"
14 [Arguments] ${feature_name} ${controller}=${CONTROLLER} ${karaf_port}=${karaf_shell_port}
15 ${output}= Issue Command On Karaf Console feature:list -i ${controller} ${karaf_port}
16 Should Contain ${output} ${feature_name}
18 Verify Feature Is Not Installed
19 [Documentation] Will Succeed if the given ${feature_name} is NOT found in the output of "feature:list -i"
20 [Arguments] ${feature_name} ${controller}=${CONTROLLER} ${karaf_port}=${karaf_shell_port}
21 ${output}= Issue Command On Karaf Console feature:list -i ${controller} ${karaf_port}
22 Should Not Contain ${output} ${feature_name}
24 Issue Command On Karaf Console
25 [Documentation] Will execute the given ${cmd} by ssh'ing to the karaf console running on ${CONTROLLER}
26 [Arguments] ${cmd} ${controller}=${CONTROLLER} ${karaf_port}=${karaf_shell_port}
27 Open Connection ${controller} port=${karaf_port} prompt=${karaf_prompt}
28 Login ${karaf_user} ${karaf_password}
29 ${output}= Execute Command ${cmd}