mu 5.7.2.5 → 5.7.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. data/lib/mu/command/cmd_appid.rb +10 -0
  2. data/lib/mu/command/cmd_runscale.rb +48 -2
  3. data/rdoc/classes/Mu.html +13 -68
  4. data/rdoc/classes/Mu/Command.html +13 -1
  5. data/rdoc/classes/Mu/Command/Cmd_appid.html +23 -23
  6. data/rdoc/classes/Mu/Command/Cmd_appid.src/M000053.html +18 -0
  7. data/rdoc/classes/Mu/Command/Cmd_appid.src/M000054.html +30 -0
  8. data/rdoc/classes/Mu/Command/Cmd_appid.src/M000055.html +39 -0
  9. data/rdoc/classes/Mu/Command/Cmd_appid.src/M000056.html +50 -0
  10. data/rdoc/classes/Mu/Command/Cmd_netconfig.html +60 -60
  11. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000060.html +18 -0
  12. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000061.html +22 -0
  13. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000062.html +23 -0
  14. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000063.html +23 -0
  15. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000064.html +22 -0
  16. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000065.html +23 -0
  17. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000066.html +21 -0
  18. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000067.html +22 -0
  19. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000068.html +22 -0
  20. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000069.html +21 -0
  21. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000070.html +21 -0
  22. data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000071.html +23 -0
  23. data/rdoc/classes/Mu/Command/Cmd_runscale.html +18 -19
  24. data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000057.html +18 -0
  25. data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000058.html +51 -0
  26. data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000059.html +50 -0
  27. data/rdoc/classes/Mu/Netconfig.html +78 -78
  28. data/rdoc/classes/Mu/Netconfig.src/M000072.html +25 -0
  29. data/rdoc/classes/Mu/Netconfig.src/M000073.html +20 -0
  30. data/rdoc/classes/Mu/Netconfig.src/M000074.html +21 -0
  31. data/rdoc/classes/Mu/Netconfig.src/M000075.html +24 -0
  32. data/rdoc/classes/Mu/Netconfig.src/M000076.html +20 -0
  33. data/rdoc/classes/Mu/Netconfig.src/M000077.html +36 -0
  34. data/rdoc/classes/Mu/Netconfig.src/M000078.html +22 -0
  35. data/rdoc/classes/Mu/Netconfig.src/M000079.html +22 -0
  36. data/rdoc/classes/Mu/Netconfig.src/M000080.html +39 -0
  37. data/rdoc/classes/Mu/Netconfig.src/M000081.html +21 -0
  38. data/rdoc/classes/Mu/Netconfig.src/M000082.html +23 -0
  39. data/rdoc/classes/Mu/Netconfig.src/M000083.html +26 -0
  40. data/rdoc/classes/Mu/Netconfig.src/M000084.html +23 -0
  41. data/rdoc/classes/Mu/Netconfig.src/M000085.html +22 -0
  42. data/rdoc/classes/Mu/Netconfig.src/M000086.html +19 -0
  43. data/rdoc/classes/TCTestMu.src/M000043.html +1 -1
  44. data/rdoc/created.rid +1 -1
  45. data/rdoc/files/lib/mu/api/netconfig_rb.html +1 -1
  46. data/rdoc/files/lib/mu/command/cmd_appid_rb.html +1 -1
  47. data/rdoc/files/lib/mu/command/cmd_netconfig_rb.html +1 -1
  48. data/rdoc/files/lib/mu/command/cmd_runscale_rb.html +1 -1
  49. data/rdoc/files/test/tc_test_mu_rb.html +2 -2
  50. data/rdoc/fr_class_index.html +5 -1
  51. data/rdoc/fr_file_index.html +4 -2
  52. data/rdoc/fr_method_index.html +86 -25
  53. data/rdoc/index.html +1 -1
  54. data/test/data/app_id_stats.csv +1 -1
  55. data/test/data/app_id_status.json +43 -43
  56. data/test/tc_test_mu.rb +5 -1
  57. metadata +38 -4
@@ -0,0 +1,39 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>cmd_run_file (Mu::Command::Cmd_appid)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 37</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_run_file</span> <span class="ruby-identifier">argv</span>
15
+ <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
16
+
17
+ <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'scenario'</span>]
18
+ <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;*** Error: scenario required, using -s option&quot;</span>
19
+ <span class="ruby-keyword kw">else</span>
20
+ <span class="ruby-identifier">scenario</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'scenario'</span>]
21
+ <span class="ruby-keyword kw">end</span>
22
+
23
+ <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">scenario</span>)
24
+ <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;*** Error: Scenario file #{scenario} was not found&quot;</span>
25
+ <span class="ruby-keyword kw">end</span>
26
+
27
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>)
28
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;app_id_stats.csv&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;app_id_stats.csv&quot;</span>)
29
+
30
+ <span class="ruby-ivar">@api</span> = <span class="ruby-constant">Scale</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@@mu_ip</span>, <span class="ruby-ivar">@@mu_admin_user</span>, <span class="ruby-ivar">@@mu_admin_pass</span>)
31
+ <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">configure</span>(<span class="ruby-value str">&quot;pattern&quot;</span>, <span class="ruby-ivar">@cmd_line_pattern</span>)
32
+ <span class="ruby-ivar">@params</span> = {}
33
+ <span class="ruby-ivar">@params</span>[<span class="ruby-value str">&quot;msl&quot;</span>] = <span class="ruby-identifier">scenario</span>
34
+ <span class="ruby-ivar">@params</span>[<span class="ruby-value str">&quot;hosts&quot;</span>] = <span class="ruby-ivar">@cmd_line_hosts</span>
35
+ <span class="ruby-identifier">run</span>(<span class="ruby-identifier">scenario</span>)
36
+ <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">release</span>
37
+ <span class="ruby-keyword kw">end</span></pre>
38
+ </body>
39
+ </html>
@@ -0,0 +1,50 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>cmd_run_dir (Mu::Command::Cmd_appid)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/mu/command/cmd_appid.rb, line 65</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_run_dir</span> <span class="ruby-identifier">argv</span>
15
+ <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
16
+
17
+ <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'dir'</span>]
18
+ <span class="ruby-identifier">raise</span> <span class="ruby-value str">&quot;*** Error: directory required, using -d option&quot;</span>
19
+ <span class="ruby-keyword kw">else</span>
20
+ <span class="ruby-identifier">dir</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'dir'</span>]
21
+ <span class="ruby-keyword kw">end</span>
22
+
23
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>)
24
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;app_id_stats.csv&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;app_id_stats.csv&quot;</span>)
25
+
26
+ <span class="ruby-ivar">@api</span> = <span class="ruby-constant">Scale</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@@mu_ip</span>, <span class="ruby-ivar">@@mu_admin_user</span>, <span class="ruby-ivar">@@mu_admin_pass</span>)
27
+ <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">configure</span>(<span class="ruby-value str">&quot;pattern&quot;</span>, <span class="ruby-ivar">@cmd_line_pattern</span>)
28
+ <span class="ruby-ivar">@params</span> = {}
29
+ <span class="ruby-ivar">@params</span>[<span class="ruby-value str">&quot;dir&quot;</span>] = <span class="ruby-identifier">dir</span>
30
+ <span class="ruby-ivar">@params</span>[<span class="ruby-value str">&quot;hosts&quot;</span>] = <span class="ruby-ivar">@cmd_line_hosts</span>
31
+ <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-ivar">@params</span>[<span class="ruby-value str">&quot;dir&quot;</span>])
32
+ <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-value str">&quot;app_id_status.json&quot;</span>)
33
+ <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'recursive'</span>].<span class="ruby-identifier">nil?</span>
34
+ <span class="ruby-identifier">files</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-value str">&quot;*.msl&quot;</span>)
35
+ <span class="ruby-keyword kw">else</span>
36
+ <span class="ruby-identifier">files</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-value str">&quot;**/*.msl&quot;</span>)
37
+ <span class="ruby-keyword kw">end</span>
38
+ <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">files</span>.<span class="ruby-identifier">empty?</span>
39
+ <span class="ruby-identifier">files</span>.<span class="ruby-identifier">sort</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">f</span> <span class="ruby-operator">|</span>
40
+ <span class="ruby-identifier">run</span>(<span class="ruby-identifier">f</span>)
41
+ <span class="ruby-identifier">output_csv</span>(<span class="ruby-identifier">f</span>)
42
+ <span class="ruby-identifier">sleep</span> <span class="ruby-value">2</span>
43
+ <span class="ruby-keyword kw">end</span>
44
+ <span class="ruby-keyword kw">else</span>
45
+ <span class="ruby-identifier">msg</span> <span class="ruby-node">&quot;no msl files found in #{dir}&quot;</span>
46
+ <span class="ruby-keyword kw">end</span>
47
+ <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">release</span>
48
+ <span class="ruby-keyword kw">end</span></pre>
49
+ </body>
50
+ </html>
@@ -86,18 +86,18 @@
86
86
  <h3 class="section-bar">Methods</h3>
87
87
 
88
88
  <div class="name-list">
89
- <a href="#M000158">cmd_clear_hosts</a>&nbsp;&nbsp;
90
- <a href="#M000160">cmd_clear_interface</a>&nbsp;&nbsp;
91
- <a href="#M000162">cmd_clear_routes</a>&nbsp;&nbsp;
92
- <a href="#M000161">cmd_clear_vlans</a>&nbsp;&nbsp;
93
- <a href="#M000155">cmd_create</a>&nbsp;&nbsp;
94
- <a href="#M000156">cmd_delete</a>&nbsp;&nbsp;
95
- <a href="#M000153">cmd_get</a>&nbsp;&nbsp;
96
- <a href="#M000152">cmd_help</a>&nbsp;&nbsp;
97
- <a href="#M000154">cmd_modify</a>&nbsp;&nbsp;
98
- <a href="#M000159">cmd_resolve_hosts</a>&nbsp;&nbsp;
99
- <a href="#M000157">cmd_restore</a>&nbsp;&nbsp;
100
- <a href="#M000163">cmd_save</a>&nbsp;&nbsp;
89
+ <a href="#M000066">cmd_clear_hosts</a>&nbsp;&nbsp;
90
+ <a href="#M000068">cmd_clear_interface</a>&nbsp;&nbsp;
91
+ <a href="#M000070">cmd_clear_routes</a>&nbsp;&nbsp;
92
+ <a href="#M000069">cmd_clear_vlans</a>&nbsp;&nbsp;
93
+ <a href="#M000063">cmd_create</a>&nbsp;&nbsp;
94
+ <a href="#M000064">cmd_delete</a>&nbsp;&nbsp;
95
+ <a href="#M000061">cmd_get</a>&nbsp;&nbsp;
96
+ <a href="#M000060">cmd_help</a>&nbsp;&nbsp;
97
+ <a href="#M000062">cmd_modify</a>&nbsp;&nbsp;
98
+ <a href="#M000067">cmd_resolve_hosts</a>&nbsp;&nbsp;
99
+ <a href="#M000065">cmd_restore</a>&nbsp;&nbsp;
100
+ <a href="#M000071">cmd_save</a>&nbsp;&nbsp;
101
101
  </div>
102
102
  </div>
103
103
 
@@ -147,12 +147,12 @@
147
147
  <div id="methods">
148
148
  <h3 class="section-bar">Public Instance methods</h3>
149
149
 
150
- <div id="method-M000158" class="method-detail">
151
- <a name="M000158"></a>
150
+ <div id="method-M000066" class="method-detail">
151
+ <a name="M000066"></a>
152
152
 
153
153
  <div class="method-heading">
154
- <a href="Cmd_netconfig.src/M000158.html" target="Code" class="method-signature"
155
- onclick="popupCode('Cmd_netconfig.src/M000158.html');return false;">
154
+ <a href="Cmd_netconfig.src/M000066.html" target="Code" class="method-signature"
155
+ onclick="popupCode('Cmd_netconfig.src/M000066.html');return false;">
156
156
  <span class="method-name">cmd_clear_hosts</span><span class="method-args">(argv)</span>
157
157
  </a>
158
158
  </div>
@@ -167,12 +167,12 @@ clears existing network configuration hosts
167
167
  </div>
168
168
  </div>
169
169
 
170
- <div id="method-M000160" class="method-detail">
171
- <a name="M000160"></a>
170
+ <div id="method-M000068" class="method-detail">
171
+ <a name="M000068"></a>
172
172
 
173
173
  <div class="method-heading">
174
- <a href="Cmd_netconfig.src/M000160.html" target="Code" class="method-signature"
175
- onclick="popupCode('Cmd_netconfig.src/M000160.html');return false;">
174
+ <a href="Cmd_netconfig.src/M000068.html" target="Code" class="method-signature"
175
+ onclick="popupCode('Cmd_netconfig.src/M000068.html');return false;">
176
176
  <span class="method-name">cmd_clear_interface</span><span class="method-args">(argv)</span>
177
177
  </a>
178
178
  </div>
@@ -187,12 +187,12 @@ clears existing network interfaces
187
187
  </div>
188
188
  </div>
189
189
 
190
- <div id="method-M000162" class="method-detail">
191
- <a name="M000162"></a>
190
+ <div id="method-M000070" class="method-detail">
191
+ <a name="M000070"></a>
192
192
 
193
193
  <div class="method-heading">
194
- <a href="Cmd_netconfig.src/M000162.html" target="Code" class="method-signature"
195
- onclick="popupCode('Cmd_netconfig.src/M000162.html');return false;">
194
+ <a href="Cmd_netconfig.src/M000070.html" target="Code" class="method-signature"
195
+ onclick="popupCode('Cmd_netconfig.src/M000070.html');return false;">
196
196
  <span class="method-name">cmd_clear_routes</span><span class="method-args">(argv)</span>
197
197
  </a>
198
198
  </div>
@@ -207,12 +207,12 @@ clears existing network routes
207
207
  </div>
208
208
  </div>
209
209
 
210
- <div id="method-M000161" class="method-detail">
211
- <a name="M000161"></a>
210
+ <div id="method-M000069" class="method-detail">
211
+ <a name="M000069"></a>
212
212
 
213
213
  <div class="method-heading">
214
- <a href="Cmd_netconfig.src/M000161.html" target="Code" class="method-signature"
215
- onclick="popupCode('Cmd_netconfig.src/M000161.html');return false;">
214
+ <a href="Cmd_netconfig.src/M000069.html" target="Code" class="method-signature"
215
+ onclick="popupCode('Cmd_netconfig.src/M000069.html');return false;">
216
216
  <span class="method-name">cmd_clear_vlans</span><span class="method-args">(argv)</span>
217
217
  </a>
218
218
  </div>
@@ -227,12 +227,12 @@ clears existing vlan configurations
227
227
  </div>
228
228
  </div>
229
229
 
230
- <div id="method-M000155" class="method-detail">
231
- <a name="M000155"></a>
230
+ <div id="method-M000063" class="method-detail">
231
+ <a name="M000063"></a>
232
232
 
233
233
  <div class="method-heading">
234
- <a href="Cmd_netconfig.src/M000155.html" target="Code" class="method-signature"
235
- onclick="popupCode('Cmd_netconfig.src/M000155.html');return false;">
234
+ <a href="Cmd_netconfig.src/M000063.html" target="Code" class="method-signature"
235
+ onclick="popupCode('Cmd_netconfig.src/M000063.html');return false;">
236
236
  <span class="method-name">cmd_create</span><span class="method-args">(argv)</span>
237
237
  </a>
238
238
  </div>
@@ -247,12 +247,12 @@ creates a new network element
247
247
  </div>
248
248
  </div>
249
249
 
250
- <div id="method-M000156" class="method-detail">
251
- <a name="M000156"></a>
250
+ <div id="method-M000064" class="method-detail">
251
+ <a name="M000064"></a>
252
252
 
253
253
  <div class="method-heading">
254
- <a href="Cmd_netconfig.src/M000156.html" target="Code" class="method-signature"
255
- onclick="popupCode('Cmd_netconfig.src/M000156.html');return false;">
254
+ <a href="Cmd_netconfig.src/M000064.html" target="Code" class="method-signature"
255
+ onclick="popupCode('Cmd_netconfig.src/M000064.html');return false;">
256
256
  <span class="method-name">cmd_delete</span><span class="method-args">(argv)</span>
257
257
  </a>
258
258
  </div>
@@ -267,12 +267,12 @@ deletes an existing network element
267
267
  </div>
268
268
  </div>
269
269
 
270
- <div id="method-M000153" class="method-detail">
271
- <a name="M000153"></a>
270
+ <div id="method-M000061" class="method-detail">
271
+ <a name="M000061"></a>
272
272
 
273
273
  <div class="method-heading">
274
- <a href="Cmd_netconfig.src/M000153.html" target="Code" class="method-signature"
275
- onclick="popupCode('Cmd_netconfig.src/M000153.html');return false;">
274
+ <a href="Cmd_netconfig.src/M000061.html" target="Code" class="method-signature"
275
+ onclick="popupCode('Cmd_netconfig.src/M000061.html');return false;">
276
276
  <span class="method-name">cmd_get</span><span class="method-args">(argv)</span>
277
277
  </a>
278
278
  </div>
@@ -287,12 +287,12 @@ returns a json representation of the specified element
287
287
  </div>
288
288
  </div>
289
289
 
290
- <div id="method-M000152" class="method-detail">
291
- <a name="M000152"></a>
290
+ <div id="method-M000060" class="method-detail">
291
+ <a name="M000060"></a>
292
292
 
293
293
  <div class="method-heading">
294
- <a href="Cmd_netconfig.src/M000152.html" target="Code" class="method-signature"
295
- onclick="popupCode('Cmd_netconfig.src/M000152.html');return false;">
294
+ <a href="Cmd_netconfig.src/M000060.html" target="Code" class="method-signature"
295
+ onclick="popupCode('Cmd_netconfig.src/M000060.html');return false;">
296
296
  <span class="method-name">cmd_help</span><span class="method-args">(argv)</span>
297
297
  </a>
298
298
  </div>
@@ -304,12 +304,12 @@ displays command-line help
304
304
  </div>
305
305
  </div>
306
306
 
307
- <div id="method-M000154" class="method-detail">
308
- <a name="M000154"></a>
307
+ <div id="method-M000062" class="method-detail">
308
+ <a name="M000062"></a>
309
309
 
310
310
  <div class="method-heading">
311
- <a href="Cmd_netconfig.src/M000154.html" target="Code" class="method-signature"
312
- onclick="popupCode('Cmd_netconfig.src/M000154.html');return false;">
311
+ <a href="Cmd_netconfig.src/M000062.html" target="Code" class="method-signature"
312
+ onclick="popupCode('Cmd_netconfig.src/M000062.html');return false;">
313
313
  <span class="method-name">cmd_modify</span><span class="method-args">(argv)</span>
314
314
  </a>
315
315
  </div>
@@ -324,12 +324,12 @@ modifies a network element
324
324
  </div>
325
325
  </div>
326
326
 
327
- <div id="method-M000159" class="method-detail">
328
- <a name="M000159"></a>
327
+ <div id="method-M000067" class="method-detail">
328
+ <a name="M000067"></a>
329
329
 
330
330
  <div class="method-heading">
331
- <a href="Cmd_netconfig.src/M000159.html" target="Code" class="method-signature"
332
- onclick="popupCode('Cmd_netconfig.src/M000159.html');return false;">
331
+ <a href="Cmd_netconfig.src/M000067.html" target="Code" class="method-signature"
332
+ onclick="popupCode('Cmd_netconfig.src/M000067.html');return false;">
333
333
  <span class="method-name">cmd_resolve_hosts</span><span class="method-args">(argv)</span>
334
334
  </a>
335
335
  </div>
@@ -344,12 +344,12 @@ resolves network configuration hosts
344
344
  </div>
345
345
  </div>
346
346
 
347
- <div id="method-M000157" class="method-detail">
348
- <a name="M000157"></a>
347
+ <div id="method-M000065" class="method-detail">
348
+ <a name="M000065"></a>
349
349
 
350
350
  <div class="method-heading">
351
- <a href="Cmd_netconfig.src/M000157.html" target="Code" class="method-signature"
352
- onclick="popupCode('Cmd_netconfig.src/M000157.html');return false;">
351
+ <a href="Cmd_netconfig.src/M000065.html" target="Code" class="method-signature"
352
+ onclick="popupCode('Cmd_netconfig.src/M000065.html');return false;">
353
353
  <span class="method-name">cmd_restore</span><span class="method-args">(argv)</span>
354
354
  </a>
355
355
  </div>
@@ -364,12 +364,12 @@ restores the network configuration from a file
364
364
  </div>
365
365
  </div>
366
366
 
367
- <div id="method-M000163" class="method-detail">
368
- <a name="M000163"></a>
367
+ <div id="method-M000071" class="method-detail">
368
+ <a name="M000071"></a>
369
369
 
370
370
  <div class="method-heading">
371
- <a href="Cmd_netconfig.src/M000163.html" target="Code" class="method-signature"
372
- onclick="popupCode('Cmd_netconfig.src/M000163.html');return false;">
371
+ <a href="Cmd_netconfig.src/M000071.html" target="Code" class="method-signature"
372
+ onclick="popupCode('Cmd_netconfig.src/M000071.html');return false;">
373
373
  <span class="method-name">cmd_save</span><span class="method-args">(argv)</span>
374
374
  </a>
375
375
  </div>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>cmd_help (Mu::Command::Cmd_netconfig)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 10</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_help</span> <span class="ruby-identifier">argv</span>
15
+ <span class="ruby-identifier">help</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>cmd_get (Mu::Command::Cmd_netconfig)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 16</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_get</span> <span class="ruby-identifier">argv</span>
15
+ <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
16
+ <span class="ruby-identifier">e</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'element'</span>]
17
+ <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">e</span>)
18
+ <span class="ruby-identifier">msg</span> <span class="ruby-constant">JSON</span>.<span class="ruby-identifier">pretty_generate</span>(<span class="ruby-identifier">response</span>)
19
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>cmd_modify (Mu::Command::Cmd_netconfig)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 26</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_modify</span> <span class="ruby-identifier">argv</span>
15
+ <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
16
+ <span class="ruby-identifier">json</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'json'</span>]
17
+ <span class="ruby-identifier">e</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'element'</span>]
18
+ <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">modify</span>(<span class="ruby-identifier">json</span>, <span class="ruby-identifier">e</span>)
19
+ <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
20
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
21
+ <span class="ruby-keyword kw">end</span></pre>
22
+ </body>
23
+ </html>
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>cmd_create (Mu::Command::Cmd_netconfig)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 38</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_create</span> <span class="ruby-identifier">argv</span>
15
+ <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
16
+ <span class="ruby-identifier">json</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'json'</span>]
17
+ <span class="ruby-identifier">e</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'element'</span>]
18
+ <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">create</span>(<span class="ruby-identifier">json</span>, <span class="ruby-identifier">e</span>)
19
+ <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
20
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
21
+ <span class="ruby-keyword kw">end</span></pre>
22
+ </body>
23
+ </html>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>cmd_delete (Mu::Command::Cmd_netconfig)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 49</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_delete</span> <span class="ruby-identifier">argv</span>
15
+ <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
16
+ <span class="ruby-identifier">e</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'element'</span>]
17
+ <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">e</span>)
18
+ <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
19
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
20
+ <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>cmd_restore (Mu::Command::Cmd_netconfig)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 59</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_restore</span> <span class="ruby-identifier">argv</span>
15
+ <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
16
+ <span class="ruby-identifier">filepath</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'filepath'</span>]
17
+ <span class="ruby-identifier">clear_existing</span> = <span class="ruby-identifier">to_boolean</span>(<span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'boolean'</span>])
18
+ <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">restore</span>(<span class="ruby-identifier">filepath</span>, <span class="ruby-identifier">clear_existing</span>)
19
+ <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
20
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
21
+ <span class="ruby-keyword kw">end</span></pre>
22
+ </body>
23
+ </html>