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.
- data/lib/mu/command/cmd_appid.rb +10 -0
- data/lib/mu/command/cmd_runscale.rb +48 -2
- data/rdoc/classes/Mu.html +13 -68
- data/rdoc/classes/Mu/Command.html +13 -1
- data/rdoc/classes/Mu/Command/Cmd_appid.html +23 -23
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000053.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000054.html +30 -0
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000055.html +39 -0
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000056.html +50 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.html +60 -60
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000060.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000061.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000062.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000063.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000064.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000065.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000066.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000067.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000068.html +22 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000069.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000070.html +21 -0
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000071.html +23 -0
- data/rdoc/classes/Mu/Command/Cmd_runscale.html +18 -19
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000057.html +18 -0
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000058.html +51 -0
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000059.html +50 -0
- data/rdoc/classes/Mu/Netconfig.html +78 -78
- data/rdoc/classes/Mu/Netconfig.src/M000072.html +25 -0
- data/rdoc/classes/Mu/Netconfig.src/M000073.html +20 -0
- data/rdoc/classes/Mu/Netconfig.src/M000074.html +21 -0
- data/rdoc/classes/Mu/Netconfig.src/M000075.html +24 -0
- data/rdoc/classes/Mu/Netconfig.src/M000076.html +20 -0
- data/rdoc/classes/Mu/Netconfig.src/M000077.html +36 -0
- data/rdoc/classes/Mu/Netconfig.src/M000078.html +22 -0
- data/rdoc/classes/Mu/Netconfig.src/M000079.html +22 -0
- data/rdoc/classes/Mu/Netconfig.src/M000080.html +39 -0
- data/rdoc/classes/Mu/Netconfig.src/M000081.html +21 -0
- data/rdoc/classes/Mu/Netconfig.src/M000082.html +23 -0
- data/rdoc/classes/Mu/Netconfig.src/M000083.html +26 -0
- data/rdoc/classes/Mu/Netconfig.src/M000084.html +23 -0
- data/rdoc/classes/Mu/Netconfig.src/M000085.html +22 -0
- data/rdoc/classes/Mu/Netconfig.src/M000086.html +19 -0
- data/rdoc/classes/TCTestMu.src/M000043.html +1 -1
- data/rdoc/created.rid +1 -1
- data/rdoc/files/lib/mu/api/netconfig_rb.html +1 -1
- data/rdoc/files/lib/mu/command/cmd_appid_rb.html +1 -1
- data/rdoc/files/lib/mu/command/cmd_netconfig_rb.html +1 -1
- data/rdoc/files/lib/mu/command/cmd_runscale_rb.html +1 -1
- data/rdoc/files/test/tc_test_mu_rb.html +2 -2
- data/rdoc/fr_class_index.html +5 -1
- data/rdoc/fr_file_index.html +4 -2
- data/rdoc/fr_method_index.html +86 -25
- data/rdoc/index.html +1 -1
- data/test/data/app_id_stats.csv +1 -1
- data/test/data/app_id_status.json +43 -43
- data/test/tc_test_mu.rb +5 -1
- 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">"*** Error: scenario required, using -s option"</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">"*** Error: Scenario file #{scenario} was not found"</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">"app_id_status.json"</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">"app_id_status.json"</span>)
|
28
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">"app_id_stats.csv"</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">"app_id_stats.csv"</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">"pattern"</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">"msl"</span>] = <span class="ruby-identifier">scenario</span>
|
34
|
+
<span class="ruby-ivar">@params</span>[<span class="ruby-value str">"hosts"</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">"*** Error: directory required, using -d option"</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">"app_id_status.json"</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">"app_id_status.json"</span>)
|
24
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">"app_id_stats.csv"</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">"app_id_stats.csv"</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">"pattern"</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">"dir"</span>] = <span class="ruby-identifier">dir</span>
|
30
|
+
<span class="ruby-ivar">@params</span>[<span class="ruby-value str">"hosts"</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">"dir"</span>])
|
32
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">"app_id_status.json"</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">"app_id_status.json"</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">"*.msl"</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">"**/*.msl"</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">"no msl files found in #{dir}"</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="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
89
|
+
<a href="#M000066">cmd_clear_hosts</a>
|
90
|
+
<a href="#M000068">cmd_clear_interface</a>
|
91
|
+
<a href="#M000070">cmd_clear_routes</a>
|
92
|
+
<a href="#M000069">cmd_clear_vlans</a>
|
93
|
+
<a href="#M000063">cmd_create</a>
|
94
|
+
<a href="#M000064">cmd_delete</a>
|
95
|
+
<a href="#M000061">cmd_get</a>
|
96
|
+
<a href="#M000060">cmd_help</a>
|
97
|
+
<a href="#M000062">cmd_modify</a>
|
98
|
+
<a href="#M000067">cmd_resolve_hosts</a>
|
99
|
+
<a href="#M000065">cmd_restore</a>
|
100
|
+
<a href="#M000071">cmd_save</a>
|
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-
|
151
|
-
<a name="
|
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/
|
155
|
-
onclick="popupCode('Cmd_netconfig.src/
|
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-
|
171
|
-
<a name="
|
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/
|
175
|
-
onclick="popupCode('Cmd_netconfig.src/
|
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-
|
191
|
-
<a name="
|
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/
|
195
|
-
onclick="popupCode('Cmd_netconfig.src/
|
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-
|
211
|
-
<a name="
|
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/
|
215
|
-
onclick="popupCode('Cmd_netconfig.src/
|
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-
|
231
|
-
<a name="
|
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/
|
235
|
-
onclick="popupCode('Cmd_netconfig.src/
|
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-
|
251
|
-
<a name="
|
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/
|
255
|
-
onclick="popupCode('Cmd_netconfig.src/
|
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-
|
271
|
-
<a name="
|
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/
|
275
|
-
onclick="popupCode('Cmd_netconfig.src/
|
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-
|
291
|
-
<a name="
|
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/
|
295
|
-
onclick="popupCode('Cmd_netconfig.src/
|
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-
|
308
|
-
<a name="
|
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/
|
312
|
-
onclick="popupCode('Cmd_netconfig.src/
|
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-
|
328
|
-
<a name="
|
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/
|
332
|
-
onclick="popupCode('Cmd_netconfig.src/
|
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-
|
348
|
-
<a name="
|
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/
|
352
|
-
onclick="popupCode('Cmd_netconfig.src/
|
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-
|
368
|
-
<a name="
|
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/
|
372
|
-
onclick="popupCode('Cmd_netconfig.src/
|
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>
|