removed device_name from tunchan. now attribute is if_name
authorAlina Quereilhac <alina.quereilhac@inria.fr>
Wed, 17 Aug 2011 15:19:17 +0000 (17:19 +0200)
committerAlina Quereilhac <alina.quereilhac@inria.fr>
Wed, 17 Aug 2011 15:19:17 +0000 (17:19 +0200)
src/nepi/testbeds/planetlab/interfaces.py
src/nepi/testbeds/planetlab/metadata.py

index 251010d..8d0b5fa 100644 (file)
@@ -124,7 +124,6 @@ class TunIface(object):
         self.netmask = None
         
         self.up = None
-        self.device_name = None
         self.mtu = None
         self.snat = False
         self.txqueuelen = None
index 2e6adb4..169b8c8 100644 (file)
@@ -928,8 +928,8 @@ attributes = dict({
                 "value": True,
                 "validation_function": validation.is_bool
             }),
-    "device_name": dict({
-                "name": "name",
+    "if_name": dict({
+                "name": "if_name",
                 "help": "Device name",
                 "type": Attribute.STRING,
                 "flags": Attribute.ExecReadOnly | Attribute.ExecImmutable,
@@ -1210,7 +1210,7 @@ factories_info = dict({
             "configure_function": postconfigure_tuniface,
             "prestart_function": wait_tuniface,
             "box_attributes": [
-                "up", "device_name", "mtu", "snat", "pointopoint",
+                "up", "if_name", "mtu", "snat", "pointopoint",
                 "txqueuelen",
                 "tun_proto", "tun_addr", "tun_port", "tun_key", "tun_cipher",
             ],
@@ -1226,7 +1226,7 @@ factories_info = dict({
             "configure_function": postconfigure_tuniface,
             "prestart_function": wait_tuniface,
             "box_attributes": [
-                "up", "device_name", "mtu", "snat", "pointopoint",
+                "up", "if_name", "mtu", "snat", "pointopoint",
                 "txqueuelen",
                 "tun_proto", "tun_addr", "tun_port", "tun_key", "tun_cipher",
             ],