summaryrefslogtreecommitdiffstats
path: root/xml/api/crmadmin-2.25.rng
blob: 973f6d4935d71c733ed01e75431ee20517509c94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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>