Fix bgpcep-1node-userfeatures tests
[integration/test.git] / csit / libraries / PrefixCounting.robot
index 0c5088f3ae3570647b1c82409f92325f78f3e81c..3e0fc146b405faf2b40544b845e9385aafcd10c6 100644 (file)
@@ -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://<ip-addr>:${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}