From: Julien Tribino Date: Tue, 5 Nov 2013 20:14:41 +0000 (+0100) Subject: fix in omf the way to configure the interface X-Git-Tag: nepi-3.0.0~17 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7974fc29c4fff823fcd7a1238ed05ef51ec08e79;p=nepi.git fix in omf the way to configure the interface --- diff --git a/src/nepi/resources/omf/interface.py b/src/nepi/resources/omf/interface.py index 7dd795e8..46d5ea1a 100644 --- a/src/nepi/resources/omf/interface.py +++ b/src/nepi/resources/omf/interface.py @@ -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()