+ self.set('xmppSlice', self.node.get('xmppSlice'))
+ self.set('xmppHost', self.node.get('xmppHost'))
+ self.set('xmppPort', self.node.get('xmppPort'))
+ self.set('xmppPassword', self.node.get('xmppPassword'))
+
+ if not self._omf_api :
+ self._omf_api = OMFAPIFactory.get_api(self.get('xmppSlice'),
+ self.get('xmppHost'), self.get('xmppPort'),
+ self.get('xmppPassword'), exp_id = self.exp_id)
+
+ if not self._omf_api :
+ msg = "Credentials are not initialzed. XMPP Connections impossible"
+ self.error(msg)
+ raise RuntimeError, msg
+
+ if not (self.get('mode') and self.get('type') and self.get('essid') \
+ and self.get('ip')):
+ msg = "Interface's variable are not initialized"
+ self.error(msg)
+ raise RuntimeError, msg
+
+ if not self.node.get('hostname') :
+ msg = "The channel is connected with an undefined node"
+ self.error(msg)
+ raise RuntimeError, msg
+
+ # Just for information
+ self.debug(" " + self.rtype() + " ( Guid : " + str(self._guid) +") : " + \
+ self.get('mode') + " : " + self.get('type') + " : " + \
+ self.get('essid') + " : " + self.get('ip'))
+
+ # Check if the node is already deployed
+ if self.state < ResourceState.PROVISIONED:
+ if self.configure_iface():
+ self.configure_ip()
+
+ super(OMFWifiInterface, self).deploy()