Adding protection levels to hosts. Allows the user to specify how much
the repair operation is allowed to do on the host (e.g., do not repair,
repair filesystem only, allow reimaging).

Risk: low
Visbility: medium (adding a new input field)


git-svn-id: http://test.kernel.org/svn/autotest/trunk@1771 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/rpc_interface.py b/frontend/afe/rpc_interface.py
index f482530..450fd56 100644
--- a/frontend/afe/rpc_interface.py
+++ b/frontend/afe/rpc_interface.py
@@ -65,9 +65,9 @@
 
 # hosts
 
-def add_host(hostname, status=None, locked=None):
+def add_host(hostname, status=None, locked=None, protection=None):
     return models.Host.add_object(hostname=hostname, status=status,
-                                  locked=locked).id
+                                  locked=locked, protection=protection).id
 
 
 def modify_host(id, **data):