summaryrefslogtreecommitdiffstats
path: root/xml/api/crm_node-2.32.rng
blob: 402c7614647cda58156b716ef47cb51a6b9365ce (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
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">

    <!-- Output of the crm_node command -->
    <start>
        <ref name="element-crm-node" />
    </start>

    <define name="element-crm-node">
        <choice>
            <ref name="cluster-info" />
            <ref name="node-info" />
            <ref name="node-list" />
        </choice>
    </define>

    <define name="cluster-info">
        <element name="cluster-info">
            <attribute name="quorum"> <data type="boolean" /> </attribute>
        </element>
    </define>

    <define name="node-info">
        <element name="node-info">
            <attribute name="nodeid"> <data type="nonNegativeInteger" /> </attribute>
            <optional>
                <attribute name="uname"> <text/> </attribute>
            </optional>
        </element>
    </define>

    <define name="node-list">
        <element name="nodes">
            <oneOrMore>
                <ref name="element-node" />
            </oneOrMore>
        </element>
    </define>

    <define name="element-node">
        <element name="node">
            <attribute name="id"> <data type="nonNegativeInteger" /> </attribute>
            <optional>
                <attribute name="name"> <text/> </attribute>
            </optional>
            <optional>
                <attribute name="state"> <text/> </attribute>
            </optional>
        </element>
    </define>

</grammar>