Commit 792f8e55 authored by Iustin Pop's avatar Iustin Pop
Browse files

Add a new unused confd query



This is not implemented currently.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent 7b2ead5a
#
#
# 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
......@@ -292,3 +292,11 @@ class InstancesIpsQuery(ConfdQuery):
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
......@@ -55,6 +55,7 @@ class ConfdProcessor(object):
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):
......
......@@ -1960,6 +1960,7 @@ CONFD_REQ_CLUSTER_MASTER = 3
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
......@@ -1981,6 +1982,7 @@ CONFD_REQS = frozenset([
CONFD_REQ_NODE_PIP_LIST,
CONFD_REQ_MC_PIP_LIST,
CONFD_REQ_INSTANCES_IPS_LIST,
CONFD_REQ_NODE_DRBD,
])
CONFD_REPL_STATUS_OK = 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment