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