Revision 19351457 lib/constants.py

b/lib/constants.py
664 664
CONFD_REQ_MC_PIP_LIST = 5
665 665
CONFD_REQ_INSTANCES_IPS_LIST = 6
666 666

  
667
# Confd request query fields. These are used to narrow down queries.
668
# These must be strings rather than integers, because json-encoding
669
# converts them to strings anyway, as they're used as dict-keys.
670
CONFD_REQQ_LINK = "0"
671
CONFD_REQQ_IP = "1"
672
CONFD_REQQ_IPLIST = "2"
673

  
667 674
CONFD_REQS = frozenset([
668 675
  CONFD_REQ_PING,
669 676
  CONFD_REQ_NODE_ROLE_BYNAME,
......
694 701
# A few common errors for confd
695 702
CONFD_ERROR_UNKNOWN_ENTRY = 1
696 703
CONFD_ERROR_INTERNAL = 2
704
CONFD_ERROR_ARGUMENT = 3
697 705

  
698 706
# Each request is "salted" by the current timestamp.
699 707
# This constants decides how many seconds of skew to accept.

Also available in: Unified diff