Update Cluster Driver
Change-Id: I8a3a57e19637ff210548e57d41178e6f194cf694
diff --git a/TestON/tests/FUNC/FUNCnetconf/dependencies/netconf.py b/TestON/tests/FUNC/FUNCnetconf/dependencies/netconf.py
index 4ee8fcb..bed1670 100644
--- a/TestON/tests/FUNC/FUNCnetconf/dependencies/netconf.py
+++ b/TestON/tests/FUNC/FUNCnetconf/dependencies/netconf.py
@@ -38,7 +38,7 @@
the OF-Config server is running on the node to be configured
"""
startResult = main.FALSE
- startResult = main.RESTs[ 0 ].activateApp( appName="org.onosproject.netconf" )
+ startResult = main.Cluster.active( 0 ).REST.activateApp( appName="org.onosproject.netconf" )
return startResult
@@ -116,7 +116,7 @@
method = "POST"
data = main.cfgJson
configResult = main.FALSE
- sendResult = main.RESTs[ 0 ].send( url=url, method=method, data=data )
+ sendResult = main.Cluster.active( 0 ).REST.send( url=url, method=method, data=data )
main.log.info( "Device configuration request response code: " + str( sendResult[ 0 ] ) )
if ( 200 <= sendResult[ 0 ] <= 299 ):
configResult = main.TRUE
@@ -137,8 +137,8 @@
addressResult = main.FALSE
driverResult = main.FALSE
try:
- apiResult = main.RESTs[ 0 ].devices()
- cliResult = main.CLIs[ 0 ].devices()
+ apiResult = main.Cluster.active( 0 ).REST.devices()
+ cliResult = main.Cluster.active( 0 ).CLI.devices()
apiDict = json.loads( apiResult )
cliDict = json.loads( cliResult )