diff options
Diffstat (limited to 'xml/api/crmadmin-2.25.rng')
-rw-r--r-- | xml/api/crmadmin-2.25.rng | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/xml/api/crmadmin-2.25.rng b/xml/api/crmadmin-2.25.rng new file mode 100644 index 0000000..973f6d4 --- /dev/null +++ b/xml/api/crmadmin-2.25.rng @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="UTF-8"?> +<grammar xmlns="http://relaxng.org/ns/structure/1.0" + datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> + + <start> + <ref name="element-crmadmin"/> + </start> + + <define name="element-crmadmin"> + <optional> + <ref name="element-status" /> + </optional> + <optional> + <externalRef href="pacemakerd-health-2.25.rng" /> + </optional> + <optional> + <ref name="element-dc" /> + </optional> + <optional> + <ref name="crmadmin-nodes-list" /> + </optional> + </define> + + <define name="element-status"> + <element name="crmd"> + <attribute name="node_name"> <text /> </attribute> + <attribute name="state"> <text /> </attribute> + <attribute name="result"> <text /> </attribute> + </element> + </define> + + <define name="element-dc"> + <element name="dc"> + <attribute name="node_name"> <text /> </attribute> + </element> + </define> + + <define name="crmadmin-nodes-list"> + <element name="nodes"> + <zeroOrMore> + <ref name="element-crmadmin-node" /> + </zeroOrMore> + </element> + </define> + + <define name="element-crmadmin-node"> + <element name="node"> + <attribute name="type"> + <choice> + <value>unknown</value> + <value>member</value> + <value>remote</value> + <value>ping</value> + </choice> + </attribute> + + <attribute name="name"> <text/> </attribute> + <attribute name="id"> <text/> </attribute> + </element> + </define> +</grammar> |