-
Notifications
You must be signed in to change notification settings - Fork 32
/
schema-am.rng
111 lines (98 loc) · 2.93 KB
/
schema-am.rng
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<start>
<element name="agentmachine">
<interleave>
<optional>
<ref name="define"/>
</optional>
<optional>
<ref name="security"/>
</optional>
<zeroOrMore>
<ref name="params"/>
</zeroOrMore>
<zeroOrMore>
<ref name="interfaces"/>
</zeroOrMore>
</interleave>
</element>
</start>
<define name="define">
<element name="define">
<oneOrMore>
<element name="alias">
<attribute name="name"/>
<attribute name="value"/>
<text/>
</element>
</oneOrMore>
</element>
</define>
<define name="params">
<element name="params">
<interleave>
<optional>
<ref name="define"/>
</optional>
<zeroOrMore>
<element name="param">
<attribute name="name"/>
<choice>
<attribute name="value"/>
<text/>
</choice>
</element>
</zeroOrMore>
</interleave>
</element>
</define>
<define name="interfaces">
<element name="interfaces">
<interleave>
<optional>
<ref name="define"/>
</optional>
<zeroOrMore>
<ref name="eth"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define name="eth">
<element name="eth">
<attribute name="id"/>
<attribute name="label"/>
<interleave>
<optional>
<ref name="define"/>
</optional>
<oneOrMore>
<ref name="params"/>
</oneOrMore>
</interleave>
</element>
</define>
<define name="security">
<element name="security">
<element name="auth_type">
<choice>
<value>none</value>
<value>pubkey</value>
<value>ssh</value>
<value>password</value>
</choice>
</element>
<optional>
<element name="pubkey_path">
<text/>
</element>
</optional>
<optional>
<element name="auth_password">
<text/>
</element>
</optional>
</element>
</define>
</grammar>