Changing ResourceManager naming for platform::ResourceName
[nepi.git] / examples / omf / testing / nepi_omf5_nitos_xeyes.py
index b39c335..818e1c9 100644 (file)
@@ -47,7 +47,7 @@ from nepi.execution.ec import ExperimentController
 ec = ExperimentController()
 
 # Create and Configure the Nodes
-node1 = ec.register_resource("OMFNode")
+node1 = ec.register_resource("omf::Node")
 ec.set(node1, 'hostname', 'omf.nitos.node0XX')
 ec.set(node1, 'xmppServer', "nitlab.inf.uth.gr")
 ec.set(node1, 'xmppUser', "<YOUR-SLICE>")
@@ -56,7 +56,7 @@ ec.set(node1, 'xmppPassword', "1234")
 ec.set(node1, 'version', "5")
 
 # Create and Configure the Interfaces
-iface1 = ec.register_resource("OMFWifiInterface")
+iface1 = ec.register_resource("omf::WifiInterface")
 ec.set(iface1, 'name', "wlan0")
 ec.set(iface1, 'mode', "adhoc")
 ec.set(iface1, 'hw_mode', "g")
@@ -65,7 +65,7 @@ ec.set(iface1, 'ip', "192.168.0.XX/24")
 ec.set(iface1, 'version', "5")
 
 # Create and Configure the Channel
-channel = ec.register_resource("OMFChannel")
+channel = ec.register_resource("omf::Channel")
 ec.set(channel, 'channel', "6")
 ec.set(channel, 'xmppServer', "ZZZ")
 ec.set(channel, 'xmppUser', "nitlab.inf.uth.gr")
@@ -74,13 +74,13 @@ ec.set(channel, 'xmppPassword', "1234")
 ec.set(channel, 'version', "5")
 
 # Create and Configure the Application
-app1 = ec.register_resource("OMFApplication")
+app1 = ec.register_resource("omf::Application")
 ec.set(app1, 'appid', 'XEyes#1')
 ec.set(app1, 'command', "/usr/bin/xeyes")
 ec.set(app1, 'env', "DISPLAY=localhost:10.0 XAUTHORITY=/root/.Xauthority")
 ec.set(app1, 'version', "5")
 
-app2 = ec.register_resource("OMFApplication")
+app2 = ec.register_resource("omf::Application")
 ec.set(app2, 'appid', 'Kill#1')
 ec.set(app2, 'path', "/usr/bin/kill")
 ec.set(app2, 'args', "xeyes")