From 31c2a99e7521242e1598d31ee6d44540d90b093a Mon Sep 17 00:00:00 2001 From: Guido Trotter 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 Reviewed-by: Iustin Pop --- lib/constants.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/constants.py b/lib/constants.py index e7d5154..f127a8a 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, -- 1.7.10.4