X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FPrefixCounting.robot;h=3e0fc146b405faf2b40544b845e9385aafcd10c6;hb=b6e65eac5db0ec0342b2958934ba2fdc4e97b47f;hp=0c5088f3ae3570647b1c82409f92325f78f3e81c;hpb=39de3404b2681d425af82a66f7f665ecd4a2da3a;p=integration%2Ftest.git diff --git a/csit/libraries/PrefixCounting.robot b/csit/libraries/PrefixCounting.robot index 0c5088f3ae..3e0fc146b4 100644 --- a/csit/libraries/PrefixCounting.robot +++ b/csit/libraries/PrefixCounting.robot @@ -1,16 +1,16 @@ *** 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://:${RESTCONFPORT} ... or user has to provide a similar session. @@ -20,7 +20,7 @@ Resource ${CURDIR}/WaitUtils.robot 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 @@ -32,7 +32,7 @@ Get_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. - ${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}