xref: /illumos-gate/usr/src/test/os-tests/tests/libtopo/digraph-test-in.xml (revision 9b9d39d2a32ff806d2431dbcc50968ef1e6d46b2)
1<?xml version="1.0"?>
2<!DOCTYPE topology SYSTEM "/usr/share/lib/xml/dtd/digraph-topology.dtd.1">
3
4<!--
5  Copyright 2020 Joyent, Inc.
6
7  This XML represents a directed graph that looks like the following:
8
9                           |===> node=2 ===
10                           |               |
11    node=0 ====> node=1 ===                |===> node=4 ==
12                           |               |              |
13                           |===> node=3 ===               |
14                                  ^  ^                    |
15    node=5                        |  |                    |
16                                  |  |                    |
17    node=6 =======================   ======================
18
19-->
20
21<topo-digraph fmri-scheme='hc' nodename='test-nodename' os-version='test-os-version' product-id='test-product-id' timestamp='2019-12-20T01:51:26Z'>
22<vertices>
23<vertex name='node' instance='0x0' fmri='hc:///node=0'>
24
25  <nvpair name='property-groups' type='nvlist-array'>
26    <nvlist>
27      <nvpair name='property-group-name' type='string' value='test-pg-1' />
28      <nvpair name='property-values' type='nvlist-array'>
29
30        <nvlist>
31          <nvpair name='property-name' type='string' value='string-prop' />
32          <nvpair name='property-type' type='uint32' value='6' />
33          <nvpair name='property-value' type='string' value='blahblahblah' />
34        </nvlist>
35
36        <nvlist>
37          <nvpair name='property-name' type='string' value='uint64-array-prop' />
38          <nvpair name='property-type' type='uint32' value='13' />
39          <nvpair name='property-value' type='uint64-array'>
40            <nvpair value='0x1' />
41            <nvpair value='0x2' />
42          </nvpair>
43        </nvlist>
44
45        <nvlist>
46          <nvpair name='property-name' type='string' value='int64-array-prop' />
47          <nvpair name='property-type' type='uint32' value='12' />
48          <nvpair name='property-value' type='int64-array'>
49            <nvpair value='1' />
50            <nvpair value='2' />
51          </nvpair>
52        </nvlist>
53
54        <nvlist>
55          <nvpair name='property-name' type='string' value='uint32-array-prop' />
56          <nvpair name='property-type' type='uint32' value='11' />
57          <nvpair name='property-value' type='uint32-array'>
58            <nvpair value='1' />
59            <nvpair value='2' />
60          </nvpair>
61        </nvlist>
62
63        <nvlist>
64          <nvpair name='property-name' type='string' value='int32-array-prop' />
65          <nvpair name='property-type' type='uint32' value='10' />
66          <nvpair name='property-value' type='int32-array'>
67            <nvpair value='1' />
68            <nvpair value='2' />
69          </nvpair>
70        </nvlist>
71
72        <nvlist>
73          <nvpair name='property-name' type='string' value='uint64-prop' />
74          <nvpair name='property-type' type='uint32' value='5' />
75          <nvpair name='property-value' type='uint64' value='0x5003048023567a00' />
76        </nvlist>
77
78        <nvlist>
79          <nvpair name='property-name' type='string' value='uint32-prop' />
80          <nvpair name='property-type' type='uint32' value='3' />
81          <nvpair name='property-value' type='uint32' value='1' />
82        </nvlist>
83
84      </nvpair> <!-- property-values -->
85    </nvlist>
86    <nvlist>
87      <nvpair name='property-group-name' type='string' value='protocol' />
88      <nvpair name='property-values' type='nvlist-array'>
89        <nvlist>
90          <nvpair name='property-name' type='string' value='resource' />
91          <nvpair name='property-type' type='uint32' value='9' />
92          <nvpair name='property-value' type='nvlist'>
93            <nvlist>
94              <nvpair name='scheme' type='string' value='hc' />
95              <nvpair name='version' type='uint8' value='0' />
96              <nvpair name='hc-list' type='nvlist-array'>
97                <nvlist>
98                  <nvpair name='hc-name' type='string' value='node' />
99                  <nvpair name='hc-id' type='string' value='0' />
100                </nvlist>
101              </nvpair>
102            </nvlist>
103          </nvpair> <!-- property-value -->
104        </nvlist>
105      </nvpair> <!-- property-values -->
106    </nvlist>
107
108  </nvpair> <!-- property-groups -->
109  <outgoing-edges>
110    <edge fmri='hc:///node=1' />
111  </outgoing-edges>
112
113</vertex>
114
115<vertex name='node' instance='0x1' fmri='hc:///node=1'>
116
117  <nvpair name='property-groups' type='nvlist-array'>
118
119    <nvlist>
120      <nvpair name='property-group-name' type='string' value='protocol' />
121      <nvpair name='property-values' type='nvlist-array'>
122        <nvlist>
123          <nvpair name='property-name' type='string' value='resource' />
124          <nvpair name='property-type' type='uint32' value='9' />
125          <nvpair name='property-value' type='nvlist'>
126            <nvlist>
127              <nvpair name='scheme' type='string' value='hc' />
128              <nvpair name='version' type='uint8' value='0' />
129              <nvpair name='hc-list' type='nvlist-array'>
130                <nvlist>
131                  <nvpair name='hc-name' type='string' value='node' />
132                  <nvpair name='hc-id' type='string' value='1' />
133                </nvlist>
134              </nvpair>
135            </nvlist>
136          </nvpair> <!-- property-value -->
137        </nvlist>
138      </nvpair> <!-- property-values -->
139    </nvlist>
140  </nvpair> <!-- property-groups -->
141  <outgoing-edges>
142    <edge fmri='hc:///node=2' />
143    <edge fmri='hc:///node=3' />
144  </outgoing-edges>
145
146</vertex>
147
148<vertex name='node' instance='0x2' fmri='hc:///node=2'>
149
150  <nvpair name='property-groups' type='nvlist-array'>
151
152    <nvlist>
153      <nvpair name='property-group-name' type='string' value='protocol' />
154      <nvpair name='property-values' type='nvlist-array'>
155        <nvlist>
156          <nvpair name='property-name' type='string' value='resource' />
157          <nvpair name='property-type' type='uint32' value='9' />
158          <nvpair name='property-value' type='nvlist'>
159            <nvlist>
160              <nvpair name='scheme' type='string' value='hc' />
161              <nvpair name='version' type='uint8' value='0' />
162              <nvpair name='hc-list' type='nvlist-array'>
163                <nvlist>
164                  <nvpair name='hc-name' type='string' value='node' />
165                  <nvpair name='hc-id' type='string' value='2' />
166                </nvlist>
167              </nvpair>
168            </nvlist>
169          </nvpair> <!-- property-value -->
170        </nvlist>
171      </nvpair> <!-- property-values -->
172    </nvlist>
173
174  </nvpair> <!-- property-groups -->
175  <outgoing-edges>
176    <edge fmri='hc:///node=4' />
177  </outgoing-edges>
178
179</vertex>
180
181<vertex name='node' instance='0x3' fmri='hc:///node=3'>
182
183  <nvpair name='property-groups' type='nvlist-array'>
184
185    <nvlist>
186      <nvpair name='property-group-name' type='string' value='protocol' />
187      <nvpair name='property-values' type='nvlist-array'>
188        <nvlist>
189          <nvpair name='property-name' type='string' value='resource' />
190          <nvpair name='property-type' type='uint32' value='9' />
191          <nvpair name='property-value' type='nvlist'>
192            <nvlist>
193              <nvpair name='scheme' type='string' value='hc' />
194              <nvpair name='version' type='uint8' value='0' />
195              <nvpair name='hc-list' type='nvlist-array'>
196                <nvlist>
197                  <nvpair name='hc-name' type='string' value='node' />
198                  <nvpair name='hc-id' type='string' value='3' />
199                </nvlist>
200              </nvpair>
201            </nvlist>
202          </nvpair> <!-- property-value -->
203        </nvlist>
204      </nvpair> <!-- property-values -->
205    </nvlist>
206
207  </nvpair> <!-- property-groups -->
208  <outgoing-edges>
209    <edge fmri='hc:///node=4' />
210  </outgoing-edges>
211
212</vertex>
213
214<vertex name='node' instance='0x4' fmri='hc:///node=4'>
215
216  <nvpair name='property-groups' type='nvlist-array'>
217    <nvlist>
218      <nvpair name='property-group-name' type='string' value='protocol' />
219      <nvpair name='property-values' type='nvlist-array'>
220        <nvlist>
221          <nvpair name='property-name' type='string' value='resource' />
222          <nvpair name='property-type' type='uint32' value='9' />
223          <nvpair name='property-value' type='nvlist'>
224            <nvlist>
225              <nvpair name='scheme' type='string' value='hc' />
226              <nvpair name='version' type='uint8' value='0' />
227              <nvpair name='hc-list' type='nvlist-array'>
228                <nvlist>
229                  <nvpair name='hc-name' type='string' value='node' />
230                  <nvpair name='hc-id' type='string' value='4' />
231                </nvlist>
232              </nvpair>
233            </nvlist>
234          </nvpair> <!-- property-value -->
235        </nvlist>
236      </nvpair> <!-- property-values -->
237    </nvlist>
238
239  </nvpair> <!-- property-groups -->
240  <outgoing-edges>
241    <edge fmri='hc:///node=3' />
242  </outgoing-edges>
243
244</vertex>
245
246<vertex name='node' instance='0x5' fmri='hc:///node=5'>
247
248  <nvpair name='property-groups' type='nvlist-array'>
249    <nvlist>
250      <nvpair name='property-group-name' type='string' value='protocol' />
251      <nvpair name='property-values' type='nvlist-array'>
252        <nvlist>
253          <nvpair name='property-name' type='string' value='resource' />
254          <nvpair name='property-type' type='uint32' value='9' />
255          <nvpair name='property-value' type='nvlist'>
256            <nvlist>
257              <nvpair name='scheme' type='string' value='hc' />
258              <nvpair name='version' type='uint8' value='0' />
259              <nvpair name='hc-list' type='nvlist-array'>
260                <nvlist>
261                  <nvpair name='hc-name' type='string' value='node' />
262                  <nvpair name='hc-id' type='string' value='5' />
263                </nvlist>
264              </nvpair>
265            </nvlist>
266          </nvpair> <!-- property-value -->
267        </nvlist>
268      </nvpair> <!-- property-values -->
269    </nvlist>
270
271  </nvpair> <!-- property-groups -->
272
273</vertex>
274
275<vertex name='node' instance='0x6' fmri='hc:///node=6'>
276
277  <nvpair name='property-groups' type='nvlist-array'>
278    <nvlist>
279      <nvpair name='property-group-name' type='string' value='protocol' />
280      <nvpair name='property-values' type='nvlist-array'>
281        <nvlist>
282          <nvpair name='property-name' type='string' value='resource' />
283          <nvpair name='property-type' type='uint32' value='9' />
284          <nvpair name='property-value' type='nvlist'>
285            <nvlist>
286              <nvpair name='scheme' type='string' value='hc' />
287              <nvpair name='version' type='uint8' value='0' />
288              <nvpair name='hc-list' type='nvlist-array'>
289                <nvlist>
290                  <nvpair name='hc-name' type='string' value='node' />
291                  <nvpair name='hc-id' type='string' value='6' />
292                </nvlist>
293              </nvpair>
294            </nvlist>
295          </nvpair> <!-- property-value -->
296        </nvlist>
297      </nvpair> <!-- property-values -->
298    </nvlist>
299
300  </nvpair> <!-- property-groups -->
301  <outgoing-edges>
302    <edge fmri='hc:///node=3' />
303  </outgoing-edges>
304
305</vertex>
306
307</vertices>
308</topo-digraph>
309