Changing ResourceManager naming for platform::ResourceName
[nepi.git] / examples / ns3 / remote_p2p_ping.py
index 6f04d78..b96d2bf 100644 (file)
@@ -41,7 +41,7 @@ identity = options.ssh_key
 ec = ExperimentController(exp_id = "ns3-remote-p2p-ping")
 
 # Simulation will run in a remote machine
-node = ec.register_resource("LinuxNode")
+node = ec.register_resource("linux::Node")
 ec.set(node, "hostname", hostname)
 ec.set(node, "username", username)
 ec.set(node, "identity", identity)
@@ -49,7 +49,7 @@ ec.set(node, "cleanProcesses", True)
 ec.set(node, "cleanExperiment", True)
 
 # Add a simulation resource
-simu = ec.register_resource("LinuxNS3Simulation")
+simu = ec.register_resource("linux::ns3::Simulation")
 ec.set(simu, "verbose", True)
 ec.register_connection(simu, node)