Introduction

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.

Keywords

Arguments

file_name keyword value
= ''

Documentation

Check file for ${keyword} or ${keyword} ${value} pair and returns number of occurences

Arguments

file_name word expected_count

Documentation

Count ${word} in ${file_name}. Expect ${expected_count} occurence(s)

Arguments

file_name keyword value
= ''

Documentation

Check file for ${keyword} or ${keyword} ${value} pair and returns number of occurences

Documentation

Try to read SSH to see prompt, but expect to see no prompt within SSHLibrary's timeout.

Documentation

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.

Arguments

command tool_opt

Documentation

Start the tool ${command} ${tool_opt}

Arguments

command until_phrase

Documentation

Stop the tool if still running.

Documentation

Stops the tool by sending ctrl+c

Arguments

source_file_name target_file_name

Documentation

Store the ${source_file_name} to the workspace as ${target_file_name}.

Arguments

timeout

Documentation

Wait ${timeout} for the tool exit.

BGPcliKeywords

image/svg+xml