root/include/crm/msg_xml.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * Copyright 2004-2021 the Pacemaker project contributors
   3  *
   4  * The version control history for this file may have further details.
   5  *
   6  * This source code is licensed under the GNU Lesser General Public License
   7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
   8  */
   9 
  10 #ifndef XML_TAGS__H
  11 #  define XML_TAGS__H
  12 
  13 #ifdef __cplusplus
  14 extern "C" {
  15 #endif
  16 
  17 /* This file defines constants for various XML syntax (mainly element and
  18  * attribute names).
  19  *
  20  * For consistency, new constants should start with "PCMK_", followed by "XE"
  21  * for XML element names and "XA" for XML attribute names. Old names that don't
  22  * follow this policy should eventually be deprecated and replaced with names
  23  * that do.
  24  */
  25 
  26 /*
  27  * XML elements
  28  */
  29 
  30 /* This has been deprecated as a CIB element (an alias for <clone> with
  31  * "promotable" set to "true") since 2.0.0.
  32  */
  33 #define PCMK_XE_PROMOTABLE_LEGACY           "master"
  34 
  35 
  36 /*
  37  * XML attributes
  38  */
  39 
  40 /* These have been deprecated as CIB <clone> element attributes (aliases for
  41  * "promoted-max" and "promoted-node-max") since 2.0.0.
  42  */
  43 #define PCMK_XE_PROMOTED_MAX_LEGACY         "master-max"
  44 #define PCMK_XE_PROMOTED_NODE_MAX_LEGACY    "master-node-max"
  45 
  46 /*
  47  * Older constants that don't follow current naming
  48  */
  49 
  50 #  ifndef F_ORIG
  51 #    define F_ORIG    "src"
  52 #  endif
  53 
  54 #  ifndef F_SEQ
  55 #    define F_SEQ               "seq"
  56 #  endif
  57 
  58 #  ifndef F_SUBTYPE
  59 #    define F_SUBTYPE "subt"
  60 #  endif
  61 
  62 #  ifndef F_TYPE
  63 #    define F_TYPE    "t"
  64 #  endif
  65 
  66 #  ifndef F_CLIENTNAME
  67 #    define     F_CLIENTNAME    "cn"
  68 #  endif
  69 
  70 #  ifndef F_XML_TAGNAME
  71 #    define F_XML_TAGNAME       "__name__"
  72 #  endif
  73 
  74 #  ifndef T_CRM
  75 #    define T_CRM     "crmd"
  76 #  endif
  77 
  78 #  ifndef T_ATTRD
  79 #    define T_ATTRD     "attrd"
  80 #  endif
  81 
  82 #  define CIB_OPTIONS_FIRST "cib-bootstrap-options"
  83 
  84 #  define F_CRM_DATA                    "crm_xml"
  85 #  define F_CRM_TASK                    "crm_task"
  86 #  define F_CRM_HOST_TO                 "crm_host_to"
  87 #  define F_CRM_MSG_TYPE                F_SUBTYPE
  88 #  define F_CRM_SYS_TO                  "crm_sys_to"
  89 #  define F_CRM_SYS_FROM                "crm_sys_from"
  90 #  define F_CRM_HOST_FROM               F_ORIG
  91 #  define F_CRM_REFERENCE               XML_ATTR_REFERENCE
  92 #  define F_CRM_VERSION                 XML_ATTR_VERSION
  93 #  define F_CRM_ORIGIN                  "origin"
  94 #  define F_CRM_USER                    "crm_user"
  95 #  define F_CRM_JOIN_ID                 "join_id"
  96 #  define F_CRM_DC_LEAVING      "dc-leaving"
  97 #  define F_CRM_ELECTION_ID             "election-id"
  98 #  define F_CRM_ELECTION_AGE_S          "election-age-sec"
  99 #  define F_CRM_ELECTION_AGE_US         "election-age-nano-sec"
 100 #  define F_CRM_ELECTION_OWNER          "election-owner"
 101 #  define F_CRM_TGRAPH                  "crm-tgraph-file"
 102 #  define F_CRM_TGRAPH_INPUT            "crm-tgraph-in"
 103 
 104 #  define F_CRM_THROTTLE_MODE           "crm-limit-mode"
 105 #  define F_CRM_THROTTLE_MAX            "crm-limit-max"
 106 
 107 /*---- Common tags/attrs */
 108 #  define XML_DIFF_MARKER               "__crm_diff_marker__"
 109 #  define XML_TAG_CIB                   "cib"
 110 #  define XML_TAG_FAILED                "failed"
 111 
 112 #  define XML_ATTR_CRM_VERSION          "crm_feature_set"
 113 #  define XML_ATTR_DIGEST               "digest"
 114 #  define XML_ATTR_VALIDATION           "validate-with"
 115 #  define XML_ATTR_RA_VERSION           "ra-version"
 116 
 117 #  define XML_ATTR_QUORUM_PANIC         "no-quorum-panic"
 118 #  define XML_ATTR_HAVE_QUORUM          "have-quorum"
 119 #  define XML_ATTR_HAVE_WATCHDOG        "have-watchdog"
 120 #  define XML_ATTR_GENERATION           "epoch"
 121 #  define XML_ATTR_GENERATION_ADMIN     "admin_epoch"
 122 #  define XML_ATTR_NUMUPDATES           "num_updates"
 123 #  define XML_ATTR_TIMEOUT              "timeout"
 124 #  define XML_ATTR_ORIGIN               "crm-debug-origin"
 125 #  define XML_ATTR_TSTAMP               "crm-timestamp"
 126 #  define XML_CIB_ATTR_WRITTEN          "cib-last-written"
 127 #  define XML_ATTR_VERSION              "version"
 128 #  define XML_ATTR_DESC                 "description"
 129 #  define XML_ATTR_ID                   "id"
 130 #  define XML_ATTR_IDREF                        "id-ref"
 131 #  define XML_ATTR_ID_LONG              "long-id"
 132 #  define XML_ATTR_TYPE                 "type"
 133 #  define XML_ATTR_VERBOSE              "verbose"
 134 #  define XML_ATTR_OP                   "op"
 135 #  define XML_ATTR_DC_UUID              "dc-uuid"
 136 #  define XML_ATTR_UPDATE_ORIG          "update-origin"
 137 #  define XML_ATTR_UPDATE_CLIENT        "update-client"
 138 #  define XML_ATTR_UPDATE_USER          "update-user"
 139 
 140 #  define XML_BOOLEAN_TRUE              "true"
 141 #  define XML_BOOLEAN_FALSE             "false"
 142 #  define XML_BOOLEAN_YES               XML_BOOLEAN_TRUE
 143 #  define XML_BOOLEAN_NO                XML_BOOLEAN_FALSE
 144 
 145 #  define XML_TAG_OPTIONS               "options"
 146 
 147 /*---- top level tags/attrs */
 148 #  define XML_ATTR_REQUEST              "request"
 149 #  define XML_ATTR_RESPONSE             "response"
 150 
 151 #  define XML_ATTR_UNAME                "uname"
 152 #  define XML_ATTR_UUID                 "id"
 153 #  define XML_ATTR_REFERENCE            "reference"
 154 
 155 #  define XML_CRM_TAG_PING              "ping_response"
 156 #  define XML_PING_ATTR_STATUS          "result"
 157 #  define XML_PING_ATTR_SYSFROM         "crm_subsystem"
 158 #  define XML_PING_ATTR_CRMDSTATE   "crmd_state"
 159 #  define XML_PING_ATTR_PACEMAKERDSTATE "pacemakerd_state"
 160 #  define XML_PING_ATTR_PACEMAKERDSTATE_INIT "init"
 161 #  define XML_PING_ATTR_PACEMAKERDSTATE_STARTINGDAEMONS "starting_daemons"
 162 #  define XML_PING_ATTR_PACEMAKERDSTATE_WAITPING "wait_for_ping"
 163 #  define XML_PING_ATTR_PACEMAKERDSTATE_RUNNING "running"
 164 #  define XML_PING_ATTR_PACEMAKERDSTATE_SHUTTINGDOWN "shutting_down"
 165 #  define XML_PING_ATTR_PACEMAKERDSTATE_SHUTDOWNCOMPLETE "shutdown_complete"
 166 
 167 #  define XML_TAG_FRAGMENT              "cib_fragment"
 168 
 169 #  define XML_FAIL_TAG_CIB              "failed_update"
 170 
 171 #  define XML_FAILCIB_ATTR_ID           "id"
 172 #  define XML_FAILCIB_ATTR_OBJTYPE      "object_type"
 173 #  define XML_FAILCIB_ATTR_OP           "operation"
 174 #  define XML_FAILCIB_ATTR_REASON       "reason"
 175 
 176 /*---- CIB specific tags/attrs */
 177 #  define XML_CIB_TAG_SECTION_ALL       "all"
 178 #  define XML_CIB_TAG_CONFIGURATION     "configuration"
 179 #  define XML_CIB_TAG_STATUS            "status"
 180 #  define XML_CIB_TAG_RESOURCES         "resources"
 181 #  define XML_CIB_TAG_NODES             "nodes"
 182 #  define XML_CIB_TAG_DOMAINS           "domains"
 183 #  define XML_CIB_TAG_CONSTRAINTS       "constraints"
 184 #  define XML_CIB_TAG_CRMCONFIG         "crm_config"
 185 #  define XML_CIB_TAG_OPCONFIG          "op_defaults"
 186 #  define XML_CIB_TAG_RSCCONFIG         "rsc_defaults"
 187 #  define XML_CIB_TAG_ACLS              "acls"
 188 #  define XML_CIB_TAG_ALERTS            "alerts"
 189 #  define XML_CIB_TAG_ALERT             "alert"
 190 #  define XML_CIB_TAG_ALERT_RECIPIENT   "recipient"
 191 #  define XML_CIB_TAG_ALERT_SELECT      "select"
 192 #  define XML_CIB_TAG_ALERT_ATTRIBUTES  "select_attributes"
 193 #  define XML_CIB_TAG_ALERT_FENCING     "select_fencing"
 194 #  define XML_CIB_TAG_ALERT_NODES       "select_nodes"
 195 #  define XML_CIB_TAG_ALERT_RESOURCES   "select_resources"
 196 #  define XML_CIB_TAG_ALERT_ATTR        "attribute"
 197 
 198 #  define XML_CIB_TAG_STATE             "node_state"
 199 #  define XML_CIB_TAG_NODE              "node"
 200 #  define XML_CIB_TAG_NVPAIR            "nvpair"
 201 
 202 #  define XML_CIB_TAG_PROPSET           "cluster_property_set"
 203 #  define XML_TAG_ATTR_SETS             "instance_attributes"
 204 #  define XML_TAG_META_SETS             "meta_attributes"
 205 #  define XML_TAG_ATTRS                 "attributes"
 206 #  define XML_TAG_RSC_VER_ATTRS "rsc_versioned_attrs"
 207 #  define XML_TAG_OP_VER_ATTRS         "op_versioned_attrs"
 208 #  define XML_TAG_OP_VER_META          "op_versioned_meta"
 209 #  define XML_TAG_PARAMS                "parameters"
 210 #  define XML_TAG_PARAM                 "param"
 211 #  define XML_TAG_UTILIZATION           "utilization"
 212 
 213 #  define XML_TAG_RESOURCE_REF          "resource_ref"
 214 #  define XML_CIB_TAG_RESOURCE          "primitive"
 215 #  define XML_CIB_TAG_GROUP             "group"
 216 #  define XML_CIB_TAG_INCARNATION       "clone"
 217 #  define XML_CIB_TAG_CONTAINER         "bundle"
 218 
 219 #  define XML_CIB_TAG_RSC_TEMPLATE      "template"
 220 
 221 #  define XML_RSC_ATTR_TARGET           "container-attribute-target"
 222 #  define XML_RSC_ATTR_RESTART          "restart-type"
 223 #  define XML_RSC_ATTR_ORDERED          "ordered"
 224 #  define XML_RSC_ATTR_INTERLEAVE       "interleave"
 225 #  define XML_RSC_ATTR_INCARNATION      "clone"
 226 #  define XML_RSC_ATTR_INCARNATION_MAX  "clone-max"
 227 #  define XML_RSC_ATTR_INCARNATION_MIN  "clone-min"
 228 #  define XML_RSC_ATTR_INCARNATION_NODEMAX      "clone-node-max"
 229 #  define XML_RSC_ATTR_PROMOTABLE       "promotable"
 230 #  define XML_RSC_ATTR_PROMOTED_MAX     "promoted-max"
 231 #  define XML_RSC_ATTR_PROMOTED_NODEMAX "promoted-node-max"
 232 #  define XML_RSC_ATTR_MANAGED          "is-managed"
 233 #  define XML_RSC_ATTR_TARGET_ROLE      "target-role"
 234 #  define XML_RSC_ATTR_UNIQUE           "globally-unique"
 235 #  define XML_RSC_ATTR_NOTIFY           "notify"
 236 #  define XML_RSC_ATTR_STICKINESS       "resource-stickiness"
 237 #  define XML_RSC_ATTR_FAIL_STICKINESS  "migration-threshold"
 238 #  define XML_RSC_ATTR_FAIL_TIMEOUT     "failure-timeout"
 239 #  define XML_RSC_ATTR_MULTIPLE         "multiple-active"
 240 #  define XML_RSC_ATTR_REQUIRES         "requires"
 241 #  define XML_RSC_ATTR_CONTAINER        "container"
 242 #  define XML_RSC_ATTR_INTERNAL_RSC     "internal_rsc"
 243 #  define XML_RSC_ATTR_MAINTENANCE      "maintenance"
 244 #  define XML_RSC_ATTR_REMOTE_NODE      "remote-node"
 245 #  define XML_RSC_ATTR_CLEAR_OP         "clear_failure_op"
 246 #  define XML_RSC_ATTR_CLEAR_INTERVAL   "clear_failure_interval"
 247 #  define XML_RSC_ATTR_REMOTE_RA_ADDR   "addr"
 248 #  define XML_RSC_ATTR_REMOTE_RA_SERVER "server"
 249 #  define XML_RSC_ATTR_REMOTE_RA_PORT   "port"
 250 #  define XML_RSC_ATTR_CRITICAL         "critical"
 251 
 252 #  define XML_REMOTE_ATTR_RECONNECT_INTERVAL "reconnect_interval"
 253 
 254 #  define XML_OP_ATTR_ON_FAIL           "on-fail"
 255 #  define XML_OP_ATTR_START_DELAY       "start-delay"
 256 #  define XML_OP_ATTR_ALLOW_MIGRATE     "allow-migrate"
 257 #  define XML_OP_ATTR_ORIGIN            "interval-origin"
 258 #  define XML_OP_ATTR_PENDING           "record-pending"
 259 #  define XML_OP_ATTR_DIGESTS_ALL       "digests-all"
 260 #  define XML_OP_ATTR_DIGESTS_SECURE    "digests-secure"
 261 
 262 #  define XML_CIB_TAG_LRM               "lrm"
 263 #  define XML_LRM_TAG_RESOURCES         "lrm_resources"
 264 #  define XML_LRM_TAG_RESOURCE          "lrm_resource"
 265 #  define XML_LRM_TAG_RSC_OP            "lrm_rsc_op"
 266 #  define XML_AGENT_ATTR_CLASS          "class"
 267 #  define XML_AGENT_ATTR_PROVIDER       "provider"
 268 
 269 #  define XML_CIB_ATTR_REPLACE          "replace"
 270 #  define XML_CIB_ATTR_SOURCE           "source"
 271 
 272 #  define XML_CIB_ATTR_PRIORITY         "priority"
 273 #  define XML_CIB_ATTR_SOURCE           "source"
 274 
 275 #  define XML_NODE_JOIN_STATE           "join"
 276 #  define XML_NODE_EXPECTED             "expected"
 277 #  define XML_NODE_IN_CLUSTER           "in_ccm"
 278 #  define XML_NODE_IS_PEER      "crmd"
 279 #  define XML_NODE_IS_REMOTE            "remote_node"
 280 #  define XML_NODE_IS_FENCED            "node_fenced"
 281 #  define XML_NODE_IS_MAINTENANCE   "node_in_maintenance"
 282 
 283 #  define XML_CIB_ATTR_SHUTDOWN         "shutdown"
 284 
 285 /* Aside from being an old name for the executor, LRM is a misnomer here because
 286  * the controller and scheduler use these to track actions, which are not always
 287  * executor operations.
 288  */
 289 
 290 // XML attribute that takes interval specification (user-facing configuration)
 291 #  define XML_LRM_ATTR_INTERVAL         "interval"
 292 
 293 // XML attribute that takes interval in milliseconds (daemon APIs)
 294 // (identical value as above, but different constant allows clearer code intent)
 295 #  define XML_LRM_ATTR_INTERVAL_MS  XML_LRM_ATTR_INTERVAL
 296 
 297 #  define XML_LRM_ATTR_TASK             "operation"
 298 #  define XML_LRM_ATTR_TASK_KEY         "operation_key"
 299 #  define XML_LRM_ATTR_TARGET           "on_node"
 300 #  define XML_LRM_ATTR_TARGET_UUID      "on_node_uuid"
 301 /*! Actions to be executed on Pacemaker Remote nodes are routed through the
 302  *  controller on the cluster node hosting the remote connection. That cluster
 303  *  node is considered the router node for the action.
 304  */
 305 #  define XML_LRM_ATTR_ROUTER_NODE  "router_node"
 306 #  define XML_LRM_ATTR_RSCID            "rsc-id"
 307 #  define XML_LRM_ATTR_OPSTATUS         "op-status"
 308 #  define XML_LRM_ATTR_RC               "rc-code"
 309 #  define XML_LRM_ATTR_CALLID           "call-id"
 310 #  define XML_LRM_ATTR_OP_DIGEST        "op-digest"
 311 #  define XML_LRM_ATTR_OP_RESTART       "op-force-restart"
 312 #  define XML_LRM_ATTR_OP_SECURE        "op-secure-params"
 313 #  define XML_LRM_ATTR_RESTART_DIGEST   "op-restart-digest"
 314 #  define XML_LRM_ATTR_SECURE_DIGEST    "op-secure-digest"
 315 #  define XML_LRM_ATTR_EXIT_REASON      "exit-reason"
 316 
 317 #  define XML_RSC_OP_LAST_CHANGE        "last-rc-change"
 318 #  define XML_RSC_OP_LAST_RUN           "last-run"  // deprecated since 2.0.3
 319 #  define XML_RSC_OP_T_EXEC             "exec-time"
 320 #  define XML_RSC_OP_T_QUEUE            "queue-time"
 321 
 322 #  define XML_LRM_ATTR_MIGRATE_SOURCE   "migrate_source"
 323 #  define XML_LRM_ATTR_MIGRATE_TARGET   "migrate_target"
 324 
 325 #  define XML_TAG_GRAPH                 "transition_graph"
 326 #  define XML_GRAPH_TAG_RSC_OP          "rsc_op"
 327 #  define XML_GRAPH_TAG_PSEUDO_EVENT    "pseudo_event"
 328 #  define XML_GRAPH_TAG_CRM_EVENT       "crm_event"
 329 #  define XML_GRAPH_TAG_DOWNED            "downed"
 330 #  define XML_GRAPH_TAG_MAINTENANCE       "maintenance"
 331 
 332 #  define XML_TAG_RULE                  "rule"
 333 #  define XML_RULE_ATTR_SCORE           "score"
 334 #  define XML_RULE_ATTR_SCORE_ATTRIBUTE "score-attribute"
 335 #  define XML_RULE_ATTR_ROLE            "role"
 336 #  define XML_RULE_ATTR_BOOLEAN_OP      "boolean-op"
 337 
 338 #  define XML_TAG_EXPRESSION            "expression"
 339 #  define XML_EXPR_ATTR_ATTRIBUTE       "attribute"
 340 #  define XML_EXPR_ATTR_OPERATION       "operation"
 341 #  define XML_EXPR_ATTR_VALUE           "value"
 342 #  define XML_EXPR_ATTR_TYPE            "type"
 343 #  define XML_EXPR_ATTR_VALUE_SOURCE    "value-source"
 344 
 345 #  define XML_CONS_TAG_RSC_DEPEND       "rsc_colocation"
 346 #  define XML_CONS_TAG_RSC_ORDER        "rsc_order"
 347 #  define XML_CONS_TAG_RSC_LOCATION     "rsc_location"
 348 #  define XML_CONS_TAG_RSC_TICKET       "rsc_ticket"
 349 #  define XML_CONS_TAG_RSC_SET          "resource_set"
 350 #  define XML_CONS_ATTR_SYMMETRICAL     "symmetrical"
 351 
 352 #  define XML_LOCATION_ATTR_DISCOVERY   "resource-discovery"
 353 
 354 #  define XML_COLOC_ATTR_SOURCE         "rsc"
 355 #  define XML_COLOC_ATTR_SOURCE_ROLE    "rsc-role"
 356 #  define XML_COLOC_ATTR_TARGET         "with-rsc"
 357 #  define XML_COLOC_ATTR_TARGET_ROLE    "with-rsc-role"
 358 #  define XML_COLOC_ATTR_NODE_ATTR      "node-attribute"
 359 #  define XML_COLOC_ATTR_SOURCE_INSTANCE        "rsc-instance"
 360 #  define XML_COLOC_ATTR_TARGET_INSTANCE        "with-rsc-instance"
 361 #  define XML_COLOC_ATTR_INFLUENCE          "influence"
 362 
 363 #  define XML_LOC_ATTR_SOURCE           "rsc"
 364 #  define XML_LOC_ATTR_SOURCE_PATTERN   "rsc-pattern"
 365 
 366 #  define XML_ORDER_ATTR_FIRST          "first"
 367 #  define XML_ORDER_ATTR_THEN           "then"
 368 #  define XML_ORDER_ATTR_FIRST_ACTION   "first-action"
 369 #  define XML_ORDER_ATTR_THEN_ACTION    "then-action"
 370 #  define XML_ORDER_ATTR_FIRST_INSTANCE "first-instance"
 371 #  define XML_ORDER_ATTR_THEN_INSTANCE  "then-instance"
 372 #  define XML_ORDER_ATTR_KIND           "kind"
 373 
 374 #  define XML_TICKET_ATTR_TICKET        "ticket"
 375 #  define XML_TICKET_ATTR_LOSS_POLICY   "loss-policy"
 376 
 377 #  define XML_NVPAIR_ATTR_NAME          "name"
 378 #  define XML_NVPAIR_ATTR_VALUE         "value"
 379 
 380 #  define XML_NODE_ATTR_RSC_DISCOVERY   "resource-discovery-enabled"
 381 
 382 #  define XML_CONFIG_ATTR_DC_DEADTIME   "dc-deadtime"
 383 #  define XML_CONFIG_ATTR_ELECTION_FAIL "election-timeout"
 384 #  define XML_CONFIG_ATTR_FORCE_QUIT    "shutdown-escalation"
 385 #  define XML_CONFIG_ATTR_RECHECK       "cluster-recheck-interval"
 386 #  define XML_CONFIG_ATTR_FENCE_REACTION        "fence-reaction"
 387 #  define XML_CONFIG_ATTR_SHUTDOWN_LOCK         "shutdown-lock"
 388 #  define XML_CONFIG_ATTR_SHUTDOWN_LOCK_LIMIT   "shutdown-lock-limit"
 389 #  define XML_CONFIG_ATTR_PRIORITY_FENCING_DELAY "priority-fencing-delay"
 390 
 391 #  define XML_ALERT_ATTR_PATH           "path"
 392 #  define XML_ALERT_ATTR_TIMEOUT        "timeout"
 393 #  define XML_ALERT_ATTR_TSTAMP_FORMAT  "timestamp-format"
 394 #  define XML_ALERT_ATTR_REC_VALUE      "value"
 395 
 396 #  define XML_CIB_TAG_GENERATION_TUPPLE "generation_tuple"
 397 
 398 #  define XML_ATTR_TRANSITION_MAGIC     "transition-magic"
 399 #  define XML_ATTR_TRANSITION_KEY       "transition-key"
 400 
 401 #  define XML_ATTR_TE_NOWAIT            "op_no_wait"
 402 #  define XML_ATTR_TE_TARGET_RC         "op_target_rc"
 403 #  define XML_TAG_TRANSIENT_NODEATTRS   "transient_attributes"
 404 
 405 #  define XML_TAG_DIFF_ADDED            "diff-added"
 406 #  define XML_TAG_DIFF_REMOVED          "diff-removed"
 407 
 408 #  define XML_ACL_TAG_USER              "acl_target"
 409 #  define XML_ACL_TAG_USERv1            "acl_user"
 410 #  define XML_ACL_TAG_GROUP             "acl_group"
 411 #  define XML_ACL_TAG_ROLE              "acl_role"
 412 #  define XML_ACL_TAG_PERMISSION        "acl_permission"
 413 #  define XML_ACL_TAG_ROLE_REF          "role"
 414 #  define XML_ACL_TAG_ROLE_REFv1        "role_ref"
 415 #  define XML_ACL_ATTR_KIND             "kind"
 416 #  define XML_ACL_TAG_READ              "read"
 417 #  define XML_ACL_TAG_WRITE             "write"
 418 #  define XML_ACL_TAG_DENY              "deny"
 419 #  define XML_ACL_ATTR_REF              "reference"
 420 #  define XML_ACL_ATTR_REFv1            "ref"
 421 #  define XML_ACL_ATTR_TAG              "object-type"
 422 #  define XML_ACL_ATTR_TAGv1            "tag"
 423 #  define XML_ACL_ATTR_XPATH            "xpath"
 424 #  define XML_ACL_ATTR_ATTRIBUTE        "attribute"
 425 
 426 #  define XML_CIB_TAG_TICKETS           "tickets"
 427 #  define XML_CIB_TAG_TICKET_STATE      "ticket_state"
 428 
 429 #  define XML_CIB_TAG_TAGS              "tags"
 430 #  define XML_CIB_TAG_TAG               "tag"
 431 #  define XML_CIB_TAG_OBJ_REF           "obj_ref"
 432 
 433 #  define XML_TAG_FENCING_TOPOLOGY      "fencing-topology"
 434 #  define XML_TAG_FENCING_LEVEL         "fencing-level"
 435 #  define XML_ATTR_STONITH_INDEX        "index"
 436 #  define XML_ATTR_STONITH_TARGET       "target"
 437 #  define XML_ATTR_STONITH_TARGET_VALUE     "target-value"
 438 #  define XML_ATTR_STONITH_TARGET_PATTERN   "target-pattern"
 439 #  define XML_ATTR_STONITH_TARGET_ATTRIBUTE "target-attribute"
 440 #  define XML_ATTR_STONITH_DEVICES      "devices"
 441 
 442 #  define XML_TAG_DIFF                  "diff"
 443 #  define XML_DIFF_VERSION              "version"
 444 #  define XML_DIFF_VSOURCE              "source"
 445 #  define XML_DIFF_VTARGET              "target"
 446 #  define XML_DIFF_CHANGE               "change"
 447 #  define XML_DIFF_LIST                 "change-list"
 448 #  define XML_DIFF_ATTR                 "change-attr"
 449 #  define XML_DIFF_RESULT               "change-result"
 450 #  define XML_DIFF_OP                   "operation"
 451 #  define XML_DIFF_PATH                 "path"
 452 #  define XML_DIFF_POSITION             "position"
 453 
 454 #  include <crm/common/xml.h>
 455 
 456 #  define ID(x) crm_element_value(x, XML_ATTR_ID)
 457 #  define TYPE(x) crm_element_name(x)
 458 
 459 
 460 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
 461 #include <crm/msg_xml_compat.h>
 462 #endif
 463 
 464 #ifdef __cplusplus
 465 }
 466 #endif
 467 
 468 #endif

/* [previous][next][first][last][top][bottom][index][help] */