Whamcloud - gitweb
5fc6f9c59862b37e7ab76a14301c2e27a8ae0a16
[fs/lustre-release.git] / lustre / conf / lustre2ldif.xsl
1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform"> 
3 <output omit-xml-declaration="yes" />
4 <strip-space elements="*"/>
5 <param name="config">fs=lustre</param>
6 <variable name="basedn">config=<value-of select="$config"/>,fs=lustre</variable>
7
8 <template match="lustre">
9 dn: <value-of select="$basedn"/>
10 uuid: CONFIG_UUID
11 objectClass: LUSTRECONFIG
12 config: <value-of select="$config"/>
13 version: <value-of select="@version"/>
14 <text>
15 </text><apply-templates/>
16 </template>
17
18 <template match="node">
19 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
20 objectClass: NODE
21 lustreName: <value-of select="@name"/>
22 uuid: <value-of select="@uuid"/>
23 networkRef: <value-of select="network/@uuid"/>
24 <for-each select="profile_ref">
25 profileRef: <value-of select="@uuidref"/>
26 </for-each>
27 <if test="timeout">
28 timeout: <value-of select="timeout"/>
29 </if>
30 <if test="lustreUpcall">
31 lustreUpcall: <value-of select="lustreUpcall"/>
32 </if>
33 <if test="portalsUpcall">
34 portalsUpcall: <value-of select="portalsUpcall"/>
35 </if>
36 <text>
37 </text>
38 <for-each select="network">
39 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
40 objectClass: NETWORK
41 lustreName: <value-of select="@name"/>
42 uuid: <value-of select="@uuid"/>
43 nettype: <value-of select="@nettype"/>
44 nid: <value-of select="nid"/>
45 <if test="port">
46 port: <value-of select="port"/>
47 </if>
48 <text>
49 </text>
50 </for-each>
51 </template>
52
53 <template match="profile">
54 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
55 objectClass: PROFILE
56 lustreName: <value-of select="@name"/>
57 uuid: <value-of select="@uuid"/><apply-templates/>
58 <text>
59 </text>
60 </template>
61
62 <template match="network">
63 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
64 objectClass: NETWORK
65 lustreName: <value-of select="@name"/>
66 uuid: <value-of select="@uuid"/>
67 nettype: <value-of select="@nettype"/>
68 nid: <value-of select="nid"/>
69 <if test="port">
70 port: <value-of select="port"/>
71 </if>
72 <text>
73 </text>
74 </template>
75
76
77 <template match="mds">
78 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
79 objectClass: MDS
80 lustreName: <value-of select="@name"/>
81 uuid: <value-of select="@uuid"/>
82 activeRef: <value-of select="active_ref/@uuidref"/>
83 <if test="lovconfig_ref">
84 lovconfigRef: <value-of select="lovconfig_ref/@uuidref"/>
85 </if>
86 <if test="filesystem_ref">
87 filesystemRef: <value-of select="filesystem_ref/@uuidref"/>
88 </if>
89 <if test="@failover">
90 failover: <value-of select="@failover"/>
91 </if>
92 <if test="group">
93 group: <value-of select="group"/>
94 </if>
95 <text>
96 </text>
97 </template>
98
99 <template match="mdsdev">
100 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
101 objectClass: MDSDEV
102 lustreName: <value-of select="@name"/>
103 uuid: <value-of select="@uuid"/>
104 <if test="fstype">
105 fstype: <value-of select="fstype"/>
106 </if>
107 <if test="autoformat">
108 autoformat: <value-of select="autoformat"/>
109 </if>
110 <if test="devpath">
111 devpath: <value-of select="devpath"/>
112 </if>
113 <if test="devsize">
114 devsize: <value-of select="devsize"/>
115 </if>
116 <if test="journalsize">
117 journalsize: <value-of select="journalsize"/>
118 </if>
119 nodeRef: <value-of select="node_ref/@uuidref"/>
120 targetRef: <value-of select="target_ref/@uuidref"/>
121 <text>
122 </text>
123 </template>
124
125 <template match="lov">
126 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
127 objectClass: LOV
128 lustreName: <value-of select="@name"/>
129 uuid: <value-of select="@uuid"/>
130 mdsRef: <value-of select="mds_ref/@uuidref"/>
131 stripepattern: <value-of select="@stripepattern"/>
132 stripesize: <value-of select="@stripesize"/>
133 stripecount: <value-of select="@stripecount"/><apply-templates/>
134 <text>
135 </text>
136 </template>
137
138 <template match="lovconfig">
139 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
140 objectClass: LOVCONFIG
141 lustreName: <value-of select="@name"/>
142 uuid: <value-of select="@uuid"/><apply-templates/>
143 <text>
144 </text>
145 </template>
146
147 <template match="osd">
148 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
149 objectClass: OSD
150 lustreName: <value-of select="@name"/>
151 uuid: <value-of select="@uuid"/>
152 nodeRef: <value-of select="node_ref/@uuidref"/>
153 targetRef: <value-of select="target_ref/@uuidref"/>
154 osdtype: <value-of select="@osdtype"/>
155 <if test="fstype">
156 fstype: <value-of select="fstype"/>
157 </if>
158 <if test="autoformat">
159 autoformat: <value-of select="autoformat"/>
160 </if>
161 <if test="devpath">
162 devpath: <value-of select="devpath"/>
163 </if>
164 <if test="devsize">
165 devsize: <value-of select="devsize"/>
166 </if>
167 <if test="journalsize">
168 journalsize: <value-of select="journalsize"/>
169 </if>
170 <text>
171 </text>
172 </template>
173
174 <template match="ost">
175 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
176 objectClass: OST
177 lustreName: <value-of select="@name"/>
178 uuid: <value-of select="@uuid"/>
179 activeRef: <value-of select="active_ref/@uuidref"/>
180 <if test="@failover">
181 failover: <value-of select="@failover"/>
182 </if>
183 <if test="group">
184 group: <value-of select="group"/>
185 </if>
186 <text>
187 </text>
188 </template>
189
190 <template match="filesystem">
191 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
192 objectClass: FILESYSTEM
193 lustreName: <value-of select="@name"/>
194 uuid: <value-of select="@uuid"/><apply-templates/>
195 <text>
196 </text>
197 </template>
198
199 <template match="mountpoint">
200 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
201 objectClass: MOUNTPOINT
202 lustreName: <value-of select="@name"/>
203 uuid: <value-of select="@uuid"/><apply-templates/>
204 <text>
205 </text>
206 </template>
207
208 <template match="echoclient">
209 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
210 objectClass: ECHOCLIENT
211 lustreName: <value-of select="@name"/>
212 uuid: <value-of select="@uuid"/><apply-templates/>
213 <text>
214 </text>
215 </template>
216
217 <template match="ldlm">
218 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
219 objectClass: LDLM
220 lustreName: <value-of select="@name"/>
221 uuid: <value-of select="@uuid"/>
222 <text>
223 </text>
224 </template>
225
226 <template match="ptlrpc">
227 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
228 objectClass: PTLRPC
229 lustreName: <value-of select="@name"/>
230 uuid: <value-of select="@uuid"/>
231 <text>
232 </text>
233 </template>
234
235 <template match="ldlm_ref">
236 ldlmRef: <value-of select="@uuidref"/>
237 </template>
238
239 <template match="ptlrpc_ref">
240 ptlrpcRef: <value-of select="@uuidref"/>
241 </template>
242
243 <template match="obd_ref">
244 obdRef: <value-of select="@uuidref"/>
245 </template>
246
247 <template match="osd_ref">
248 osdRef: <value-of select="@uuidref"/>
249 </template>
250
251 <template match="ost_ref">
252 ostRef: <value-of select="@uuidref"/>
253 </template>
254
255 <template match="network_ref">
256 networkRef: <value-of select="@uuidref"/>
257 </template>
258
259 <template match="mds_ref">
260 mdsRef: <value-of select="@uuidref"/>
261 </template>
262
263 <template match="mdsdev_ref">
264 mdsdevRef: <value-of select="@uuidref"/>
265 </template>
266
267 <template match="mountpoint_ref">
268 mountpointRef: <value-of select="@uuidref"/>
269 </template>
270
271 <template match="filesystem_ref">
272 filesystemRef: <value-of select="@uuidref"/>
273 </template>
274
275 <template match="echoclient_ref">
276 echoclientRef: <value-of select="@uuidref"/>
277 </template>
278
279 <template match="lov_ref">
280 lovRef: <value-of select="@uuidref"/>
281 </template>
282
283 <template match="path">
284 path: <value-of select="."/>
285 </template>
286
287 </stylesheet>