Run jvm plots for all netvirt suites
[integration/test.git] / csit / libraries / ODLTools.robot
1 *** Settings ***
2 Documentation     Robot wrapper around ODLTools.
3 Resource          ../variables/Variables.robot
4
5 *** Keywords ***
6 Version
7     [Documentation]    Get the odltools version
8     ${cmd} =    BuiltIn.Set Variable    odltools -V
9     ${rc}    ${output} =    OperatingSystem.Run And Return Rc And Output    ${cmd}
10     BuiltIn.Log    rc: ${rc}, output: ${output}
11     BuiltIn.Should Be True    '${rc}' == '0'
12     [Return]    ${output}
13
14 Get EOS
15     [Arguments]    ${node_ip}=${TOOLS_SYSTEM_IP}    ${port}=${RESTCONFPORT}
16     [Documentation]    Get the odltools version
17     ${cmd} =    BuiltIn.Set Variable    odltools show eos -i ${node_ip} -t ${port} -u ${ODL_RESTCONF_USER} -w ${ODL_RESTCONF_PASSWORD}
18     ${rc}    ${output} =    OperatingSystem.Run And Return Rc And Output    ${cmd}
19     BuiltIn.Log    rc: ${rc}, output: ${output}
20     BuiltIn.Should Be True    '${rc}' == '0'
21     [Return]    ${output}