File: crm_node-2.32.rng

package info (click to toggle)
pacemaker 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 68,576 kB
  • sloc: xml: 160,564; ansic: 143,744; python: 5,670; sh: 2,969; makefile: 2,426
file content (53 lines) | stat: -rw-r--r-- 1,544 bytes parent folder | download | duplicates (2)
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>