Adding help and background class atrributes to ResourceManager
[nepi.git] / src / nepi / resources / linux / interface.py
index 68c46eb..26a1549 100644 (file)
@@ -36,6 +36,8 @@ import time
 @clsinit
 class LinuxInterface(ResourceManager):
     _rtype = "LinuxInterface"
+    _help = "Controls network devices on Linux hosts through the ifconfig tool"
+    _backend = "linux"
 
     @classmethod
     def _register_attributes(cls):
@@ -240,7 +242,7 @@ class LinuxInterface(ResourceManager):
                 self.discover()
                 self.provision()
             except:
-                self._state = ResourceState.FAILED
+                self.fail()
                 raise
 
             super(LinuxInterface, self).deploy()