pacemaker/pacemaker-rsc_ticket-schema.diff

56 lines
1.4 KiB
Diff
Raw Normal View History

commit dc88c1f8402e1c978bb4d7816f79a902cf476a08
Author: Gao,Yan <ygao@suse.com>
Date: Wed Oct 26 17:36:30 2011 +0800
Medium: xml: Add rsc_ticket support into "pacemaker-1.2" schema
diff --git a/xml/constraints-1.2.rng b/xml/constraints-1.2.rng
index 84708aa..e4b9d80 100644
--- a/xml/constraints-1.2.rng
+++ b/xml/constraints-1.2.rng
@@ -11,6 +11,7 @@
<ref name="element-location"/>
<ref name="element-colocation"/>
<ref name="element-order"/>
+ <ref name="element-rsc_ticket"/>
</choice>
</zeroOrMore>
</define>
@@ -143,6 +144,36 @@
</element>
</define>
+ <define name="element-rsc_ticket">
+ <element name="rsc_ticket">
+ <attribute name="id"><data type="ID"/></attribute>
+ <choice>
+ <oneOrMore>
+ <ref name="element-resource-set"/>
+ </oneOrMore>
+ <group>
+ <attribute name="rsc"><data type="IDREF"/></attribute>
+ <optional>
+ <attribute name="rsc-role">
+ <ref name="attribute-roles"/>
+ </attribute>
+ </optional>
+ </group>
+ </choice>
+ <attribute name="ticket"><text/></attribute>
+ <optional>
+ <attribute name="loss-policy">
+ <choice>
+ <value>stop</value>
+ <value>demote</value>
+ <value>fence</value>
+ <value>freeze</value>
+ </choice>
+ </attribute>
+ </optional>
+ </element>
+ </define>
+
<define name="attribute-actions">
<choice>
<value>start</value>