summaryrefslogtreecommitdiffstats
path: root/xml/api/stonith_admin-1.0.rng
blob: dd52a63a5c6ac2c28094b112267ed470a0a66bcc (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?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-stonith-admin"/>
    </start>

    <define name="element-stonith-admin">
        <choice>
            <ref name="stonith-admin-list" />
            <ref name="element-last-fenced" />
            <ref name="element-validation" />
            <element name="metadata"> <text /> </element>
        </choice>
    </define>

    <define name="stonith-admin-list">
        <element name="list">
            <attribute name="name"> <text /> </attribute>
            <attribute name="count"> <data type="nonNegativeInteger" /> </attribute>
            <choice>
                <zeroOrMore>
                    <ref name="fencing-history-event" />
                </zeroOrMore>
                <zeroOrMore>
                    <ref name="fencing-target" />
                </zeroOrMore>
                <zeroOrMore>
                    <ref name="device" />
                </zeroOrMore>
            </choice>
        </element>
    </define>

    <define name="device">
        <element name="item">
            <attribute name="name"> <value>device</value> </attribute>
            <data type="NCName" />
        </element>
    </define>

    <define name="fencing-target">
        <element name="target">
            <attribute name="hostname"> <text /> </attribute>
            <attribute name="uuid"> <text /> </attribute>
            <attribute name="status"> <text /> </attribute>
        </element>
    </define>

    <define name="element-last-fenced">
        <element name="last-fenced">
            <attribute name="target"> <text /> </attribute>
            <attribute name="when"> <text /> </attribute>
        </element>
    </define>

    <define name="element-validation">
        <element name="validate">
            <attribute name="agent"> <text /> </attribute>
            <attribute name="valid"> <data type="boolean" /> </attribute>
            <optional>
                <externalRef href="command-output-1.0.rng" />
            </optional>
        </element>
    </define>

    <define name="fencing-history-event">
        <element name="fence_event">
            <attribute name="status">
                <choice>
                    <value>failed</value>
                    <value>success</value>
                    <value>pending</value>
                </choice>
            </attribute>
            <optional>
                <attribute name="extended-status"> <text /> </attribute>
            </optional>
            <optional>
                <attribute name="delegate"> <text /> </attribute>
            </optional>
            <attribute name="action"> <text /> </attribute>
            <attribute name="target"> <text /> </attribute>
            <attribute name="client"> <text /> </attribute>
            <attribute name="origin"> <text /> </attribute>
            <optional>
                <attribute name="completed"> <text /> </attribute>
            </optional>
        </element>
    </define>
</grammar>