Handle case when Get VM IP is status FAIL
[integration/test.git] / csit / libraries / BGPcliKeywords.robot
index 6b59f7ba38c47a1f3e7c550b01a4bb9a4960d156..6242ef9b6a4ab35ed8b80dddd7e4e9c50bc1b6c5 100644 (file)
@@ -1,18 +1,20 @@
 *** Settings ***
 Documentation     Robot keyword library (Resource) for handling the BGP speaker CLI tools
 ...
-...               Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
+...               Copyright (c) 2015,2017 Cisco Systems, Inc. and others. All rights reserved.
 ...
 ...               This program and the accompanying materials are made available under the
 ...               terms of the Eclipse Public License v1.0 which accompanies this distribution,
 ...               and is available at http://www.eclipse.org/legal/epl-v10.html
 ...
 ...               This library contains keywords to handle command line tools in BGP Application
-...               for handling shell connections
+...               for handling shell connections.
+...
+...               TODO: RemoteBash.robot contains logic which could be reused here.
 Library           SSHLibrary    timeout=10s
 Library           RequestsLibrary
 Variables         ${CURDIR}/../variables/Variables.py
-Resource          ${CURDIR}/Utils.robot
+Resource          ${CURDIR}/RemoteBash.robot
 
 *** Keywords ***
 Start_Console_Tool
@@ -29,7 +31,7 @@ Wait_Until_Console_Tool_Finish
 
 Stop_Console_Tool
     [Documentation]    Stop the tool if still running.
-    Utils.Write_Bare_Ctrl_C
+    RemoteBash.Write_Bare_Ctrl_C
     ${output}=    SSHLibrary.Read    delay=1s
     BuiltIn.Log    ${output}