fix in omf the way to configure the interface
authorJulien Tribino <julien.tribino@inria.fr>
Tue, 5 Nov 2013 20:14:41 +0000 (21:14 +0100)
committerJulien Tribino <julien.tribino@inria.fr>
Tue, 5 Nov 2013 20:14:41 +0000 (21:14 +0100)
src/nepi/resources/omf/interface.py

index 7dd795e..46d5ea1 100644 (file)
@@ -78,6 +78,8 @@ class OMFWifiInterface(OMFResource):
         """
         super(OMFWifiInterface, self).__init__(ec, guid)
 
+        self._conf = False
+
         self._omf_api = None
         self._alias = self.get('alias')
 
@@ -191,9 +193,9 @@ class OMFWifiInterface(OMFResource):
     
         # Check if the node is already deployed
         if self.state < ResourceState.PROVISIONED:
-            iface = False
-            if iface == False:
-                iface = self.configure_iface()  
+            if self._conf == False:
+                self._conf = self.configure_iface()
+        if self._conf == True:
             self.configure_ip()
 
         super(OMFWifiInterface, self).do_deploy()