Library scope: | GLOBAL |
---|
Robot keyword library (Resource) for handling the BGP speaker CLI tools
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.
TODO: RemoteBash.robot contains logic which could be reused here.
Check file for ${keyword} or ${keyword} ${value} pair and returns number of occurences
Count ${word} in ${file_name}. Expect ${expected_count} occurence(s)
Check file for ${keyword} or ${keyword} ${value} pair and returns number of occurences
Try to read SSH to see prompt, but expect to see no prompt within SSHLibrary's timeout.
Log text gathered by SSHLibrary.Read_Until_Prompt. This needs to be a separate keyword just because how Read_And_Fail_If_Prompt_Is_Seen is implemented.
Start the tool ${command} ${tool_opt}
Stop the tool if still running.
Stops the tool by sending ctrl+c
Store the ${source_file_name} to the workspace as ${target_file_name}.
Wait ${timeout} for the tool exit.