*** Settings ***
Documentation 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.
Resource ${CURDIR}/ScalarClosures.robot
*** Variables ***
-${PC_NW_TOPOLOGY} ${OPERATIONAL_API}/network-topology:network-topology/topology
+${PC_NW_TOPOLOGY} ${REST_API}/network-topology:network-topology/topology
*** Keywords ***
PC_Setup
[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.
- ${response} = RequestsLibrary.Get_Request ${session} ${PC_NW_TOPOLOGY}/${topology}
+ ${response} = RequestsLibrary.Get_Request ${session} ${PC_NW_TOPOLOGY}=${topology}?content=nonconfig
Run_Keyword_If ${response.status_code} != 200 Fail Get on ${topology} returned status code ${response.status_code} with message: ${response.text}
[Return] ${response.text}