Improve error message for when adding inotify watcher fails
[ganeti-local] / lib / rpc_defs.py
index 15344b5..6ecd2b2 100644 (file)
@@ -70,7 +70,8 @@ ACCEPT_OFFLINE_NODE = object()
  ED_COMPRESS,
  ED_BLOCKDEV_RENAME,
  ED_DISKS_DICT_DP,
- ED_SINGLE_DISK_DICT_DP) = range(1, 14)
+ ED_SINGLE_DISK_DICT_DP,
+ ED_NIC_DICT) = range(1, 15)
 
 
 def _Prepare(calls):
@@ -479,6 +480,9 @@ _MISC_CALLS = [
     ], None, None, "Modify hosts file with name"),
   ("drbd_helper", MULTI, None, constants.RPC_TMO_URGENT, [],
    None, None, "Gets DRBD helper"),
+  ("restricted_command", MULTI, None, constants.RPC_TMO_SLOW, [
+    ("cmd", None, "Command name"),
+    ], None, None, "Runs restricted command"),
   ("run_oob", SINGLE, None, constants.RPC_TMO_NORMAL, [
     ("oob_program", None, None),
     ("command", None, None),