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>
8 <template match="lustre">
9 dn: <value-of select="$basedn"/>
11 objectClass: LUSTRECONFIG
12 config: <value-of select="$config"/>
14 </text><apply-templates/>
17 <template match="node">
18 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
20 lustreName: <value-of select="@name"/>
21 uuid: <value-of select="@uuid"/>
22 networkRef: <value-of select="network/@uuid"/>
23 <for-each select="profile_ref">
24 profileRef: <value-of select="@uuidref"/>
27 </text><apply-templates/>
30 <template match="profile">
31 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
33 lustreName: <value-of select="@name"/>
34 uuid: <value-of select="@uuid"/><apply-templates/>
39 <template match="network">
40 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
42 lustreName: <value-of select="@name"/>
43 uuid: <value-of select="@uuid"/>
44 nettype: <value-of select="@nettype"/>
45 nid: <value-of select="nid"/>
47 port: <value-of select="port"/>
53 <template match="mds">
54 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
56 lustreName: <value-of select="@name"/>
57 uuid: <value-of select="@uuid"/><apply-templates/>
62 <template match="mdsdev">
63 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
65 lustreName: <value-of select="@name"/>
66 uuid: <value-of select="@uuid"/>
68 fstype: <value-of select="fstype"/>
70 <if test="autoformat">
71 autoformat: <value-of select="autoformat"/>
74 devpath: <value-of select="devpath"/>
77 devsize: <value-of select="devsize"/>
79 nodeRef: <value-of select="node_ref/@uuidref"/>
80 targetRef: <value-of select="target_ref/@uuidref"/>
85 <template match="lov">
86 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
88 lustreName: <value-of select="@name"/>
89 uuid: <value-of select="@uuid"/>
90 mdsRef: <value-of select="mds_ref/@uuidref"/>
91 stripepattern: <value-of select="@stripepattern"/>
92 stripesize: <value-of select="@stripesize"/>
93 stripecount: <value-of select="@stripecount"/><apply-templates/>
98 <template match="lovconfig">
99 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
100 objectClass: LOVCONFIG
101 lustreName: <value-of select="@name"/>
102 uuid: <value-of select="@uuid"/><apply-templates/>
107 <template match="osd">
108 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
110 lustreName: <value-of select="@name"/>
111 uuid: <value-of select="@uuid"/>
112 nodeRef: <value-of select="node_ref/@uuidref"/>
113 targetRef: <value-of select="target_ref/@uuidref"/>
114 osdtype: <value-of select="@osdtype"/>
116 fstype: <value-of select="fstype"/>
118 <if test="autoformat">
119 autoformat: <value-of select="autoformat"/>
122 devpath: <value-of select="devpath"/>
125 devsize: <value-of select="devsize"/>
131 <template match="ost">
132 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
134 lustreName: <value-of select="@name"/>
135 uuid: <value-of select="@uuid"/><apply-templates/>
140 <template match="mountpoint">
141 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
142 objectClass: MOUNTPOINT
143 lustreName: <value-of select="@name"/>
144 uuid: <value-of select="@uuid"/><apply-templates/>
149 <template match="echoclient">
150 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
151 objectClass: ECHOCLIENT
152 lustreName: <value-of select="@name"/>
153 uuid: <value-of select="@uuid"/><apply-templates/>
158 <template match="ldlm">
159 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
161 lustreName: <value-of select="@name"/>
162 uuid: <value-of select="@uuid"/>
167 <template match="ptlrpc">
168 dn: uuid=<value-of select="@uuid"/>,<value-of select="$basedn"/>
170 lustreName: <value-of select="@name"/>
171 uuid: <value-of select="@uuid"/>
176 <template match="ldlm_ref">
177 ldlmRef: <value-of select="@uuidref"/>
180 <template match="ptlrpc_ref">
181 ptlrpcRef: <value-of select="@uuidref"/>
184 <template match="obd_ref">
185 obdRef: <value-of select="@uuidref"/>
188 <template match="osd_ref">
189 osdRef: <value-of select="@uuidref"/>
192 <template match="ost_ref">
193 ostRef: <value-of select="@uuidref"/>
196 <template match="network_ref">
197 networkRef: <value-of select="@uuidref"/>
200 <template match="mds_ref">
201 mdsRef: <value-of select="@uuidref"/>
204 <template match="mdsdev_ref">
205 mdsdevRef: <value-of select="@uuidref"/>
208 <template match="mountpoint_ref">
209 mountpointRef: <value-of select="@uuidref"/>
212 <template match="echoclient_ref">
213 echoclientRef: <value-of select="@uuidref"/>
216 <template match="lov_ref">
217 lovRef: <value-of select="@uuidref"/>
220 <template match="lovconfig_ref">
221 lovconfigRef: <value-of select="@uuidref"/>
224 <template match="path">
225 path: <value-of select="."/>
228 <template match="active_ref">
229 activeRef: <value-of select="@uuidref"/>