Introduction

Robot keyword library (Resource) for common BGP actions concerned with counting prefixes.

Copyright (c) 2016 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

Currently, all keywords count prefixes only in ${topology}. Prefix is identified by simplistic regular expression on JSON data.

This resource assumes that RequestsLibrary has open a connection named "operational" which points to (an analogue of) http://<ip-addr>:${RESTCONFPORT} or user has to provide a similar session.

Keywords

Arguments

expected_count session
= operational
topology
= example-ipv4-topology

Documentation

Check that the count of prefixes matches the expected count. Fails if it does not. In either case, collect garbage.

Arguments

session
= operational
topology
= example-ipv4-topology

Documentation

Example_Ipv4_Topology has to give status 200 with zero prefixes.

Functional suites should use a more strict Keyword which tests for the whole JSON structure.

Arguments

session
= operational
topology
= example-ipv4-topology

Documentation

GET the ${topology} data, check status is 200, return the topology data.

Contrary to Utils.Get_Data_From_URI, this does not Log the (potentially huge) content.

Arguments

session
= operational
topology
= example-ipv4-topology

Documentation

Get topology. If not fail, return number of prefixes in the topology.

Arguments

shards_list details_exp session
= operational
topology
= example-ipv4-topology

Documentation

Get topology after the shards stability check passes. If not fail, return number of prefixes in the topology.

Documentation

Call dependency setups and construct suite variables.

Arguments

timeout
= 60s
period
= 5s
repetitions
= 1
excluded_count
= -1
session
= operational
topology
= example-ipv4-topology
shards_list
= ${EMPTY}
shards_details
= ${EMPTY}

Documentation

Each ${period} get prefix count. When called with shard list, the check is done before the count is get. After ${repetitions} of stable different from ${excluded_count} within ${timeout}, Return validator output. Fail early on getter error.

PrefixCounting

image/svg+xml