Whamcloud - gitweb
LU-12166 test: fix broken detection on ZFS
[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 <if test="ptldebug">
37 ptldebug: <value-of select="ptldebug"/>
38 </if>
39 <if test="subsystem">
40 subsystem: <value-of select="subsystem"/>
41 </if>
42 <text>
43 </text>
44 <for-each select="network">
45 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
46 objectClass: NETWORK
47 lustreName: <value-of select="@name"/>
48 uuid: <value-of select="@uuid"/>
49 nettype: <value-of select="@nettype"/>
50 nid: <value-of select="nid"/>
51 <if test="port">
52 port: <value-of select="port"/>
53 </if>
54 <text>
55 </text>
56 </for-each>
57 </template>
58
59 <template match="profile">
60 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
61 objectClass: PROFILE
62 lustreName: <value-of select="@name"/>
63 uuid: <value-of select="@uuid"/><apply-templates/>
64 <text>
65 </text>
66 </template>
67
68 <template match="network">
69 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
70 objectClass: NETWORK
71 lustreName: <value-of select="@name"/>
72 uuid: <value-of select="@uuid"/>
73 nettype: <value-of select="@nettype"/>
74 nid: <value-of select="nid"/>
75 <if test="port">
76 port: <value-of select="port"/>
77 </if>
78 <text>
79 </text>
80 </template>
81
82
83 <template match="mds">
84 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
85 objectClass: MDS
86 lustreName: <value-of select="@name"/>
87 uuid: <value-of select="@uuid"/>
88 activeRef: <value-of select="active_ref/@uuidref"/>
89 <if test="lovconfig_ref">
90 lovconfigRef: <value-of select="lovconfig_ref/@uuidref"/>
91 </if>
92 <if test="filesystem_ref">
93 filesystemRef: <value-of select="filesystem_ref/@uuidref"/>
94 </if>
95 <if test="@failover">
96 failover: <value-of select="@failover"/>
97 </if>
98 <if test="group">
99 group: <value-of select="group"/>
100 </if>
101 <text>
102 </text>
103 </template>
104
105 <template match="mdsdev">
106 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
107 objectClass: MDSDEV
108 lustreName: <value-of select="@name"/>
109 uuid: <value-of select="@uuid"/>
110 <if test="fstype">
111 fstype: <value-of select="fstype"/>
112 </if>
113 <if test="autoformat">
114 autoformat: <value-of select="autoformat"/>
115 </if>
116 <if test="devpath">
117 devpath: <value-of select="devpath"/>
118 </if>
119 <if test="devsize">
120 devsize: <value-of select="devsize"/>
121 </if>
122 <if test="journalsize">
123 journalsize: <value-of select="journalsize"/>
124 </if>
125 <if test="mkfsoptions">
126 mkfsoptions: <value-of select="mkfsoptions"/>
127 </if>
128 <if test="mountfsoptions">
129 mountfsoptions: <value-of select="mountfsoptions"/>
130 </if>
131 nodeRef: <value-of select="node_ref/@uuidref"/>
132 targetRef: <value-of select="target_ref/@uuidref"/>
133 <text>
134 </text>
135 </template>
136
137 <template match="lov">
138 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
139 objectClass: LOV
140 lustreName: <value-of select="@name"/>
141 uuid: <value-of select="@uuid"/>
142 mdsRef: <value-of select="mds_ref/@uuidref"/>
143 stripepattern: <value-of select="@stripepattern"/>
144 stripesize: <value-of select="@stripesize"/>
145 stripecount: <value-of select="@stripecount"/><apply-templates/>
146 <text>
147 </text>
148 </template>
149
150 <template match="lovconfig">
151 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
152 objectClass: LOVCONFIG
153 lustreName: <value-of select="@name"/>
154 uuid: <value-of select="@uuid"/><apply-templates/>
155 <text>
156 </text>
157 </template>
158
159 <template match="osd">
160 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
161 objectClass: OSD
162 lustreName: <value-of select="@name"/>
163 uuid: <value-of select="@uuid"/>
164 nodeRef: <value-of select="node_ref/@uuidref"/>
165 targetRef: <value-of select="target_ref/@uuidref"/>
166 osdtype: <value-of select="@osdtype"/>
167 <if test="fstype">
168 fstype: <value-of select="fstype"/>
169 </if>
170 <if test="autoformat">
171 autoformat: <value-of select="autoformat"/>
172 </if>
173 <if test="devpath">
174 devpath: <value-of select="devpath"/>
175 </if>
176 <if test="devsize">
177 devsize: <value-of select="devsize"/>
178 </if>
179 <if test="journalsize">
180 journalsize: <value-of select="journalsize"/>
181 </if>
182 <if test="mkfsoptions">
183 mkfsoptions: <value-of select="mkfsoptions"/>
184 </if>
185 <if test="mountfsoptions">
186 mountfsoptions: <value-of select="mountfsoptions"/>
187 </if>
188 <text>
189 </text>
190 </template>
191
192 <template match="ost">
193 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
194 objectClass: OST
195 lustreName: <value-of select="@name"/>
196 uuid: <value-of select="@uuid"/>
197 activeRef: <value-of select="active_ref/@uuidref"/>
198 <if test="@failover">
199 failover: <value-of select="@failover"/>
200 </if>
201 <if test="group">
202 group: <value-of select="group"/>
203 </if>
204 <text>
205 </text>
206 </template>
207
208 <template match="filesystem">
209 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
210 objectClass: FILESYSTEM
211 lustreName: <value-of select="@name"/>
212 uuid: <value-of select="@uuid"/><apply-templates/>
213 <text>
214 </text>
215 </template>
216
217 <template match="mountpoint">
218 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
219 objectClass: MOUNTPOINT
220 lustreName: <value-of select="@name"/>
221 uuid: <value-of select="@uuid"/><apply-templates/>
222 <if test="clientoptions">
223 clientoptions: <value-of select="clientoptions"/>
224 </if>
225 <text>
226 </text>
227 </template>
228
229 <template match="echoclient">
230 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
231 objectClass: ECHOCLIENT
232 lustreName: <value-of select="@name"/>
233 uuid: <value-of select="@uuid"/><apply-templates/>
234 <text>
235 </text>
236 </template>
237
238 <template match="ldlm">
239 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
240 objectClass: LDLM
241 lustreName: <value-of select="@name"/>
242 uuid: <value-of select="@uuid"/>
243 <text>
244 </text>
245 </template>
246
247 <template match="ptlrpc">
248 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
249 objectClass: PTLRPC
250 lustreName: <value-of select="@name"/>
251 uuid: <value-of select="@uuid"/>
252 <text>
253 </text>
254 </template>
255
256 <template match="ldlm_ref">
257 ldlmRef: <value-of select="@uuidref"/>
258 </template>
259
260 <template match="ptlrpc_ref">
261 ptlrpcRef: <value-of select="@uuidref"/>
262 </template>
263
264 <template match="obd_ref">
265 obdRef: <value-of select="@uuidref"/>
266 </template>
267
268 <template match="osd_ref">
269 osdRef: <value-of select="@uuidref"/>
270 </template>
271
272 <template match="ost_ref">
273 ostRef: <value-of select="@uuidref"/>
274 </template>
275
276 <template match="network_ref">
277 networkRef: <value-of select="@uuidref"/>
278 </template>
279
280 <template match="mds_ref">
281 mdsRef: <value-of select="@uuidref"/>
282 </template>
283
284 <template match="mdsdev_ref">
285 mdsdevRef: <value-of select="@uuidref"/>
286 </template>
287
288 <template match="mountpoint_ref">
289 mountpointRef: <value-of select="@uuidref"/>
290 </template>
291
292 <template match="filesystem_ref">
293 filesystemRef: <value-of select="@uuidref"/>
294 </template>
295
296 <template match="echoclient_ref">
297 echoclientRef: <value-of select="@uuidref"/>
298 </template>
299
300 <template match="lov_ref">
301 lovRef: <value-of select="@uuidref"/>
302 </template>
303
304 <template match="path">
305 path: <value-of select="."/>
306 </template>
307
308 </stylesheet>