Adjusting netopeer test to work with any IP and user
authorLuis Gomez <ecelgp@gmail.com>
Sun, 3 May 2015 02:05:59 +0000 (19:05 -0700)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 8 May 2015 16:18:05 +0000 (16:18 +0000)
Change-Id: I06f971708cc209893a9d17147554e12e32bf11aa
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
test/csit/suites/controller/NETCONF/010__netconf_inventory.robot

index 41f240c3f648aeab2dcabebd44f7355d8c7cf3c0..f9835b7aaef090dd32cc6c2014beef64482dc170 100644 (file)
@@ -10,6 +10,8 @@ Library           ../../../libraries/Common.py
 Variables         ../../../variables/Variables.py
 
 *** Variables ***
+${NETOPEER}             ${MININET}
+${NETOPEER_USER}        ${MININET_USER}
 ${FILE}                 ${CURDIR}/../../../variables/xmls/netconf.xml
 ${REST_CONT_CONF}       /restconf/config/network-topology:network-topology/topology/topology-netconf
 ${REST_CONT_OPER}       /restconf/operational/network-topology:network-topology/topology/topology-netconf
@@ -21,8 +23,8 @@ Add NetConf device
     [Documentation]    Add NetConf device using REST
     [Tags]     netconf
     ${XML1}    Get File    ${FILE}
-    ${XML2}    Replace String    ${XML1}    127.0.0.1    ${MININET}
-    ${body}    Replace String    ${XML2}    mininet      ${MININET_USER}
+    ${XML2}    Replace String    ${XML1}    127.0.0.1    ${NETOPEER}
+    ${body}    Replace String    ${XML2}    mininet    ${NETOPEER_USER}
     Log    ${body}
     ${resp}    Post    session    ${REST_CONT_CONF}/${REST_NTPR_CONF}    data=${body}
     Log    ${resp.content}