ucslib 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.txt +201 -0
  4. data/README.rdoc +106 -0
  5. data/Rakefile +37 -0
  6. data/html/README_rdoc.html +146 -0
  7. data/html/UCSInventory.html +533 -0
  8. data/html/UCSProvision.html +1914 -0
  9. data/html/UCSToken.html +339 -0
  10. data/html/Ucslib.html +173 -0
  11. data/html/created.rid +7 -0
  12. data/html/images/brick.png +0 -0
  13. data/html/images/brick_link.png +0 -0
  14. data/html/images/bug.png +0 -0
  15. data/html/images/bullet_black.png +0 -0
  16. data/html/images/bullet_toggle_minus.png +0 -0
  17. data/html/images/bullet_toggle_plus.png +0 -0
  18. data/html/images/date.png +0 -0
  19. data/html/images/find.png +0 -0
  20. data/html/images/loadingAnimation.gif +0 -0
  21. data/html/images/macFFBgHack.png +0 -0
  22. data/html/images/package.png +0 -0
  23. data/html/images/page_green.png +0 -0
  24. data/html/images/page_white_text.png +0 -0
  25. data/html/images/page_white_width.png +0 -0
  26. data/html/images/plugin.png +0 -0
  27. data/html/images/ruby.png +0 -0
  28. data/html/images/tag_green.png +0 -0
  29. data/html/images/wrench.png +0 -0
  30. data/html/images/wrench_orange.png +0 -0
  31. data/html/images/zoom.png +0 -0
  32. data/html/index.html +193 -0
  33. data/html/js/darkfish.js +116 -0
  34. data/html/js/jquery.js +32 -0
  35. data/html/js/quicksearch.js +114 -0
  36. data/html/js/thickbox-compressed.js +10 -0
  37. data/html/lib/ucslib/inventory_rb.html +75 -0
  38. data/html/lib/ucslib/provision_rb.html +75 -0
  39. data/html/lib/ucslib/session_rb.html +75 -0
  40. data/html/lib/ucslib/version_rb.html +75 -0
  41. data/html/lib/ucslib_rb.html +89 -0
  42. data/html/rdoc.css +763 -0
  43. data/lib/ucslib/inventory.rb +131 -0
  44. data/lib/ucslib/provision.rb +949 -0
  45. data/lib/ucslib/session.rb +108 -0
  46. data/lib/ucslib/version.rb +20 -0
  47. data/lib/ucslib.rb +26 -0
  48. data/ucslib.gemspec +45 -0
  49. metadata +126 -0
@@ -0,0 +1,533 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: UCSInventory</title>
9
+
10
+ <link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
+
17
+ </head>
18
+ <body id="top" class="class">
19
+
20
+ <div id="metadata">
21
+ <div id="home-metadata">
22
+ <div id="home-section" class="section">
23
+ <h3 class="section-header">
24
+ <a href="./index.html">Home</a>
25
+ <a href="./index.html#classes">Classes</a>
26
+ <a href="./index.html#methods">Methods</a>
27
+ </h3>
28
+ </div>
29
+ </div>
30
+
31
+ <div id="file-metadata">
32
+ <div id="file-list-section" class="section">
33
+ <h3 class="section-header">In Files</h3>
34
+ <div class="section-body">
35
+ <ul>
36
+
37
+ <li><a href="./lib/ucslib/inventory_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/ucslib/inventory.rb">lib/ucslib/inventory.rb</a></li>
39
+
40
+ </ul>
41
+ </div>
42
+ </div>
43
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
48
+
49
+ <!-- Parent Class -->
50
+ <div id="parent-class-section" class="section">
51
+ <h3 class="section-header">Parent</h3>
52
+
53
+ <p class="link">Object</p>
54
+
55
+ </div>
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+ <!-- Method Quickref -->
64
+ <div id="method-list-section" class="section">
65
+ <h3 class="section-header">Methods</h3>
66
+ <ul class="link-list">
67
+
68
+ <li><a href="#method-i-discover">#discover</a></li>
69
+
70
+ <li><a href="#method-i-list_blades">#list_blades</a></li>
71
+
72
+ <li><a href="#method-i-list_cpus">#list_cpus</a></li>
73
+
74
+ <li><a href="#method-i-list_memory">#list_memory</a></li>
75
+
76
+ <li><a href="#method-i-list_running_firmware">#list_running_firmware</a></li>
77
+
78
+ <li><a href="#method-i-list_service_profiles">#list_service_profiles</a></li>
79
+
80
+ <li><a href="#method-i-list_vlans">#list_vlans</a></li>
81
+
82
+ <li><a href="#method-i-list_vsans">#list_vsans</a></li>
83
+
84
+ </ul>
85
+ </div>
86
+
87
+
88
+
89
+ </div>
90
+
91
+ <div id="project-metadata">
92
+
93
+
94
+ <div id="fileindex-section" class="section project-section">
95
+ <h3 class="section-header">Files</h3>
96
+ <ul>
97
+
98
+ <li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
99
+
100
+ </ul>
101
+ </div>
102
+
103
+
104
+ <div id="classindex-section" class="section project-section">
105
+ <h3 class="section-header">Class/Module Index
106
+ <span class="search-toggle"><img src="./images/find.png"
107
+ height="16" width="16" alt="[+]"
108
+ title="show/hide quicksearch" /></span></h3>
109
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
110
+ <fieldset>
111
+ <legend>Quicksearch</legend>
112
+ <input type="text" name="quicksearch" value=""
113
+ class="quicksearch-field" />
114
+ </fieldset>
115
+ </form>
116
+
117
+ <ul class="link-list">
118
+
119
+ <li><a href="./UCSInventory.html">UCSInventory</a></li>
120
+
121
+ <li><a href="./UCSProvision.html">UCSProvision</a></li>
122
+
123
+ <li><a href="./UCSToken.html">UCSToken</a></li>
124
+
125
+ <li><a href="./Ucslib.html">Ucslib</a></li>
126
+
127
+ </ul>
128
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
129
+ </div>
130
+
131
+
132
+ </div>
133
+ </div>
134
+
135
+ <div id="documentation">
136
+ <h1 class="class">UCSInventory</h1>
137
+
138
+ <div id="description" class="description">
139
+ <table class="rdoc-list"><tr><td class="rdoc-term"><p>Author</p></td>
140
+ <td>
141
+ <p>Murali Raju (&lt;murali.raju@appliv.com&gt;)</p>
142
+ </td></tr><tr><td class="rdoc-term"><p>Copyright</p></td>
143
+ <td>
144
+ <p>Copyright © 2012 Murali Raju.</p>
145
+ </td></tr><tr><td class="rdoc-term"><p>License</p></td>
146
+ <td>
147
+ <p>Apache License, Version 2.0</p>
148
+ </td></tr></table>
149
+
150
+ <p>Licensed under the Apache License, Version 2.0 (the “License”); you may not
151
+ use this file except in compliance with the License. You may obtain a copy
152
+ of the License at</p>
153
+
154
+ <p><a
155
+ href="http://www.apache.org/licenses/LICENSE-2.0">www.apache.org/licenses/LICENSE-2.0</a></p>
156
+
157
+ <p>Unless required by applicable law or agreed to in writing, software
158
+ distributed under the License is distributed on an “AS IS” BASIS, WITHOUT
159
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
160
+ License for the specific language governing permissions and limitations
161
+ under the License.</p>
162
+
163
+ </div><!-- description -->
164
+
165
+
166
+
167
+
168
+ <div id="5Buntitled-5D" class="documentation-section">
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+ <!-- Methods -->
178
+
179
+ <div id="public-instance-method-details" class="method-section section">
180
+ <h3 class="section-header">Public Instance Methods</h3>
181
+
182
+
183
+ <div id="discover-method" class="method-detail ">
184
+ <a name="method-i-discover"></a>
185
+
186
+
187
+ <div class="method-heading">
188
+ <span class="method-name">discover</span><span
189
+ class="method-args">(tokenjson)</span>
190
+ <span class="method-click-advice">click to toggle source</span>
191
+ </div>
192
+
193
+
194
+ <div class="method-description">
195
+
196
+
197
+
198
+
199
+
200
+ <div class="method-source-code" id="discover-source">
201
+ <pre>
202
+ <span class="ruby-comment"># File lib/ucslib/inventory.rb, line 21</span>
203
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">discover</span>(<span class="ruby-identifier">tokenjson</span>)
204
+
205
+ <span class="ruby-identifier">cookie</span> = <span class="ruby-node">&quot;#{JSON.parse(tokenjson)['cookie']}&quot;</span>
206
+ <span class="ruby-identifier">ip</span> = <span class="ruby-node">&quot;#{JSON.parse(tokenjson)['ip']}&quot;</span>
207
+ <span class="ruby-identifier">url</span> = <span class="ruby-node">&quot;https://#{ip}/nuova&quot;</span>
208
+
209
+ <span class="ruby-comment">#Start Build the Multi-Class XML</span>
210
+ <span class="ruby-identifier">xml_builder</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span><span class="ruby-operator">::</span><span class="ruby-constant">Builder</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">xml</span><span class="ruby-operator">|</span>
211
+ <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">configResolveClasses</span>(<span class="ruby-string">'cookie'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">cookie</span>, <span class="ruby-string">'inHierarchical'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">'false'</span>) {
212
+ <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">inIds</span>{
213
+ <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">classId</span>(<span class="ruby-string">&quot;value&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">&quot;lsServer&quot;</span>)
214
+ <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">classId</span>(<span class="ruby-string">&quot;value&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">&quot;computeBlade&quot;</span>)
215
+ <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">classId</span>(<span class="ruby-string">&quot;value&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">&quot;firmwareRunning&quot;</span>)
216
+ <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">classId</span>(<span class="ruby-string">&quot;value&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">&quot;fabricVsan&quot;</span>)
217
+ <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">classId</span>(<span class="ruby-string">&quot;value&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">&quot;fabricVlan&quot;</span>)
218
+ <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">classId</span>(<span class="ruby-string">&quot;value&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">&quot;processorUnit&quot;</span>)
219
+ }
220
+ }
221
+ <span class="ruby-keyword">end</span>
222
+
223
+ <span class="ruby-comment">#End Build Multi-Class XML</span>
224
+
225
+ <span class="ruby-identifier">ucs_multi_class_XML</span> = <span class="ruby-identifier">xml_builder</span>.<span class="ruby-identifier">to_xml</span>.<span class="ruby-identifier">to_s</span>
226
+ <span class="ruby-identifier">ucs_response_multi_class</span> = <span class="ruby-constant">RestClient</span>.<span class="ruby-identifier">post</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">ucs_multi_class_XML</span>, <span class="ruby-value">:content_type</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">'text/xml'</span>).<span class="ruby-identifier">body</span>
227
+
228
+ <span class="ruby-comment">#Uncomment the following to create a dump to review and debug elements</span>
229
+ <span class="ruby-comment"># fh = File.new(&quot;ucs_response_multiclass.xml&quot;, &quot;w&quot;)</span>
230
+ <span class="ruby-comment"># fh.puts ucs_response_multiclass.inspect </span>
231
+ <span class="ruby-comment"># fh.close</span>
232
+
233
+ <span class="ruby-keyword">return</span> <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-identifier">ucs_response_multi_class</span>)
234
+
235
+ <span class="ruby-keyword">end</span></pre>
236
+ </div><!-- discover-source -->
237
+
238
+ </div>
239
+
240
+
241
+
242
+
243
+ </div><!-- discover-method -->
244
+
245
+
246
+ <div id="list_blades-method" class="method-detail ">
247
+ <a name="method-i-list_blades"></a>
248
+
249
+
250
+ <div class="method-heading">
251
+ <span class="method-name">list_blades</span><span
252
+ class="method-args">(ucs_multi_class_xml)</span>
253
+ <span class="method-click-advice">click to toggle source</span>
254
+ </div>
255
+
256
+
257
+ <div class="method-description">
258
+
259
+
260
+
261
+
262
+
263
+ <div class="method-source-code" id="list_blades-source">
264
+ <pre>
265
+ <span class="ruby-comment"># File lib/ucslib/inventory.rb, line 56</span>
266
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">list_blades</span>(<span class="ruby-identifier">ucs_multi_class_xml</span>)
267
+
268
+ <span class="ruby-identifier">ucs_multi_class_xml</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-string">&quot;configResolveClasses/outConfigs/computeBlade&quot;</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">blade</span><span class="ruby-operator">|</span>
269
+
270
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Blade : #{blade.attributes[&quot;serverId&quot;]} model: #{blade.attributes[&quot;model&quot;]}&quot;</span> <span class="ruby-node">&quot; with serial: #{blade.attributes[&quot;serial&quot;]} is powered: #{blade.attributes[&quot;operPower&quot;]}&quot;</span>
271
+
272
+ <span class="ruby-keyword">end</span>
273
+
274
+ <span class="ruby-keyword">end</span></pre>
275
+ </div><!-- list_blades-source -->
276
+
277
+ </div>
278
+
279
+
280
+
281
+
282
+ </div><!-- list_blades-method -->
283
+
284
+
285
+ <div id="list_cpus-method" class="method-detail ">
286
+ <a name="method-i-list_cpus"></a>
287
+
288
+
289
+ <div class="method-heading">
290
+ <span class="method-name">list_cpus</span><span
291
+ class="method-args">(ucs_multi_class_xml)</span>
292
+ <span class="method-click-advice">click to toggle source</span>
293
+ </div>
294
+
295
+
296
+ <div class="method-description">
297
+
298
+
299
+
300
+
301
+
302
+ <div class="method-source-code" id="list_cpus-source">
303
+ <pre>
304
+ <span class="ruby-comment"># File lib/ucslib/inventory.rb, line 87</span>
305
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">list_cpus</span>(<span class="ruby-identifier">ucs_multi_class_xml</span>)
306
+
307
+ <span class="ruby-identifier">ucs_multi_class_xml</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-string">&quot;configResolveClasses/outConfigs/processorUnit&quot;</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">processorunit</span><span class="ruby-operator">|</span>
308
+
309
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;CPU model: #{processorunit.attributes[&quot;model&quot;]} Architecture: #{processorunit.attributes[&quot;arch&quot;]} with #{processorunit.attributes[&quot;cores&quot;]}&quot;</span> <span class="ruby-node">&quot;cores with #{processorunit.attributes[&quot;coresEnabled&quot;]} enabled ID: #{processorunit.attributes[&quot;id&quot;]} Speed: #{processorunit.attributes[&quot;speed&quot;]}&quot;</span> <span class="ruby-node">&quot;Threads: #{processorunit.attributes[&quot;threads&quot;]} Vendor: #{processorunit.attributes[&quot;vendor&quot;]}&quot;</span>
310
+
311
+ <span class="ruby-keyword">end</span>
312
+
313
+ <span class="ruby-keyword">end</span></pre>
314
+ </div><!-- list_cpus-source -->
315
+
316
+ </div>
317
+
318
+
319
+
320
+
321
+ </div><!-- list_cpus-method -->
322
+
323
+
324
+ <div id="list_memory-method" class="method-detail ">
325
+ <a name="method-i-list_memory"></a>
326
+
327
+
328
+ <div class="method-heading">
329
+ <span class="method-name">list_memory</span><span
330
+ class="method-args">(ucs_multi_class_xml)</span>
331
+ <span class="method-click-advice">click to toggle source</span>
332
+ </div>
333
+
334
+
335
+ <div class="method-description">
336
+
337
+
338
+
339
+
340
+
341
+ <div class="method-source-code" id="list_memory-source">
342
+ <pre>
343
+ <span class="ruby-comment"># File lib/ucslib/inventory.rb, line 99</span>
344
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">list_memory</span>(<span class="ruby-identifier">ucs_multi_class_xml</span>)
345
+
346
+ <span class="ruby-identifier">ucs_multi_class_xml</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-string">&quot;configResolveClasses/outConfigs/computeBlade&quot;</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">blade</span><span class="ruby-operator">|</span>
347
+
348
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Available Memory: #{blade.attributes[&quot;availableMemory&quot;]} Total Memory: #{blade.attributes[&quot;totalMemory&quot;]} Speed: #{blade.attributes[&quot;memorySpeed&quot;]}&quot;</span>
349
+
350
+ <span class="ruby-keyword">end</span>
351
+
352
+ <span class="ruby-keyword">end</span></pre>
353
+ </div><!-- list_memory-source -->
354
+
355
+ </div>
356
+
357
+
358
+
359
+
360
+ </div><!-- list_memory-method -->
361
+
362
+
363
+ <div id="list_running_firmware-method" class="method-detail ">
364
+ <a name="method-i-list_running_firmware"></a>
365
+
366
+
367
+ <div class="method-heading">
368
+ <span class="method-name">list_running_firmware</span><span
369
+ class="method-args">(ucs_multi_class_xml)</span>
370
+ <span class="method-click-advice">click to toggle source</span>
371
+ </div>
372
+
373
+
374
+ <div class="method-description">
375
+
376
+
377
+
378
+
379
+
380
+ <div class="method-source-code" id="list_running_firmware-source">
381
+ <pre>
382
+ <span class="ruby-comment"># File lib/ucslib/inventory.rb, line 120</span>
383
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">list_running_firmware</span>(<span class="ruby-identifier">ucs_multi_class_xml</span>)
384
+
385
+ <span class="ruby-identifier">ucs_multi_class_xml</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-string">&quot;configResolveClasses/outConfigs/firmwareRunning&quot;</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">firmware</span><span class="ruby-operator">|</span>
386
+
387
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Firmware: #{firmware.attributes[&quot;dn&quot;]} version #{firmware.attributes[&quot;packageVersion&quot;]} package version&quot;</span> <span class="ruby-node">&quot; #{firmware.attributes[&quot;packageVersion&quot;]} type #{firmware.attributes[&quot;type&quot;]}&quot;</span>
388
+
389
+ <span class="ruby-keyword">end</span>
390
+
391
+ <span class="ruby-keyword">end</span></pre>
392
+ </div><!-- list_running_firmware-source -->
393
+
394
+ </div>
395
+
396
+
397
+
398
+
399
+ </div><!-- list_running_firmware-method -->
400
+
401
+
402
+ <div id="list_service_profiles-method" class="method-detail ">
403
+ <a name="method-i-list_service_profiles"></a>
404
+
405
+
406
+ <div class="method-heading">
407
+ <span class="method-name">list_service_profiles</span><span
408
+ class="method-args">(ucs_multi_class_xml)</span>
409
+ <span class="method-click-advice">click to toggle source</span>
410
+ </div>
411
+
412
+
413
+ <div class="method-description">
414
+
415
+
416
+
417
+
418
+
419
+ <div class="method-source-code" id="list_service_profiles-source">
420
+ <pre>
421
+ <span class="ruby-comment"># File lib/ucslib/inventory.rb, line 109</span>
422
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">list_service_profiles</span>(<span class="ruby-identifier">ucs_multi_class_xml</span>)
423
+
424
+ <span class="ruby-identifier">ucs_multi_class_xml</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-string">&quot;configResolveClasses/outConfigs/lsServer&quot;</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">serviceprofile</span><span class="ruby-operator">|</span>
425
+
426
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Service Profile: #{serviceprofile.attributes[&quot;name&quot;]} in #{serviceprofile.attributes[&quot;dn&quot;]} with UUID #{serviceprofile.attributes[&quot;uuid&quot;]}&quot;</span> <span class="ruby-node">&quot; is: #{serviceprofile.attributes[&quot;assocState&quot;]}&quot;</span>
427
+
428
+ <span class="ruby-keyword">end</span>
429
+
430
+ <span class="ruby-keyword">end</span></pre>
431
+ </div><!-- list_service_profiles-source -->
432
+
433
+ </div>
434
+
435
+
436
+
437
+
438
+ </div><!-- list_service_profiles-method -->
439
+
440
+
441
+ <div id="list_vlans-method" class="method-detail ">
442
+ <a name="method-i-list_vlans"></a>
443
+
444
+
445
+ <div class="method-heading">
446
+ <span class="method-name">list_vlans</span><span
447
+ class="method-args">(ucs_multi_class_xml)</span>
448
+ <span class="method-click-advice">click to toggle source</span>
449
+ </div>
450
+
451
+
452
+ <div class="method-description">
453
+
454
+
455
+
456
+
457
+
458
+ <div class="method-source-code" id="list_vlans-source">
459
+ <pre>
460
+ <span class="ruby-comment"># File lib/ucslib/inventory.rb, line 77</span>
461
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">list_vlans</span>(<span class="ruby-identifier">ucs_multi_class_xml</span>)
462
+
463
+ <span class="ruby-identifier">ucs_multi_class_xml</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-string">&quot;configResolveClasses/outConfigs/fabricVlan&quot;</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">fabricvlan</span><span class="ruby-operator">|</span>
464
+
465
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;VLAN: #{fabricvlan.attributes[&quot;id&quot;]} with name: #{fabricvlan.attributes[&quot;name&quot;]}&quot;</span>
466
+
467
+ <span class="ruby-keyword">end</span>
468
+
469
+ <span class="ruby-keyword">end</span></pre>
470
+ </div><!-- list_vlans-source -->
471
+
472
+ </div>
473
+
474
+
475
+
476
+
477
+ </div><!-- list_vlans-method -->
478
+
479
+
480
+ <div id="list_vsans-method" class="method-detail ">
481
+ <a name="method-i-list_vsans"></a>
482
+
483
+
484
+ <div class="method-heading">
485
+ <span class="method-name">list_vsans</span><span
486
+ class="method-args">(ucs_multi_class_xml)</span>
487
+ <span class="method-click-advice">click to toggle source</span>
488
+ </div>
489
+
490
+
491
+ <div class="method-description">
492
+
493
+
494
+
495
+
496
+
497
+ <div class="method-source-code" id="list_vsans-source">
498
+ <pre>
499
+ <span class="ruby-comment"># File lib/ucslib/inventory.rb, line 67</span>
500
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">list_vsans</span>(<span class="ruby-identifier">ucs_multi_class_xml</span>)
501
+
502
+ <span class="ruby-identifier">ucs_multi_class_xml</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-string">&quot;configResolveClasses/outConfigs/fabricVsan&quot;</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">fabricvsan</span><span class="ruby-operator">|</span>
503
+
504
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;VSAN: #{fabricvsan.attributes[&quot;fcoeVlan&quot;]} with FCoE ID: #{fabricvsan.attributes[&quot;id&quot;]}&quot;</span> <span class="ruby-node">&quot; status: #{fabricvsan.attributes[&quot;operState&quot;]}&quot;</span>
505
+ <span class="ruby-keyword">end</span>
506
+
507
+ <span class="ruby-keyword">end</span></pre>
508
+ </div><!-- list_vsans-source -->
509
+
510
+ </div>
511
+
512
+
513
+
514
+
515
+ </div><!-- list_vsans-method -->
516
+
517
+
518
+ </div><!-- public-instance-method-details -->
519
+
520
+ </div><!-- 5Buntitled-5D -->
521
+
522
+
523
+ </div><!-- documentation -->
524
+
525
+ <div id="validator-badges">
526
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
527
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
528
+ Rdoc Generator</a> 2</small>.</p>
529
+ </div>
530
+
531
+ </body>
532
+ </html>
533
+