1
2
3
4
5
6
7
8
9
10 #ifndef PCMK__CRM_MSG_XML_COMPAT__H
11 # define PCMK__CRM_MSG_XML_COMPAT__H
12
13 #include <crm/common/agents.h>
14 #include <crm/common/xml.h>
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20
21
22
23
24
25
26
27
28
29
30 #define XML_RSC_ATTR_INCARNATION_MAX PCMK_META_CLONE_MAX
31
32
33 #define XML_RSC_ATTR_INCARNATION_MIN PCMK_META_CLONE_MIN
34
35
36 #define XML_RSC_ATTR_INCARNATION_NODEMAX PCMK_META_CLONE_NODE_MAX
37
38
39 #define XML_RSC_ATTR_PROMOTED_MAX PCMK_META_PROMOTED_MAX
40
41
42 #define XML_RSC_ATTR_PROMOTED_NODEMAX PCMK_META_PROMOTED_NODE_MAX
43
44
45 #define XML_RSC_ATTR_PROVIDES PCMK_STONITH_PROVIDES
46
47
48 #define PCMK_XE_PROMOTABLE_LEGACY "master"
49
50
51 #define XML_CIB_TAG_MASTER PCMK_XE_PROMOTABLE_LEGACY
52
53
54 #define PCMK_XA_PROMOTED_MAX_LEGACY "master-max"
55
56
57 #define PCMK_XE_PROMOTED_MAX_LEGACY PCMK_XA_PROMOTED_MAX_LEGACY
58
59
60 #define XML_RSC_ATTR_MASTER_MAX PCMK_XA_PROMOTED_MAX_LEGACY
61
62
63 #define PCMK_XA_PROMOTED_NODE_MAX_LEGACY "master-node-max"
64
65
66 #define PCMK_XE_PROMOTED_NODE_MAX_LEGACY PCMK_XA_PROMOTED_NODE_MAX_LEGACY
67
68
69 #define XML_RSC_ATTR_MASTER_NODEMAX PCMK_XA_PROMOTED_NODE_MAX_LEGACY
70
71
72 #define XML_RSC_ATTR_FAIL_STICKINESS PCMK_META_MIGRATION_THRESHOLD
73
74
75 #define XML_RSC_ATTR_FAIL_TIMEOUT PCMK_META_FAILURE_TIMEOUT
76
77
78 #define XML_ATTR_RA_VERSION "ra-version"
79
80
81 #define XML_TAG_FRAGMENT "cib_fragment"
82
83
84 #define XML_TAG_RSC_VER_ATTRS "rsc_versioned_attrs"
85
86
87 #define XML_TAG_OP_VER_ATTRS "op_versioned_attrs"
88
89
90 #define XML_TAG_OP_VER_META "op_versioned_meta"
91
92
93 #define XML_ATTR_UUID "id"
94
95
96 #define XML_ATTR_VERBOSE "verbose"
97
98
99 #define XML_CIB_TAG_DOMAINS "domains"
100
101
102 #define XML_CIB_ATTR_SOURCE "source"
103
104
105 #define XML_NODE_EXPECTED "expected"
106
107
108 #define XML_NODE_IN_CLUSTER "in_ccm"
109
110
111 #define XML_NODE_IS_PEER "crmd"
112
113
114 #define XML_NODE_JOIN_STATE "join"
115
116
117 #define XML_RSC_OP_LAST_RUN "last-run"
118
119
120 #define TYPE(x) (((x) == NULL)? NULL : (const char *) ((x)->name))
121
122
123 #define XML_CONFIG_ATTR_RECHECK PCMK_OPT_CLUSTER_RECHECK_INTERVAL
124
125
126 #define XML_CONFIG_ATTR_DC_DEADTIME PCMK_OPT_DC_DEADTIME
127
128
129 #define XML_CONFIG_ATTR_ELECTION_FAIL PCMK_OPT_ELECTION_TIMEOUT
130
131
132 #define XML_CONFIG_ATTR_FENCE_REACTION PCMK_OPT_FENCE_REACTION
133
134
135 #define XML_ATTR_HAVE_WATCHDOG PCMK_OPT_HAVE_WATCHDOG
136
137
138 #define XML_CONFIG_ATTR_NODE_PENDING_TIMEOUT PCMK_OPT_NODE_PENDING_TIMEOUT
139
140
141 #define XML_CONFIG_ATTR_PRIORITY_FENCING_DELAY PCMK_OPT_PRIORITY_FENCING_DELAY
142
143
144 #define XML_CONFIG_ATTR_FORCE_QUIT PCMK_OPT_SHUTDOWN_ESCALATION
145
146
147 #define XML_CONFIG_ATTR_SHUTDOWN_LOCK PCMK_OPT_SHUTDOWN_LOCK
148
149
150 #define XML_CONFIG_ATTR_SHUTDOWN_LOCK_LIMIT PCMK_OPT_SHUTDOWN_LOCK_LIMIT
151
152
153 #define XML_ATTR_CRM_VERSION PCMK_XA_CRM_FEATURE_SET
154
155
156 #define XML_ATTR_DIGEST "digest"
157
158
159 #define XML_ATTR_VALIDATION PCMK_XA_VALIDATE_WITH
160
161
162 #define XML_ATTR_QUORUM_PANIC PCMK_XA_NO_QUORUM_PANIC
163
164
165 #define XML_ATTR_HAVE_QUORUM PCMK_XA_HAVE_QUORUM
166
167
168 #define XML_ATTR_GENERATION PCMK_XA_EPOCH
169
170
171 #define XML_ATTR_GENERATION_ADMIN PCMK_XA_ADMIN_EPOCH
172
173
174 #define XML_ATTR_NUMUPDATES PCMK_XA_NUM_UPDATES
175
176
177 #define XML_ATTR_ORIGIN PCMK_XA_CRM_DEBUG_ORIGIN
178
179
180 #define XML_ATTR_TSTAMP PCMK_XA_CRM_TIMESTAMP
181
182
183 #define XML_CIB_ATTR_WRITTEN PCMK_XA_CIB_LAST_WRITTEN
184
185
186 #define XML_ATTR_VERSION PCMK_XA_VERSION
187
188
189 #define XML_ATTR_DESC PCMK_XA_DESCRIPTION
190
191
192 #define XML_ATTR_ID PCMK_XA_ID
193
194
195 #define XML_FAILCIB_ATTR_ID PCMK_XA_ID
196
197
198 #define XML_RSC_ATTR_TARGET PCMK_META_CONTAINER_ATTRIBUTE_TARGET
199
200
201 #define XML_RSC_ATTR_RESTART "restart-type"
202
203
204 #define XML_RSC_ATTR_ORDERED PCMK_META_ORDERED
205
206
207 #define XML_RSC_ATTR_INTERLEAVE PCMK_META_INTERLEAVE
208
209
210 #define XML_RSC_ATTR_INCARNATION "clone"
211
212
213 #define XML_RSC_ATTR_PROMOTABLE PCMK_META_PROMOTABLE
214
215
216 #define XML_RSC_ATTR_MANAGED PCMK_META_IS_MANAGED
217
218
219 #define XML_RSC_ATTR_TARGET_ROLE PCMK_META_TARGET_ROLE
220
221
222 #define XML_RSC_ATTR_UNIQUE PCMK_META_GLOBALLY_UNIQUE
223
224
225 #define XML_RSC_ATTR_NOTIFY PCMK_META_NOTIFY
226
227
228 #define XML_RSC_ATTR_STICKINESS PCMK_META_RESOURCE_STICKINESS
229
230
231 #define XML_RSC_ATTR_MULTIPLE PCMK_META_MULTIPLE_ACTIVE
232
233
234 #define XML_RSC_ATTR_REQUIRES PCMK_META_REQUIRES
235
236
237 #define XML_RSC_ATTR_CONTAINER "container"
238
239
240 #define XML_RSC_ATTR_INTERNAL_RSC "internal_rsc"
241
242
243 #define XML_RSC_ATTR_MAINTENANCE PCMK_META_MAINTENANCE
244
245
246 #define XML_RSC_ATTR_REMOTE_NODE PCMK_META_REMOTE_NODE
247
248
249 #define XML_RSC_ATTR_CLEAR_OP "clear_failure_op"
250
251
252 #define XML_RSC_ATTR_CLEAR_INTERVAL "clear_failure_interval"
253
254
255 #define XML_RSC_ATTR_CRITICAL PCMK_META_CRITICAL
256
257
258 #define XML_OP_ATTR_ALLOW_MIGRATE PCMK_META_ALLOW_MIGRATE
259
260
261 #define XML_BOOLEAN_YES PCMK_VALUE_TRUE
262
263
264 #define XML_BOOLEAN_NO PCMK_VALUE_FALSE
265
266
267 #define XML_RSC_ATTR_REMOTE_RA_ADDR PCMK_REMOTE_RA_ADDR
268
269
270 #define XML_RSC_ATTR_REMOTE_RA_SERVER PCMK_REMOTE_RA_SERVER
271
272
273 #define XML_RSC_ATTR_REMOTE_RA_PORT PCMK_REMOTE_RA_PORT
274
275
276 #define XML_REMOTE_ATTR_RECONNECT_INTERVAL PCMK_REMOTE_RA_RECONNECT_INTERVAL
277
278
279 #define XML_ATTR_NAME PCMK_XA_NAME
280
281
282 #define XML_NVPAIR_ATTR_NAME PCMK_XA_NAME
283
284
285 #define XML_EXPR_ATTR_VALUE PCMK_XA_VALUE
286
287
288 #define XML_NVPAIR_ATTR_VALUE PCMK_XA_VALUE
289
290
291 #define XML_ALERT_ATTR_REC_VALUE PCMK_XA_VALUE
292
293
294 #define XML_ATTR_IDREF PCMK_XA_ID_REF
295
296
297 #define XML_ATTR_ID_LONG "long-id"
298
299
300 #define XML_ATTR_TYPE PCMK_XA_TYPE
301
302
303 #define XML_EXPR_ATTR_TYPE PCMK_XA_TYPE
304
305
306 #define XML_AGENT_ATTR_PROVIDER PCMK_XA_PROVIDER
307
308
309 #define XML_AGENT_ATTR_CLASS PCMK_XA_CLASS
310
311
312 #define XML_ATTR_OP PCMK_XE_OP
313
314
315 #define XML_ATTR_DC_UUID PCMK_XA_DC_UUID
316
317
318 #define XML_ATTR_UPDATE_ORIG PCMK_XA_UPDATE_ORIGIN
319
320
321 #define XML_ATTR_UPDATE_CLIENT PCMK_XA_UPDATE_CLIENT
322
323
324 #define XML_ATTR_UPDATE_USER PCMK_XA_UPDATE_USER
325
326
327 #define XML_ATTR_REQUEST PCMK_XA_REQUEST
328
329
330 #define XML_ATTR_RESPONSE "response"
331
332
333 #define XML_ATTR_UNAME PCMK_XA_UNAME
334
335
336 #define XML_ATTR_REFERENCE PCMK_XA_REFERENCE
337
338
339 #define XML_ACL_ATTR_REF PCMK_XA_REFERENCE
340
341
342 #define F_CRM_REFERENCE PCMK_XA_REFERENCE
343
344
345 #define XML_ATTR_TRANSITION_MAGIC "transition-magic"
346
347
348 #define XML_ATTR_TRANSITION_KEY "transition-key"
349
350
351 #define XML_ATTR_STONITH_INDEX PCMK_XA_INDEX
352
353
354 #define XML_ATTR_STONITH_TARGET PCMK_XA_TARGET
355
356
357 #define XML_ATTR_STONITH_TARGET_VALUE PCMK_XA_TARGET_VALUE
358
359
360 #define XML_ATTR_STONITH_TARGET_PATTERN PCMK_XA_TARGET_PATTERN
361
362
363 #define XML_ATTR_STONITH_TARGET_ATTRIBUTE PCMK_XA_TARGET_ATTRIBUTE
364
365
366 #define XML_ATTR_STONITH_DEVICES PCMK_XA_DEVICES
367
368 #ifndef F_ORIG
369
370 #define F_ORIG "src"
371 #endif
372
373
374 #define F_CRM_HOST_FROM F_ORIG
375
376 #ifndef F_SEQ
377
378 #define F_SEQ "seq"
379 #endif
380
381 #ifndef F_SUBTYPE
382
383 #define F_SUBTYPE "subt"
384 #endif
385
386
387 #define F_CRM_MSG_TYPE F_SUBTYPE
388
389 #ifndef F_TYPE
390
391 #define F_TYPE "t"
392 #endif
393
394 #ifndef F_CLIENTNAME
395
396 #define F_CLIENTNAME "cn"
397 #endif
398
399 #ifndef F_XML_TAGNAME
400
401 #define F_XML_TAGNAME "__name__"
402 #endif
403
404
405 #define XML_BOOLEAN_TRUE PCMK_VALUE_TRUE
406
407
408 #define XML_BOOLEAN_FALSE PCMK_VALUE_FALSE
409
410
411 #define F_CRM_TASK "crm_task"
412
413
414 #define F_CRM_HOST_TO "crm_host_to"
415
416
417 #define F_CRM_SYS_TO "crm_sys_to"
418
419
420 #define F_CRM_SYS_FROM "crm_sys_from"
421
422
423 #define F_CRM_VERSION PCMK_XA_VERSION
424
425
426 #define F_CRM_ORIGIN PCMK_XA_ORIGIN
427
428
429 #define F_CRM_USER "crm_user"
430
431
432 #define F_CRM_JOIN_ID "join_id"
433
434
435 #define F_CRM_DC_LEAVING "dc-leaving"
436
437
438 #define F_CRM_ELECTION_ID "election-id"
439
440
441 #define F_CRM_ELECTION_AGE_S "election-age-sec"
442
443
444 #define F_CRM_ELECTION_AGE_US "election-age-nano-sec"
445
446
447 #define F_CRM_ELECTION_OWNER "election-owner"
448
449
450 #define F_CRM_TGRAPH "crm-tgraph-file"
451
452
453 #define F_CRM_TGRAPH_INPUT "crm-tgraph-in"
454
455
456 #define F_CRM_THROTTLE_MODE "crm-limit-mode"
457
458
459 #define F_CRM_THROTTLE_MAX "crm-limit-max"
460
461
462 #define XML_PING_ATTR_STATUS PCMK_XA_RESULT
463
464
465 #define XML_PING_ATTR_SYSFROM "crm_subsystem"
466
467
468 #define XML_PING_ATTR_CRMDSTATE "crmd_state"
469
470
471 #define XML_PING_ATTR_PACEMAKERDSTATE "pacemakerd_state"
472
473
474 #define XML_FAILCIB_ATTR_OBJTYPE "object_type"
475
476
477 #define XML_FAILCIB_ATTR_OP PCMK_XA_OPERATION
478
479
480 #define XML_LRM_ATTR_TASK PCMK_XA_OPERATION
481
482
483 #define XML_EXPR_ATTR_OPERATION PCMK_XA_OPERATION
484
485
486 #define XML_DIFF_OP PCMK_XA_OPERATION
487
488
489 #define XML_FAILCIB_ATTR_REASON PCMK_XA_REASON
490
491
492 #define XML_ATTR_TIMEOUT PCMK_META_TIMEOUT
493
494
495 #define XML_ALERT_ATTR_TIMEOUT PCMK_META_TIMEOUT
496
497
498 #define XML_ALERT_ATTR_PATH PCMK_XA_PATH
499
500
501 #define XML_DIFF_PATH PCMK_XA_PATH
502
503
504 #define XML_ALERT_ATTR_TSTAMP_FORMAT PCMK_META_TIMESTAMP_FORMAT
505
506
507 #define XML_LRM_ATTR_INTERVAL PCMK_META_INTERVAL
508
509
510 #define XML_LRM_ATTR_INTERVAL_MS PCMK_META_INTERVAL
511
512
513 #define XML_CIB_ATTR_REPLACE "replace"
514
515
516 #define XML_COLOC_ATTR_SOURCE_INSTANCE "rsc-instance"
517
518
519 #define XML_COLOC_ATTR_TARGET_INSTANCE "with-rsc-instance"
520
521
522 #define XML_OP_ATTR_ON_FAIL PCMK_META_ON_FAIL
523
524
525 #define XML_OP_ATTR_START_DELAY PCMK_META_START_DELAY
526
527
528 #define XML_OP_ATTR_ORIGIN PCMK_META_INTERVAL_ORIGIN
529
530
531 #define XML_OP_ATTR_PENDING PCMK_META_RECORD_PENDING
532
533
534 #define XML_OP_ATTR_DIGESTS_ALL "digests-all"
535
536
537 #define XML_OP_ATTR_DIGESTS_SECURE "digests-secure"
538
539
540 #define XML_CIB_ATTR_PRIORITY "priority"
541
542
543 #define XML_LRM_ATTR_TASK_KEY "operation_key"
544
545
546 #define XML_LRM_ATTR_TARGET "on_node"
547
548
549 #define XML_LRM_ATTR_TARGET_UUID "on_node_uuid"
550
551
552 #define XML_ORDER_ATTR_FIRST_INSTANCE "first-instance"
553
554
555 #define XML_ORDER_ATTR_THEN_INSTANCE "then-instance"
556
557
558 #define XML_TAG_DIFF_ADDED "diff-added"
559
560
561 #define XML_TAG_DIFF_REMOVED "diff-removed"
562
563
564 #define XML_ATTR_TE_NOWAIT "op_no_wait"
565
566
567 #define XML_ATTR_TE_TARGET_RC "op_target_rc"
568
569
570 #define XML_LRM_ATTR_ROUTER_NODE "router_node"
571
572
573 #define XML_LRM_ATTR_RSCID "rsc-id"
574
575
576 #define XML_LRM_ATTR_OPSTATUS "op-status"
577
578
579 #define XML_LRM_ATTR_RC "rc-code"
580
581
582 #define XML_LRM_ATTR_CALLID "call-id"
583
584
585 #define XML_LRM_ATTR_OP_DIGEST "op-digest"
586
587
588 #define XML_LRM_ATTR_OP_RESTART "op-force-restart"
589
590
591 #define XML_LRM_ATTR_OP_SECURE "op-secure-params"
592
593
594 #define XML_LRM_ATTR_RESTART_DIGEST "op-restart-digest"
595
596
597 #define XML_LRM_ATTR_SECURE_DIGEST "op-secure-digest"
598
599
600 #define XML_LRM_ATTR_EXIT_REASON PCMK_XA_EXIT_REASON
601
602
603 #define XML_RSC_OP_LAST_CHANGE PCMK_XA_LAST_RC_CHANGE
604
605
606 #define XML_RSC_OP_T_EXEC PCMK_XA_EXEC_TIME
607
608
609 #define XML_RSC_OP_T_QUEUE PCMK_XA_QUEUE_TIME
610
611
612 #define XML_LRM_ATTR_MIGRATE_SOURCE "migrate_source"
613
614
615 #define XML_LRM_ATTR_MIGRATE_TARGET "migrate_target"
616
617
618 #define XML_RULE_ATTR_SCORE PCMK_XA_SCORE
619
620
621 #define XML_RULE_ATTR_SCORE_ATTRIBUTE PCMK_XA_SCORE_ATTRIBUTE
622
623
624 #define XML_ACL_TAG_ROLE_REF PCMK_XE_ROLE
625
626
627 #define XML_RULE_ATTR_ROLE PCMK_XA_ROLE
628
629
630 #define XML_RULE_ATTR_BOOLEAN_OP PCMK_XA_BOOLEAN_OP
631
632
633 #define XML_EXPR_ATTR_ATTRIBUTE PCMK_XA_ATTRIBUTE
634
635
636 #define XML_ACL_ATTR_ATTRIBUTE PCMK_XA_ATTRIBUTE
637
638
639 #define XML_EXPR_ATTR_VALUE_SOURCE PCMK_XA_VALUE_SOURCE
640
641
642 #define XML_CONS_ATTR_SYMMETRICAL PCMK_XA_SYMMETRICAL
643
644
645 #define XML_LOCATION_ATTR_DISCOVERY PCMK_XA_RESOURCE_DISCOVERY
646
647
648 #define XML_TAG_PARAMS PCMK_XE_PARAMETERS
649
650
651 #define XML_COLOC_ATTR_SOURCE PCMK_XA_RSC
652
653
654 #define XML_LOC_ATTR_SOURCE PCMK_XA_RSC
655
656
657 #define XML_COLOC_ATTR_SOURCE_ROLE PCMK_XA_RSC_ROLE
658
659
660 #define XML_COLOC_ATTR_TARGET PCMK_XA_WITH_RSC
661
662
663 #define XML_COLOC_ATTR_TARGET_ROLE PCMK_XA_WITH_RSC_ROLE
664
665
666 #define XML_COLOC_ATTR_NODE_ATTR PCMK_XA_NODE_ATTRIBUTE
667
668
669 #define XML_COLOC_ATTR_INFLUENCE PCMK_XA_INFLUENCE
670
671
672 #define XML_LOC_ATTR_SOURCE_PATTERN PCMK_XA_RSC_PATTERN
673
674
675 #define XML_ORDER_ATTR_FIRST PCMK_XA_FIRST
676
677
678 #define XML_ORDER_ATTR_THEN PCMK_XA_THEN
679
680
681 #define XML_ORDER_ATTR_FIRST_ACTION PCMK_XA_FIRST_ACTION
682
683
684 #define XML_ORDER_ATTR_THEN_ACTION PCMK_XA_THEN_ACTION
685
686
687 #define XML_ORDER_ATTR_KIND PCMK_XA_KIND
688
689
690 #define XML_ACL_ATTR_KIND PCMK_XA_KIND
691
692
693 #define XML_TICKET_ATTR_TICKET PCMK_XA_TICKET
694
695
696 #define XML_TICKET_ATTR_LOSS_POLICY PCMK_XA_LOSS_POLICY
697
698
699 #define XML_ACL_ATTR_REFv1 "ref"
700
701
702 #define XML_ACL_ATTR_TAG PCMK_XA_OBJECT_TYPE
703
704
705 #define XML_ACL_ATTR_TAGv1 "tag"
706
707
708 #define XML_ACL_ATTR_XPATH PCMK_XA_XPATH
709
710
711 #define XML_CRM_TAG_PING "ping_response"
712
713
714
715 #define XML_TAG_CIB PCMK_XE_CIB
716
717
718 #define XML_CIB_TAG_CONFIGURATION PCMK_XE_CONFIGURATION
719
720
721 #define XML_CIB_TAG_STATUS PCMK_XE_STATUS
722
723
724 #define XML_CIB_TAG_RESOURCES PCMK_XE_RESOURCES
725
726
727 #define XML_CIB_TAG_NODES PCMK_XE_NODES
728
729
730 #define XML_CIB_TAG_CONSTRAINTS PCMK_XE_CONSTRAINTS
731
732
733 #define XML_CIB_TAG_CRMCONFIG PCMK_XE_CRM_CONFIG
734
735
736 #define XML_CIB_TAG_OPCONFIG PCMK_XE_OP_DEFAULTS
737
738
739 #define XML_CIB_TAG_RSCCONFIG PCMK_XE_RSC_DEFAULTS
740
741
742 #define XML_CIB_TAG_ACLS PCMK_XE_ACLS
743
744
745 #define XML_CIB_TAG_ALERTS PCMK_XE_ALERTS
746
747
748 #define XML_CIB_TAG_ALERT PCMK_XE_ALERT
749
750
751 #define XML_CIB_TAG_ALERT_RECIPIENT PCMK_XE_RECIPIENT
752
753
754 #define XML_CIB_TAG_ALERT_SELECT PCMK_XE_SELECT
755
756
757 #define XML_CIB_TAG_ALERT_ATTRIBUTES PCMK_XE_SELECT_ATTRIBUTES
758
759
760 #define XML_CIB_TAG_ALERT_FENCING PCMK_XE_SELECT_FENCING
761
762
763 #define XML_CIB_TAG_ALERT_NODES PCMK_XE_SELECT_NODES
764
765
766 #define XML_CIB_TAG_ALERT_RESOURCES PCMK_XE_SELECT_RESOURCES
767
768
769 #define XML_CIB_TAG_ALERT_ATTR PCMK_XE_ATTRIBUTE
770
771
772 #define XML_CIB_TAG_STATE "node_state"
773
774
775 #define XML_CIB_TAG_NODE PCMK_XE_NODE
776
777
778 #define XML_CIB_TAG_NVPAIR PCMK_XE_NVPAIR
779
780
781 #define XML_CIB_TAG_PROPSET PCMK_XE_CLUSTER_PROPERTY_SET
782
783
784 #define XML_TAG_ATTR_SETS PCMK_XE_INSTANCE_ATTRIBUTES
785
786
787 #define XML_TAG_META_SETS PCMK_XE_META_ATTRIBUTES
788
789
790 #define XML_TAG_ATTRS "attributes"
791
792
793 #define XML_TAG_PARAM "param"
794
795
796 #define XML_TAG_UTILIZATION PCMK_XE_UTILIZATION
797
798
799 #define XML_TAG_RESOURCE_REF PCMK_XE_RESOURCE_REF
800
801
802 #define XML_CIB_TAG_RESOURCE PCMK_XE_PRIMITIVE
803
804
805 #define XML_CIB_TAG_GROUP PCMK_XE_GROUP
806
807
808 #define XML_CIB_TAG_INCARNATION PCMK_XE_CLONE
809
810
811 #define XML_CIB_TAG_CONTAINER PCMK_XE_BUNDLE
812
813
814 #define XML_CIB_TAG_RSC_TEMPLATE PCMK_XE_TEMPLATE
815
816
817 #define XML_CIB_TAG_LRM "lrm"
818
819
820 #define XML_LRM_TAG_RESOURCES "lrm_resources"
821
822
823 #define XML_LRM_TAG_RESOURCE "lrm_resource"
824
825
826 #define XML_LRM_TAG_RSC_OP "lrm_rsc_op"
827
828
829 #define XML_TAG_GRAPH "transition_graph"
830
831
832 #define XML_GRAPH_TAG_RSC_OP "rsc_op"
833
834
835 #define XML_GRAPH_TAG_PSEUDO_EVENT "pseudo_event"
836
837
838 #define XML_GRAPH_TAG_CRM_EVENT "crm_event"
839
840
841 #define XML_GRAPH_TAG_DOWNED "downed"
842
843
844 #define XML_GRAPH_TAG_MAINTENANCE "maintenance"
845
846
847 #define XML_TAG_RULE PCMK_XE_RULE
848
849
850 #define XML_TAG_EXPRESSION PCMK_XE_EXPRESSION
851
852
853 #define XML_CONS_TAG_RSC_DEPEND PCMK_XE_RSC_COLOCATION
854
855
856 #define XML_CONS_TAG_RSC_ORDER PCMK_XE_RSC_ORDER
857
858
859 #define XML_CONS_TAG_RSC_LOCATION PCMK_XE_RSC_LOCATION
860
861
862 #define XML_CONS_TAG_RSC_TICKET PCMK_XE_RSC_TICKET
863
864
865 #define XML_CONS_TAG_RSC_SET PCMK_XE_RESOURCE_SET
866
867
868 #define XML_CIB_TAG_GENERATION_TUPPLE "generation_tuple"
869
870
871 #define XML_TAG_TRANSIENT_NODEATTRS "transient_attributes"
872
873
874 #define XML_ACL_TAG_USER PCMK_XE_ACL_TARGET
875
876
877 #define XML_ACL_TAG_USERv1 "acl_user"
878
879
880 #define XML_ACL_TAG_GROUP PCMK_XE_ACL_GROUP
881
882
883 #define XML_ACL_TAG_ROLE PCMK_XE_ACL_ROLE
884
885
886 #define XML_ACL_TAG_PERMISSION PCMK_XE_ACL_PERMISSION
887
888
889 #define XML_ACL_TAG_ROLE_REFv1 "role_ref"
890
891
892 #define XML_ACL_TAG_READ "read"
893
894
895 #define XML_ACL_TAG_WRITE "write"
896
897
898 #define XML_ACL_TAG_DENY "deny"
899
900
901 #define XML_CIB_TAG_TICKETS PCMK_XE_TICKETS
902
903
904 #define XML_CIB_TAG_TICKET_STATE "ticket_state"
905
906
907 #define XML_CIB_TAG_TAGS PCMK_XE_TAGS
908
909
910 #define XML_CIB_TAG_TAG PCMK_XE_TAG
911
912
913 #define XML_CIB_TAG_OBJ_REF PCMK_XE_OBJ_REF
914
915
916 #define XML_TAG_FENCING_TOPOLOGY PCMK_XE_FENCING_TOPOLOGY
917
918
919 #define XML_TAG_FENCING_LEVEL PCMK_XE_FENCING_LEVEL
920
921
922 #define XML_TAG_DIFF PCMK_XE_DIFF
923
924
925 #define XML_DIFF_VERSION PCMK_XE_VERSION
926
927
928 #define XML_DIFF_VSOURCE PCMK_XE_SOURCE
929
930
931 #define XML_DIFF_VTARGET PCMK_XE_TARGET
932
933
934 #define XML_DIFF_CHANGE PCMK_XE_CHANGE
935
936
937 #define XML_DIFF_LIST PCMK_XE_CHANGE_LIST
938
939
940 #define XML_DIFF_ATTR PCMK_XE_CHANGE_ATTR
941
942
943 #define XML_DIFF_RESULT PCMK_XE_CHANGE_RESULT
944
945
946 #define XML_DIFF_POSITION PCMK_XE_POSITION
947
948
949 #define F_CRM_DATA "crm_xml"
950
951
952 #define XML_DIFF_MARKER "__crm_diff_marker__"
953
954
955 #define XML_TAG_FAILED "failed"
956
957
958 #define XML_TAG_OPTIONS "options"
959
960
961 #define XML_FAIL_TAG_CIB "failed_update"
962
963
964 #define CIB_OPTIONS_FIRST PCMK_VALUE_CIB_BOOTSTRAP_OPTIONS
965
966
967 #define XML_PING_ATTR_PACEMAKERDSTATE_INIT "init"
968
969
970 #define XML_PING_ATTR_PACEMAKERDSTATE_STARTINGDAEMONS "starting_daemons"
971
972
973 #define XML_PING_ATTR_PACEMAKERDSTATE_WAITPING "wait_for_ping"
974
975
976 #define XML_PING_ATTR_PACEMAKERDSTATE_RUNNING "running"
977
978
979 #define XML_PING_ATTR_PACEMAKERDSTATE_SHUTTINGDOWN "shutting_down"
980
981
982 #define XML_PING_ATTR_PACEMAKERDSTATE_SHUTDOWNCOMPLETE "shutdown_complete"
983
984
985 #define XML_PING_ATTR_PACEMAKERDSTATE_REMOTE "remote"
986
987 #ifndef T_CRM
988
989 #define T_CRM "crmd"
990 #endif
991
992 #ifndef T_ATTRD
993
994 #define T_ATTRD "attrd"
995 #endif
996
997
998 #define XML_CIB_TAG_SECTION_ALL "all"
999
1000
1001 #define XML_NODE_IS_REMOTE "remote_node"
1002
1003
1004 #define XML_NODE_IS_FENCED "node_fenced"
1005
1006
1007 #define XML_NODE_IS_MAINTENANCE "node_in_maintenance"
1008
1009
1010 #define XML_CIB_ATTR_SHUTDOWN "shutdown"
1011
1012
1013 #define XML_NODE_ATTR_RSC_DISCOVERY "resource-discovery-enabled"
1014
1015
1016 #define ID(x) crm_element_value(x, PCMK_XA_ID)
1017
1018 #ifdef __cplusplus
1019 }
1020 #endif
1021
1022 #endif