From 31c2a99e7521242e1598d31ee6d44540d90b093a Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Sat, 8 Aug 2009 14:17:58 +0100
Subject: [PATCH] Reply status constants for confd

These are valid values for the "status" field in objects.ConfdReply

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 lib/constants.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/lib/constants.py b/lib/constants.py
index e7d515401..f127a8a93 100644
--- a/lib/constants.py
+++ b/lib/constants.py
@@ -628,6 +628,16 @@ CONFD_REQS = frozenset([
   CONFD_REQ_NODE_PIP_BY_INSTANCE_IP,
   ])
 
+CONFD_REPL_STATUS_OK = 0
+CONFD_REPL_STATUS_ERROR = 1
+CONFD_REPL_STATUS_NOTIMPLEMENTED = 2
+
+CONFD_REPL_STATUSES = frozenset([
+  CONFD_REPL_STATUS_OK,
+  CONFD_REPL_STATUS_ERROR,
+  CONFD_REPL_STATUS_NOTIMPLEMENTED,
+  ])
+
 (CONFD_NODE_ROLE_MASTER,
  CONFD_NODE_ROLE_CANDIDATE,
  CONFD_NODE_ROLE_OFFLINE,
-- 
GitLab