This is not implemented currently.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: René Nussbaumer <rn@google.com>
#
#
-# Copyright (C) 2009 Google Inc.
+# Copyright (C) 2009, 2012 Google Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
answer = self.reader.GetInstancesIps(link)
return status, answer
+
+
+class NodeDrbdQuery(ConfdQuery):
+ """A query for node drbd minors.
+
+ This is not implemented in the Python confd.
+
+ """
#
#
-# Copyright (C) 2009 Google Inc.
+# Copyright (C) 2009, 2012 Google Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
constants.CONFD_REQ_NODE_PIP_LIST: querylib.NodesPipsQuery,
constants.CONFD_REQ_MC_PIP_LIST: querylib.MasterCandidatesPipsQuery,
constants.CONFD_REQ_INSTANCES_IPS_LIST: querylib.InstancesIpsQuery,
+ constants.CONFD_REQ_NODE_DRBD: querylib.NodeDrbdQuery,
}
def __init__(self):
CONFD_REQ_NODE_PIP_LIST = 4
CONFD_REQ_MC_PIP_LIST = 5
CONFD_REQ_INSTANCES_IPS_LIST = 6
+CONFD_REQ_NODE_DRBD = 7
# Confd request query fields. These are used to narrow down queries.
# These must be strings rather than integers, because json-encoding
CONFD_REQ_NODE_PIP_LIST,
CONFD_REQ_MC_PIP_LIST,
CONFD_REQ_INSTANCES_IPS_LIST,
+ CONFD_REQ_NODE_DRBD,
])
CONFD_REPL_STATUS_OK = 0