mu 5.7.8 → 5.7.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. data/lib/mu.rb +1 -1
  2. data/lib/mu/command.rb +18 -2
  3. data/lib/mu/command/cmd_musl.rb +165 -0
  4. data/lib/mu/command/cmd_runscale.rb +12 -8
  5. data/lib/mu/command/help.rb +1 -0
  6. data/lib/mu/har.rb +449 -0
  7. data/lib/mu/libxml.rb +21 -0
  8. data/lib/mu/maker.rb +288 -0
  9. data/lib/mu/xmlizable.rb +559 -0
  10. metadata +78 -267
  11. data/rdoc/Gemfile.html +0 -194
  12. data/rdoc/LICENSE_txt.html +0 -201
  13. data/rdoc/Mu.html +0 -478
  14. data/rdoc/Mu/Client.html +0 -461
  15. data/rdoc/Mu/Command.html +0 -338
  16. data/rdoc/Mu/Command/API.html +0 -844
  17. data/rdoc/Mu/Command/Cmd_appid.html +0 -1341
  18. data/rdoc/Mu/Command/Cmd_cli.html +0 -800
  19. data/rdoc/Mu/Command/Cmd_ddt.html +0 -1612
  20. data/rdoc/Mu/Command/Cmd_homepage.html +0 -762
  21. data/rdoc/Mu/Command/Cmd_muapi.html +0 -1363
  22. data/rdoc/Mu/Command/Cmd_netconfig.html +0 -1077
  23. data/rdoc/Mu/Command/Cmd_runscale.html +0 -1441
  24. data/rdoc/Mu/Command/Cmd_runscenario.html +0 -787
  25. data/rdoc/Mu/Command/Cmd_runverify.html +0 -893
  26. data/rdoc/Mu/Command/Cmd_scale.html +0 -1323
  27. data/rdoc/Mu/Command/Cmd_system.html +0 -677
  28. data/rdoc/Mu/Command/Curl.html +0 -751
  29. data/rdoc/Mu/Command/Help.html +0 -305
  30. data/rdoc/Mu/Curl.html +0 -243
  31. data/rdoc/Mu/Curl/Error.html +0 -304
  32. data/rdoc/Mu/Curl/Error/Authorize.html +0 -355
  33. data/rdoc/Mu/Curl/Error/Connect.html +0 -286
  34. data/rdoc/Mu/Curl/Error/DNS.html +0 -236
  35. data/rdoc/Mu/Curl/Error/Region.html +0 -307
  36. data/rdoc/Mu/Curl/Error/Status.html +0 -286
  37. data/rdoc/Mu/Curl/Error/Timeout.html +0 -286
  38. data/rdoc/Mu/Curl/Verify.html +0 -472
  39. data/rdoc/Mu/Curl/Verify/Request.html +0 -424
  40. data/rdoc/Mu/Curl/Verify/Response.html +0 -372
  41. data/rdoc/Mu/Curl/Verify/Result.html +0 -373
  42. data/rdoc/Mu/Ddt.html +0 -1347
  43. data/rdoc/Mu/Helper.html +0 -517
  44. data/rdoc/Mu/Homepage.html +0 -719
  45. data/rdoc/Mu/HttpHelper.html +0 -890
  46. data/rdoc/Mu/Muapi.html +0 -1226
  47. data/rdoc/Mu/Netconfig.html +0 -1178
  48. data/rdoc/Mu/Scale.html +0 -1359
  49. data/rdoc/Mu/System.html +0 -504
  50. data/rdoc/Object.html +0 -285
  51. data/rdoc/README_rdoc.html +0 -892
  52. data/rdoc/Rakefile.html +0 -257
  53. data/rdoc/TCTestMu.html +0 -2583
  54. data/rdoc/Test.html +0 -235
  55. data/rdoc/Test/Unit.html +0 -235
  56. data/rdoc/Test/Unit/TestCase.html +0 -236
  57. data/rdoc/Test/helper_rb.html +0 -62
  58. data/rdoc/Test/tc_test_mu_rb.html +0 -60
  59. data/rdoc/VERSION.html +0 -179
  60. data/rdoc/bin/mu.html +0 -54
  61. data/rdoc/classes/Mu.html +0 -132
  62. data/rdoc/classes/Mu/Client.html +0 -214
  63. data/rdoc/classes/Mu/Command.html +0 -129
  64. data/rdoc/classes/Mu/Command/API.html +0 -362
  65. data/rdoc/classes/Mu/Command/Cmd_appid.html +0 -238
  66. data/rdoc/classes/Mu/Command/Cmd_cli.html +0 -273
  67. data/rdoc/classes/Mu/Command/Cmd_ddt.html +0 -639
  68. data/rdoc/classes/Mu/Command/Cmd_homepage.html +0 -276
  69. data/rdoc/classes/Mu/Command/Cmd_muapi.html +0 -527
  70. data/rdoc/classes/Mu/Command/Cmd_netconfig.html +0 -399
  71. data/rdoc/classes/Mu/Command/Cmd_runscale.html +0 -220
  72. data/rdoc/classes/Mu/Command/Cmd_runscenario.html +0 -197
  73. data/rdoc/classes/Mu/Command/Cmd_runverify.html +0 -196
  74. data/rdoc/classes/Mu/Command/Cmd_scale.html +0 -511
  75. data/rdoc/classes/Mu/Command/Cmd_system.html +0 -236
  76. data/rdoc/classes/Mu/Command/Curl.html +0 -182
  77. data/rdoc/classes/Mu/Command/Help.html +0 -137
  78. data/rdoc/classes/Mu/Curl.html +0 -116
  79. data/rdoc/classes/Mu/Curl/Error.html +0 -148
  80. data/rdoc/classes/Mu/Curl/Error/Authorize.html +0 -165
  81. data/rdoc/classes/Mu/Curl/Error/Connect.html +0 -139
  82. data/rdoc/classes/Mu/Curl/Error/DNS.html +0 -113
  83. data/rdoc/classes/Mu/Curl/Error/Region.html +0 -150
  84. data/rdoc/classes/Mu/Curl/Error/Status.html +0 -139
  85. data/rdoc/classes/Mu/Curl/Error/Timeout.html +0 -139
  86. data/rdoc/classes/Mu/Curl/Verify.html +0 -207
  87. data/rdoc/classes/Mu/Curl/Verify/Request.html +0 -187
  88. data/rdoc/classes/Mu/Curl/Verify/Response.html +0 -172
  89. data/rdoc/classes/Mu/Curl/Verify/Result.html +0 -172
  90. data/rdoc/classes/Mu/Ddt.html +0 -610
  91. data/rdoc/classes/Mu/Helper.html +0 -308
  92. data/rdoc/classes/Mu/Homepage.html +0 -306
  93. data/rdoc/classes/Mu/HttpHelper.html +0 -393
  94. data/rdoc/classes/Mu/Muapi.html +0 -549
  95. data/rdoc/classes/Mu/Netconfig.html +0 -478
  96. data/rdoc/classes/Mu/Scale.html +0 -580
  97. data/rdoc/classes/Mu/System.html +0 -232
  98. data/rdoc/classes/Object.html +0 -139
  99. data/rdoc/classes/TCTestMu.html +0 -948
  100. data/rdoc/classes/Test.html +0 -107
  101. data/rdoc/classes/Test/Unit.html +0 -107
  102. data/rdoc/classes/Test/Unit/TestCase.html +0 -113
  103. data/rdoc/created.rid +0 -36
  104. data/rdoc/files/lib/mu/api/ddt_rb.html +0 -101
  105. data/rdoc/files/lib/mu/api/homepage_rb.html +0 -101
  106. data/rdoc/files/lib/mu/api/muapi_rb.html +0 -101
  107. data/rdoc/files/lib/mu/api/netconfig_rb.html +0 -101
  108. data/rdoc/files/lib/mu/api/scale_rb.html +0 -101
  109. data/rdoc/files/lib/mu/api/system_rb.html +0 -101
  110. data/rdoc/files/lib/mu/client_rb.html +0 -101
  111. data/rdoc/files/lib/mu/command/api_rb.html +0 -101
  112. data/rdoc/files/lib/mu/command/cmd_appid_rb.html +0 -119
  113. data/rdoc/files/lib/mu/command/cmd_cli_rb.html +0 -108
  114. data/rdoc/files/lib/mu/command/cmd_ddt_rb.html +0 -116
  115. data/rdoc/files/lib/mu/command/cmd_homepage_rb.html +0 -115
  116. data/rdoc/files/lib/mu/command/cmd_muapi_rb.html +0 -115
  117. data/rdoc/files/lib/mu/command/cmd_netconfig_rb.html +0 -116
  118. data/rdoc/files/lib/mu/command/cmd_runscale_rb.html +0 -119
  119. data/rdoc/files/lib/mu/command/cmd_runscenario_rb.html +0 -115
  120. data/rdoc/files/lib/mu/command/cmd_runverify_rb.html +0 -118
  121. data/rdoc/files/lib/mu/command/cmd_scale_rb.html +0 -115
  122. data/rdoc/files/lib/mu/command/cmd_system_rb.html +0 -116
  123. data/rdoc/files/lib/mu/command/curl_rb.html +0 -101
  124. data/rdoc/files/lib/mu/command/help_rb.html +0 -101
  125. data/rdoc/files/lib/mu/command_rb.html +0 -107
  126. data/rdoc/files/lib/mu/curl/error_rb.html +0 -101
  127. data/rdoc/files/lib/mu/curl/verify_rb.html +0 -101
  128. data/rdoc/files/lib/mu/helper_rb.html +0 -101
  129. data/rdoc/files/lib/mu/http_helper_rb.html +0 -101
  130. data/rdoc/files/lib/mu_rb.html +0 -121
  131. data/rdoc/files/test/helper_rb.html +0 -112
  132. data/rdoc/files/test/tc_test_mu_rb.html +0 -111
  133. data/rdoc/fr_class_index.html +0 -34
  134. data/rdoc/fr_file_index.html +0 -31
  135. data/rdoc/fr_method_index.html +0 -112
  136. data/rdoc/images/brick.png +0 -0
  137. data/rdoc/images/brick_link.png +0 -0
  138. data/rdoc/images/bug.png +0 -0
  139. data/rdoc/images/bullet_black.png +0 -0
  140. data/rdoc/images/bullet_toggle_minus.png +0 -0
  141. data/rdoc/images/bullet_toggle_plus.png +0 -0
  142. data/rdoc/images/date.png +0 -0
  143. data/rdoc/images/find.png +0 -0
  144. data/rdoc/images/loadingAnimation.gif +0 -0
  145. data/rdoc/images/macFFBgHack.png +0 -0
  146. data/rdoc/images/package.png +0 -0
  147. data/rdoc/images/page_green.png +0 -0
  148. data/rdoc/images/page_white_text.png +0 -0
  149. data/rdoc/images/page_white_width.png +0 -0
  150. data/rdoc/images/plugin.png +0 -0
  151. data/rdoc/images/ruby.png +0 -0
  152. data/rdoc/images/tag_green.png +0 -0
  153. data/rdoc/images/wrench.png +0 -0
  154. data/rdoc/images/wrench_orange.png +0 -0
  155. data/rdoc/images/zoom.png +0 -0
  156. data/rdoc/index.html +0 -884
  157. data/rdoc/js/darkfish.js +0 -116
  158. data/rdoc/js/jquery.js +0 -32
  159. data/rdoc/js/quicksearch.js +0 -114
  160. data/rdoc/js/thickbox-compressed.js +0 -10
  161. data/rdoc/lib/mu/api/ddt_rb.html +0 -52
  162. data/rdoc/lib/mu/api/homepage_rb.html +0 -52
  163. data/rdoc/lib/mu/api/muapi_rb.html +0 -52
  164. data/rdoc/lib/mu/api/netconfig_rb.html +0 -52
  165. data/rdoc/lib/mu/api/scale_rb.html +0 -52
  166. data/rdoc/lib/mu/api/system_rb.html +0 -52
  167. data/rdoc/lib/mu/client_rb.html +0 -52
  168. data/rdoc/lib/mu/command/api_rb.html +0 -52
  169. data/rdoc/lib/mu/command/cmd_appid_rb.html +0 -62
  170. data/rdoc/lib/mu/command/cmd_cli_rb.html +0 -55
  171. data/rdoc/lib/mu/command/cmd_ddt_rb.html +0 -60
  172. data/rdoc/lib/mu/command/cmd_homepage_rb.html +0 -57
  173. data/rdoc/lib/mu/command/cmd_muapi_rb.html +0 -59
  174. data/rdoc/lib/mu/command/cmd_netconfig_rb.html +0 -58
  175. data/rdoc/lib/mu/command/cmd_runscale_rb.html +0 -62
  176. data/rdoc/lib/mu/command/cmd_runscenario_rb.html +0 -57
  177. data/rdoc/lib/mu/command/cmd_runverify_rb.html +0 -61
  178. data/rdoc/lib/mu/command/cmd_scale_rb.html +0 -58
  179. data/rdoc/lib/mu/command/cmd_system_rb.html +0 -59
  180. data/rdoc/lib/mu/command/curl_rb.html +0 -52
  181. data/rdoc/lib/mu/command/help_rb.html +0 -52
  182. data/rdoc/lib/mu/command_rb.html +0 -55
  183. data/rdoc/lib/mu/curl/error_rb.html +0 -52
  184. data/rdoc/lib/mu/curl/verify_rb.html +0 -52
  185. data/rdoc/lib/mu/helper_rb.html +0 -52
  186. data/rdoc/lib/mu/http_helper_rb.html +0 -52
  187. data/rdoc/lib/mu_rb.html +0 -80
  188. data/rdoc/rdoc-style.css +0 -208
  189. data/rdoc/rdoc.css +0 -706
  190. data/test/data/app_id_stats.csv +0 -1
  191. data/test/data/app_id_status.json +0 -156
  192. data/test/data/data_cgi.msl +0 -94
  193. data/test/data/data_cgi.xml +0 -322
  194. data/test/data/default_test.csv +0 -3
  195. data/test/data/ftp_with_channel.xml +0 -1643
  196. data/test/data/irc.xml +0 -3837
  197. data/test/data/scale.json +0 -25
  198. data/test/data/test_data_cgi_error.xml +0 -35
@@ -1,478 +0,0 @@
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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Mu::Netconfig</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Mu::Netconfig</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/mu/api/netconfig_rb.html">
59
- lib/mu/api/netconfig.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- <a href="../Object.html">
69
- Object
70
- </a>
71
- </td>
72
- </tr>
73
- </table>
74
- </div>
75
- <!-- banner header -->
76
-
77
- <div id="bodyContent">
78
-
79
-
80
-
81
- <div id="contextContent">
82
-
83
-
84
-
85
- </div>
86
-
87
- <div id="method-list">
88
- <h3 class="section-bar">Methods</h3>
89
-
90
- <div class="name-list">
91
- <a href="#M000078">clear_hosts</a>&nbsp;&nbsp;
92
- <a href="#M000081">clear_interface</a>&nbsp;&nbsp;
93
- <a href="#M000084">clear_routes</a>&nbsp;&nbsp;
94
- <a href="#M000082">clear_vlans</a>&nbsp;&nbsp;
95
- <a href="#M000075">create</a>&nbsp;&nbsp;
96
- <a href="#M000076">delete</a>&nbsp;&nbsp;
97
- <a href="#M000073">get</a>&nbsp;&nbsp;
98
- <a href="#M000074">modify</a>&nbsp;&nbsp;
99
- <a href="#M000072">new</a>&nbsp;&nbsp;
100
- <a href="#M000080">resolve_hosts</a>&nbsp;&nbsp;
101
- <a href="#M000077">restore</a>&nbsp;&nbsp;
102
- <a href="#M000079">restore_hosts</a>&nbsp;&nbsp;
103
- <a href="#M000083">restore_interfaces</a>&nbsp;&nbsp;
104
- <a href="#M000085">restore_routes</a>&nbsp;&nbsp;
105
- <a href="#M000086">save</a>&nbsp;&nbsp;
106
- </div>
107
- </div>
108
-
109
- </div>
110
-
111
-
112
- <!-- if includes -->
113
- <div id="includes">
114
- <h3 class="section-bar">Included Modules</h3>
115
-
116
- <div id="includes-list">
117
- <span class="include-name">Helper</span>
118
- </div>
119
- </div>
120
-
121
- <div id="section">
122
-
123
-
124
-
125
-
126
-
127
- <div id="attribute-list">
128
- <h3 class="section-bar">Attributes</h3>
129
-
130
- <div class="name-list">
131
- <table>
132
- <tr class="top-aligned-row context-row">
133
- <td class="context-item-name">config</td>
134
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
135
- <td class="context-item-desc"></td>
136
- </tr>
137
- <tr class="top-aligned-row context-row">
138
- <td class="context-item-name">docroot</td>
139
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
140
- <td class="context-item-desc"></td>
141
- </tr>
142
- <tr class="top-aligned-row context-row">
143
- <td class="context-item-name">element</td>
144
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
145
- <td class="context-item-desc"></td>
146
- </tr>
147
- <tr class="top-aligned-row context-row">
148
- <td class="context-item-name">host</td>
149
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
150
- <td class="context-item-desc"></td>
151
- </tr>
152
- <tr class="top-aligned-row context-row">
153
- <td class="context-item-name">password</td>
154
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
155
- <td class="context-item-desc"></td>
156
- </tr>
157
- <tr class="top-aligned-row context-row">
158
- <td class="context-item-name">response</td>
159
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
160
- <td class="context-item-desc"></td>
161
- </tr>
162
- <tr class="top-aligned-row context-row">
163
- <td class="context-item-name">username</td>
164
- <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
165
- <td class="context-item-desc"></td>
166
- </tr>
167
- </table>
168
- </div>
169
- </div>
170
-
171
-
172
-
173
- <!-- if method_list -->
174
- <div id="methods">
175
- <h3 class="section-bar">Public Class methods</h3>
176
-
177
- <div id="method-M000072" class="method-detail">
178
- <a name="M000072"></a>
179
-
180
- <div class="method-heading">
181
- <a href="Netconfig.src/M000072.html" target="Code" class="method-signature"
182
- onclick="popupCode('Netconfig.src/M000072.html');return false;">
183
- <span class="method-name">new</span><span class="method-args">(host=ENV['MU_IP'], username=ENV['MU_ADMIN_USER'], password=ENV['MU_ADMIN_PASS'])</span>
184
- </a>
185
- </div>
186
-
187
- <div class="method-description">
188
- </div>
189
- </div>
190
-
191
- <h3 class="section-bar">Public Instance methods</h3>
192
-
193
- <div id="method-M000078" class="method-detail">
194
- <a name="M000078"></a>
195
-
196
- <div class="method-heading">
197
- <a href="Netconfig.src/M000078.html" target="Code" class="method-signature"
198
- onclick="popupCode('Netconfig.src/M000078.html');return false;">
199
- <span class="method-name">clear_hosts</span><span class="method-args">()</span>
200
- </a>
201
- </div>
202
-
203
- <div class="method-description">
204
- <p>
205
- clears the network hosts
206
- </p>
207
- </div>
208
- </div>
209
-
210
- <div id="method-M000081" class="method-detail">
211
- <a name="M000081"></a>
212
-
213
- <div class="method-heading">
214
- <a href="Netconfig.src/M000081.html" target="Code" class="method-signature"
215
- onclick="popupCode('Netconfig.src/M000081.html');return false;">
216
- <span class="method-name">clear_interface</span><span class="method-args">(interface)</span>
217
- </a>
218
- </div>
219
-
220
- <div class="method-description">
221
- <p>
222
- clears a network interface
223
- </p>
224
- <pre>
225
- * interface = the name of the interface to clear
226
- </pre>
227
- </div>
228
- </div>
229
-
230
- <div id="method-M000084" class="method-detail">
231
- <a name="M000084"></a>
232
-
233
- <div class="method-heading">
234
- <a href="Netconfig.src/M000084.html" target="Code" class="method-signature"
235
- onclick="popupCode('Netconfig.src/M000084.html');return false;">
236
- <span class="method-name">clear_routes</span><span class="method-args">()</span>
237
- </a>
238
- </div>
239
-
240
- <div class="method-description">
241
- <p>
242
- clears network routes
243
- </p>
244
- </div>
245
- </div>
246
-
247
- <div id="method-M000082" class="method-detail">
248
- <a name="M000082"></a>
249
-
250
- <div class="method-heading">
251
- <a href="Netconfig.src/M000082.html" target="Code" class="method-signature"
252
- onclick="popupCode('Netconfig.src/M000082.html');return false;">
253
- <span class="method-name">clear_vlans</span><span class="method-args">()</span>
254
- </a>
255
- </div>
256
-
257
- <div class="method-description">
258
- <p>
259
- clears all network vlans
260
- </p>
261
- </div>
262
- </div>
263
-
264
- <div id="method-M000075" class="method-detail">
265
- <a name="M000075"></a>
266
-
267
- <div class="method-heading">
268
- <a href="Netconfig.src/M000075.html" target="Code" class="method-signature"
269
- onclick="popupCode('Netconfig.src/M000075.html');return false;">
270
- <span class="method-name">create</span><span class="method-args">(json, e)</span>
271
- </a>
272
- </div>
273
-
274
- <div class="method-description">
275
- <p>
276
- POST method to add a network element
277
- </p>
278
- <pre>
279
- * json = the json string containing the element values
280
- * e = the element to create (interfaces|hosts|routes)
281
- </pre>
282
- </div>
283
- </div>
284
-
285
- <div id="method-M000076" class="method-detail">
286
- <a name="M000076"></a>
287
-
288
- <div class="method-heading">
289
- <a href="Netconfig.src/M000076.html" target="Code" class="method-signature"
290
- onclick="popupCode('Netconfig.src/M000076.html');return false;">
291
- <span class="method-name">delete</span><span class="method-args">(e)</span>
292
- </a>
293
- </div>
294
-
295
- <div class="method-description">
296
- <p>
297
- deletes the specified element
298
- </p>
299
- <pre>
300
- * e = the element to delete
301
- </pre>
302
- </div>
303
- </div>
304
-
305
- <div id="method-M000073" class="method-detail">
306
- <a name="M000073"></a>
307
-
308
- <div class="method-heading">
309
- <a href="Netconfig.src/M000073.html" target="Code" class="method-signature"
310
- onclick="popupCode('Netconfig.src/M000073.html');return false;">
311
- <span class="method-name">get</span><span class="method-args">(e)</span>
312
- </a>
313
- </div>
314
-
315
- <div class="method-description">
316
- <p>
317
- <a href="Netconfig.html#M000073">get</a> - with no params, returns the
318
- entire netconfig json object
319
- </p>
320
- <pre>
321
- * e = the element to retrieve (interfaces|hosts|routes, interfaces/a1 ...)
322
- </pre>
323
- </div>
324
- </div>
325
-
326
- <div id="method-M000074" class="method-detail">
327
- <a name="M000074"></a>
328
-
329
- <div class="method-heading">
330
- <a href="Netconfig.src/M000074.html" target="Code" class="method-signature"
331
- onclick="popupCode('Netconfig.src/M000074.html');return false;">
332
- <span class="method-name">modify</span><span class="method-args">(json, e)</span>
333
- </a>
334
- </div>
335
-
336
- <div class="method-description">
337
- <p>
338
- PUT to <a href="Netconfig.html#M000074">modify</a> netconfig element(s) to
339
- json values
340
- </p>
341
- <pre>
342
- * json = the json string containing the modified values
343
- * e = the element to modify (interfaces|hosts|routes)
344
- </pre>
345
- </div>
346
- </div>
347
-
348
- <div id="method-M000080" class="method-detail">
349
- <a name="M000080"></a>
350
-
351
- <div class="method-heading">
352
- <a href="Netconfig.src/M000080.html" target="Code" class="method-signature"
353
- onclick="popupCode('Netconfig.src/M000080.html');return false;">
354
- <span class="method-name">resolve_hosts</span><span class="method-args">(name=nil)</span>
355
- </a>
356
- </div>
357
-
358
- <div class="method-description">
359
- <p>
360
- use Dns to update host ip addresses. A <a
361
- href="Netconfig.html#M000072">new</a> Host is added if not present when the
362
- name is provided as argument
363
- </p>
364
- <pre>
365
- * name = the name of the host to resolve
366
- </pre>
367
- </div>
368
- </div>
369
-
370
- <div id="method-M000077" class="method-detail">
371
- <a name="M000077"></a>
372
-
373
- <div class="method-heading">
374
- <a href="Netconfig.src/M000077.html" target="Code" class="method-signature"
375
- onclick="popupCode('Netconfig.src/M000077.html');return false;">
376
- <span class="method-name">restore</span><span class="method-args">(filepath=nil,clear_existing=false)</span>
377
- </a>
378
- </div>
379
-
380
- <div class="method-description">
381
- <p>
382
- updates a network configuration from file
383
- </p>
384
- <pre>
385
- * filepath = the path to the json file
386
- * clear_existing - boolean determining whether or not existing elements should be cleared
387
- </pre>
388
- </div>
389
- </div>
390
-
391
- <div id="method-M000079" class="method-detail">
392
- <a name="M000079"></a>
393
-
394
- <div class="method-heading">
395
- <a href="Netconfig.src/M000079.html" target="Code" class="method-signature"
396
- onclick="popupCode('Netconfig.src/M000079.html');return false;">
397
- <span class="method-name">restore_hosts</span><span class="method-args">(hosts)</span>
398
- </a>
399
- </div>
400
-
401
- <div class="method-description">
402
- <p>
403
- restores the network hosts to the initial system states
404
- </p>
405
- </div>
406
- </div>
407
-
408
- <div id="method-M000083" class="method-detail">
409
- <a name="M000083"></a>
410
-
411
- <div class="method-heading">
412
- <a href="Netconfig.src/M000083.html" target="Code" class="method-signature"
413
- onclick="popupCode('Netconfig.src/M000083.html');return false;">
414
- <span class="method-name">restore_interfaces</span><span class="method-args">(interfaces)</span>
415
- </a>
416
- </div>
417
-
418
- <div class="method-description">
419
- <p>
420
- restores network interfaces to system initial settings
421
- </p>
422
- <pre>
423
- * interfaces - the names of the interfaces to restore
424
- </pre>
425
- </div>
426
- </div>
427
-
428
- <div id="method-M000085" class="method-detail">
429
- <a name="M000085"></a>
430
-
431
- <div class="method-heading">
432
- <a href="Netconfig.src/M000085.html" target="Code" class="method-signature"
433
- onclick="popupCode('Netconfig.src/M000085.html');return false;">
434
- <span class="method-name">restore_routes</span><span class="method-args">(routes)</span>
435
- </a>
436
- </div>
437
-
438
- <div class="method-description">
439
- <p>
440
- restores network routes to system initial settings
441
- </p>
442
- </div>
443
- </div>
444
-
445
- <div id="method-M000086" class="method-detail">
446
- <a name="M000086"></a>
447
-
448
- <div class="method-heading">
449
- <a href="Netconfig.src/M000086.html" target="Code" class="method-signature"
450
- onclick="popupCode('Netconfig.src/M000086.html');return false;">
451
- <span class="method-name">save</span><span class="method-args">(e=&quot;all&quot;, filepath=&quot;config.json&quot;)</span>
452
- </a>
453
- </div>
454
-
455
- <div class="method-description">
456
- <p>
457
- writes the json config to filepath
458
- </p>
459
- <pre>
460
- * e = the element to save, or 'all'
461
- * filepath - the fully qualified name of the file to save to
462
- </pre>
463
- </div>
464
- </div>
465
-
466
-
467
- </div>
468
-
469
-
470
- </div>
471
-
472
-
473
- <div id="validator-badges">
474
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
475
- </div>
476
-
477
- </body>
478
- </html>