Whamcloud - gitweb
- landed b_hd_cray_merge3
[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 nodeRef: <value-of select="node_ref/@uuidref"/>
129 targetRef: <value-of select="target_ref/@uuidref"/>
130 <text>
131 </text>
132 </template>
133
134 <template match="lov">
135 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
136 objectClass: LOV
137 lustreName: <value-of select="@name"/>
138 uuid: <value-of select="@uuid"/>
139 mdsRef: <value-of select="mds_ref/@uuidref"/>
140 stripepattern: <value-of select="@stripepattern"/>
141 stripesize: <value-of select="@stripesize"/>
142 stripecount: <value-of select="@stripecount"/><apply-templates/>
143 <text>
144 </text>
145 </template>
146
147 <template match="lovconfig">
148 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
149 objectClass: LOVCONFIG
150 lustreName: <value-of select="@name"/>
151 uuid: <value-of select="@uuid"/><apply-templates/>
152 <text>
153 </text>
154 </template>
155
156 <template match="osd">
157 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
158 objectClass: OSD
159 lustreName: <value-of select="@name"/>
160 uuid: <value-of select="@uuid"/>
161 nodeRef: <value-of select="node_ref/@uuidref"/>
162 targetRef: <value-of select="target_ref/@uuidref"/>
163 osdtype: <value-of select="@osdtype"/>
164 <if test="fstype">
165 fstype: <value-of select="fstype"/>
166 </if>
167 <if test="autoformat">
168 autoformat: <value-of select="autoformat"/>
169 </if>
170 <if test="devpath">
171 devpath: <value-of select="devpath"/>
172 </if>
173 <if test="devsize">
174 devsize: <value-of select="devsize"/>
175 </if>
176 <if test="journalsize">
177 journalsize: <value-of select="journalsize"/>
178 </if>
179 <if test="mkfsoptions">
180 mkfsoptions: <value-of select="mkfsoptions"/>
181 </if>
182 <text>
183 </text>
184 </template>
185
186 <template match="ost">
187 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
188 objectClass: OST
189 lustreName: <value-of select="@name"/>
190 uuid: <value-of select="@uuid"/>
191 activeRef: <value-of select="active_ref/@uuidref"/>
192 <if test="@failover">
193 failover: <value-of select="@failover"/>
194 </if>
195 <if test="group">
196 group: <value-of select="group"/>
197 </if>
198 <text>
199 </text>
200 </template>
201
202 <template match="filesystem">
203 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
204 objectClass: FILESYSTEM
205 lustreName: <value-of select="@name"/>
206 uuid: <value-of select="@uuid"/><apply-templates/>
207 <text>
208 </text>
209 </template>
210
211 <template match="mountpoint">
212 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
213 objectClass: MOUNTPOINT
214 lustreName: <value-of select="@name"/>
215 uuid: <value-of select="@uuid"/><apply-templates/>
216 <text>
217 </text>
218 </template>
219
220 <template match="echoclient">
221 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
222 objectClass: ECHOCLIENT
223 lustreName: <value-of select="@name"/>
224 uuid: <value-of select="@uuid"/><apply-templates/>
225 <text>
226 </text>
227 </template>
228
229 <template match="ldlm">
230 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
231 objectClass: LDLM
232 lustreName: <value-of select="@name"/>
233 uuid: <value-of select="@uuid"/>
234 <text>
235 </text>
236 </template>
237
238 <template match="ptlrpc">
239 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
240 objectClass: PTLRPC
241 lustreName: <value-of select="@name"/>
242 uuid: <value-of select="@uuid"/>
243 <text>
244 </text>
245 </template>
246
247 <template match="ldlm_ref">
248 ldlmRef: <value-of select="@uuidref"/>
249 </template>
250
251 <template match="ptlrpc_ref">
252 ptlrpcRef: <value-of select="@uuidref"/>
253 </template>
254
255 <template match="obd_ref">
256 obdRef: <value-of select="@uuidref"/>
257 </template>
258
259 <template match="osd_ref">
260 osdRef: <value-of select="@uuidref"/>
261 </template>
262
263 <template match="ost_ref">
264 ostRef: <value-of select="@uuidref"/>
265 </template>
266
267 <template match="network_ref">
268 networkRef: <value-of select="@uuidref"/>
269 </template>
270
271 <template match="mds_ref">
272 mdsRef: <value-of select="@uuidref"/>
273 </template>
274
275 <template match="mdsdev_ref">
276 mdsdevRef: <value-of select="@uuidref"/>
277 </template>
278
279 <template match="mountpoint_ref">
280 mountpointRef: <value-of select="@uuidref"/>
281 </template>
282
283 <template match="filesystem_ref">
284 filesystemRef: <value-of select="@uuidref"/>
285 </template>
286
287 <template match="echoclient_ref">
288 echoclientRef: <value-of select="@uuidref"/>
289 </template>
290
291 <template match="lov_ref">
292 lovRef: <value-of select="@uuidref"/>
293 </template>
294
295 <template match="path">
296 path: <value-of select="."/>
297 </template>
298
299 </stylesheet>