Changed the endpoint_ip and endpoint_prefix attributes of TAP/TUN endpoints for ip...
[nepi.git] / test / resources / planetlab / tun.py
index 6c727f1..0125971 100755 (executable)
@@ -40,7 +40,7 @@ class PlanetlabTunTestCase(unittest.TestCase):
     @skipIfNotAlive
     def t_tun_create(self, host, user, identity):
 
-        ec = ExperimentController(exp_id = "test-un-create")
+        ec = ExperimentController(exp_id="test-un-create")
         
         node = ec.register_resource("planetlab::Node")
         ec.set(node, "hostname", host)
@@ -50,8 +50,8 @@ class PlanetlabTunTestCase(unittest.TestCase):
         ec.set(node, "cleanProcesses", True)
 
         tun = ec.register_resource("planetlab::Tun")
-        ec.set(tun, "endpoint_ip", "%s.1" % self.netblock)
-        ec.set(tun, "endpoint_prefix", 24)
+        ec.set(tun, "ip", "%s.1" % self.netblock)
+        ec.set(tun, "prefix", "24")
         ec.register_connection(tun, node)
 
         app = ec.register_resource("linux::Application")
@@ -63,7 +63,7 @@ class PlanetlabTunTestCase(unittest.TestCase):
 
         ec.wait_finished(app)
 
-        ping = ec.trace(app, 'stdout')
+        ping = ec.trace(app, "stdout")
         expected = """3 packets transmitted, 3 received, 0% packet loss"""
         self.assertTrue(ping.find(expected) > -1)