Update the test for OMF
[nepi.git] / src / nepi / resources / omf / interface.py
index 4a7b7a7..c8c6f87 100644 (file)
@@ -40,7 +40,7 @@ class OMFWifiInterface(OMFResource):
 
     """
     _rtype = "OMFWifiInterface"
-    _authorized_connections = ["OMFNode" , "OMFChannel"]
+    _authorized_connections = ["OMFNode" , "OMFChannel", "WilabtSfaNode"]
 
     @classmethod
     def _register_attributes(cls):
@@ -307,7 +307,7 @@ class OMFWifiInterface(OMFResource):
 
         """
         if self._omf_api:
-            if self.get('version') == "6":
+            if self.get('version') == "6" and self._topic_iface :
                 if not self.release_id:
                     self.release_id = os.urandom(16).encode('hex')
                     self._omf_api.frcp_release( self.release_id, self.node.get('hostname'),self._topic_iface, res_id=self._topic_iface)