mu 5.7.2.6 → 5.7.2.7
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.rb +0 -1
- data/lib/mu/api/scale.rb +1 -1
- data/rdoc/Gemfile.html +194 -0
- data/rdoc/LICENSE_txt.html +201 -0
- data/rdoc/Mu.html +478 -0
- data/rdoc/Mu/Client.html +461 -0
- data/rdoc/Mu/Command.html +338 -0
- data/rdoc/Mu/Command/API.html +844 -0
- data/rdoc/Mu/Command/Cmd_appid.html +1342 -0
- data/rdoc/Mu/Command/Cmd_cli.html +800 -0
- data/rdoc/Mu/Command/Cmd_ddt.html +1612 -0
- data/rdoc/Mu/Command/Cmd_homepage.html +762 -0
- data/rdoc/Mu/Command/Cmd_muapi.html +1363 -0
- data/rdoc/Mu/Command/Cmd_netconfig.html +1077 -0
- data/rdoc/Mu/Command/Cmd_runscale.html +1441 -0
- data/rdoc/Mu/Command/Cmd_runscenario.html +787 -0
- data/rdoc/Mu/Command/Cmd_runverify.html +893 -0
- data/rdoc/Mu/Command/Cmd_scale.html +1323 -0
- data/rdoc/Mu/Command/Cmd_system.html +677 -0
- data/rdoc/Mu/Command/Curl.html +751 -0
- data/rdoc/Mu/Command/Help.html +305 -0
- data/rdoc/Mu/Curl.html +243 -0
- data/rdoc/Mu/Curl/Error.html +304 -0
- data/rdoc/Mu/Curl/Error/Authorize.html +355 -0
- data/rdoc/Mu/Curl/Error/Connect.html +286 -0
- data/rdoc/Mu/Curl/Error/DNS.html +236 -0
- data/rdoc/Mu/Curl/Error/Region.html +307 -0
- data/rdoc/Mu/Curl/Error/Status.html +286 -0
- data/rdoc/Mu/Curl/Error/Timeout.html +286 -0
- data/rdoc/Mu/Curl/Verify.html +472 -0
- data/rdoc/Mu/Curl/Verify/Request.html +424 -0
- data/rdoc/Mu/Curl/Verify/Response.html +372 -0
- data/rdoc/Mu/Curl/Verify/Result.html +373 -0
- data/rdoc/Mu/Ddt.html +1347 -0
- data/rdoc/Mu/Helper.html +517 -0
- data/rdoc/Mu/Homepage.html +719 -0
- data/rdoc/Mu/HttpHelper.html +890 -0
- data/rdoc/Mu/Muapi.html +1226 -0
- data/rdoc/Mu/Netconfig.html +1178 -0
- data/rdoc/Mu/Scale.html +1359 -0
- data/rdoc/Mu/System.html +504 -0
- data/rdoc/Object.html +285 -0
- data/rdoc/README_rdoc.html +892 -0
- data/rdoc/Rakefile.html +257 -0
- data/rdoc/TCTestMu.html +2583 -0
- data/rdoc/Test.html +235 -0
- data/rdoc/Test/Unit.html +235 -0
- data/rdoc/Test/Unit/TestCase.html +236 -0
- data/rdoc/Test/helper_rb.html +62 -0
- data/rdoc/Test/tc_test_mu_rb.html +60 -0
- data/rdoc/VERSION.html +179 -0
- data/rdoc/bin/mu.html +54 -0
- data/rdoc/created.rid +36 -1
- data/rdoc/images/brick.png +0 -0
- data/rdoc/images/brick_link.png +0 -0
- data/rdoc/images/bug.png +0 -0
- data/rdoc/images/bullet_black.png +0 -0
- data/rdoc/images/bullet_toggle_minus.png +0 -0
- data/rdoc/images/bullet_toggle_plus.png +0 -0
- data/rdoc/images/date.png +0 -0
- data/rdoc/images/find.png +0 -0
- data/rdoc/images/loadingAnimation.gif +0 -0
- data/rdoc/images/macFFBgHack.png +0 -0
- data/rdoc/images/package.png +0 -0
- data/rdoc/images/page_green.png +0 -0
- data/rdoc/images/page_white_text.png +0 -0
- data/rdoc/images/page_white_width.png +0 -0
- data/rdoc/images/plugin.png +0 -0
- data/rdoc/images/ruby.png +0 -0
- data/rdoc/images/tag_green.png +0 -0
- data/rdoc/images/wrench.png +0 -0
- data/rdoc/images/wrench_orange.png +0 -0
- data/rdoc/images/zoom.png +0 -0
- data/rdoc/index.html +880 -20
- data/rdoc/js/darkfish.js +116 -0
- data/rdoc/js/jquery.js +32 -0
- data/rdoc/js/quicksearch.js +114 -0
- data/rdoc/js/thickbox-compressed.js +10 -0
- data/rdoc/lib/mu/api/ddt_rb.html +52 -0
- data/rdoc/lib/mu/api/homepage_rb.html +52 -0
- data/rdoc/lib/mu/api/muapi_rb.html +52 -0
- data/rdoc/lib/mu/api/netconfig_rb.html +52 -0
- data/rdoc/lib/mu/api/scale_rb.html +52 -0
- data/rdoc/lib/mu/api/system_rb.html +52 -0
- data/rdoc/lib/mu/client_rb.html +52 -0
- data/rdoc/lib/mu/command/api_rb.html +52 -0
- data/rdoc/lib/mu/command/cmd_appid_rb.html +62 -0
- data/rdoc/lib/mu/command/cmd_cli_rb.html +55 -0
- data/rdoc/lib/mu/command/cmd_ddt_rb.html +60 -0
- data/rdoc/lib/mu/command/cmd_homepage_rb.html +57 -0
- data/rdoc/lib/mu/command/cmd_muapi_rb.html +59 -0
- data/rdoc/lib/mu/command/cmd_netconfig_rb.html +58 -0
- data/rdoc/lib/mu/command/cmd_runscale_rb.html +62 -0
- data/rdoc/lib/mu/command/cmd_runscenario_rb.html +57 -0
- data/rdoc/lib/mu/command/cmd_runverify_rb.html +61 -0
- data/rdoc/lib/mu/command/cmd_scale_rb.html +58 -0
- data/rdoc/lib/mu/command/cmd_system_rb.html +59 -0
- data/rdoc/lib/mu/command/curl_rb.html +52 -0
- data/rdoc/lib/mu/command/help_rb.html +52 -0
- data/rdoc/lib/mu/command_rb.html +55 -0
- data/rdoc/lib/mu/curl/error_rb.html +52 -0
- data/rdoc/lib/mu/curl/verify_rb.html +52 -0
- data/rdoc/lib/mu/helper_rb.html +52 -0
- data/rdoc/lib/mu/http_helper_rb.html +52 -0
- data/rdoc/lib/mu_rb.html +80 -0
- data/rdoc/rdoc.css +706 -0
- data/test/data/app_id_stats.csv +1 -1
- data/test/data/app_id_status.json +117 -117
- data/test/data/{scale_configuration.json → scale.json} +11 -11
- metadata +142 -407
- data/rdoc/classes/Mu.src/M000001.html +0 -39
- data/rdoc/classes/Mu.src/M000002.html +0 -29
- data/rdoc/classes/Mu.src/M000053.html +0 -39
- data/rdoc/classes/Mu.src/M000054.html +0 -29
- data/rdoc/classes/Mu/Client.src/M000212.html +0 -24
- data/rdoc/classes/Mu/Client.src/M000213.html +0 -18
- data/rdoc/classes/Mu/Client.src/M000214.html +0 -18
- data/rdoc/classes/Mu/Client.src/M000215.html +0 -18
- data/rdoc/classes/Mu/Client.src/M000216.html +0 -18
- data/rdoc/classes/Mu/Command/API.src/M000130.html +0 -22
- data/rdoc/classes/Mu/Command/API.src/M000131.html +0 -19
- data/rdoc/classes/Mu/Command/API.src/M000132.html +0 -19
- data/rdoc/classes/Mu/Command/API.src/M000133.html +0 -19
- data/rdoc/classes/Mu/Command/API.src/M000134.html +0 -18
- data/rdoc/classes/Mu/Command/API.src/M000135.html +0 -17
- data/rdoc/classes/Mu/Command/API.src/M000136.html +0 -23
- data/rdoc/classes/Mu/Command/API.src/M000137.html +0 -18
- data/rdoc/classes/Mu/Command/API.src/M000138.html +0 -29
- data/rdoc/classes/Mu/Command/API.src/M000139.html +0 -18
- data/rdoc/classes/Mu/Command/API.src/M000140.html +0 -22
- data/rdoc/classes/Mu/Command/API.src/M000141.html +0 -19
- data/rdoc/classes/Mu/Command/API.src/M000142.html +0 -18
- data/rdoc/classes/Mu/Command/API.src/M000143.html +0 -18
- data/rdoc/classes/Mu/Command/API.src/M000144.html +0 -17
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000053.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000054.html +0 -30
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000055.html +0 -39
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000056.html +0 -50
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000145.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000146.html +0 -30
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000147.html +0 -39
- data/rdoc/classes/Mu/Command/Cmd_appid.src/M000148.html +0 -50
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000200.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000201.html +0 -19
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000202.html +0 -19
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000203.html +0 -19
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000204.html +0 -20
- data/rdoc/classes/Mu/Command/Cmd_cli.src/M000205.html +0 -20
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000101.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000102.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000103.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000104.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000105.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000106.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000107.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000108.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000109.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000110.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000111.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000112.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000113.html +0 -43
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000114.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000115.html +0 -38
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000116.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000117.html +0 -38
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000118.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000119.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000120.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000121.html +0 -24
- data/rdoc/classes/Mu/Command/Cmd_ddt.src/M000122.html +0 -24
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000206.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000207.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000208.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000209.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000210.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_homepage.src/M000211.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000164.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000165.html +0 -27
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000166.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000167.html +0 -27
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000168.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000169.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000170.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000171.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000172.html +0 -28
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000173.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000174.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000175.html +0 -28
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000176.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000177.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000178.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000179.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_muapi.src/M000180.html +0 -24
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000060.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000061.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000062.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000063.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000064.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000065.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000066.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000067.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000068.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000069.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000070.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000071.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000152.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000153.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000154.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000155.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000156.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000157.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000158.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000159.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000160.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000161.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000162.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_netconfig.src/M000163.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000003.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000004.html +0 -51
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000005.html +0 -50
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000057.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000058.html +0 -51
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000059.html +0 -50
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000149.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000150.html +0 -51
- data/rdoc/classes/Mu/Command/Cmd_runscale.src/M000151.html +0 -50
- data/rdoc/classes/Mu/Command/Cmd_runscenario.src/M000128.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_runscenario.src/M000129.html +0 -144
- data/rdoc/classes/Mu/Command/Cmd_runverify.src/M000198.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_runverify.src/M000199.html +0 -200
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000181.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000182.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000183.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000184.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000185.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000186.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000187.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000188.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000189.html +0 -23
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000190.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000191.html +0 -29
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000192.html +0 -27
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000193.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000194.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000195.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000196.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_scale.src/M000197.html +0 -22
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000097.html +0 -18
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000098.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000099.html +0 -21
- data/rdoc/classes/Mu/Command/Cmd_system.src/M000100.html +0 -21
- data/rdoc/classes/Mu/Command/Curl.src/M000124.html +0 -18
- data/rdoc/classes/Mu/Command/Curl.src/M000125.html +0 -21
- data/rdoc/classes/Mu/Command/Curl.src/M000126.html +0 -26
- data/rdoc/classes/Mu/Command/Help.src/M000123.html +0 -38
- data/rdoc/classes/Mu/Curl/Error.src/M000063.html +0 -18
- data/rdoc/classes/Mu/Curl/Error/Authorize.src/M000065.html +0 -22
- data/rdoc/classes/Mu/Curl/Error/Connect.src/M000068.html +0 -19
- data/rdoc/classes/Mu/Curl/Error/Region.src/M000066.html +0 -19
- data/rdoc/classes/Mu/Curl/Error/Status.src/M000064.html +0 -19
- data/rdoc/classes/Mu/Curl/Error/Timeout.src/M000067.html +0 -19
- data/rdoc/classes/Mu/Curl/Verify.src/M000055.html +0 -29
- data/rdoc/classes/Mu/Curl/Verify.src/M000056.html +0 -18
- data/rdoc/classes/Mu/Curl/Verify.src/M000057.html +0 -46
- data/rdoc/classes/Mu/Curl/Verify.src/M000058.html +0 -18
- data/rdoc/classes/Mu/Curl/Verify/Request.src/M000061.html +0 -35
- data/rdoc/classes/Mu/Curl/Verify/Request.src/M000062.html +0 -23
- data/rdoc/classes/Mu/Curl/Verify/Response.src/M000059.html +0 -24
- data/rdoc/classes/Mu/Curl/Verify/Result.src/M000060.html +0 -25
- data/rdoc/classes/Mu/Ddt.src/M000242.html +0 -24
- data/rdoc/classes/Mu/Ddt.src/M000243.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000244.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000245.html +0 -23
- data/rdoc/classes/Mu/Ddt.src/M000246.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000247.html +0 -32
- data/rdoc/classes/Mu/Ddt.src/M000248.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000249.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000250.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000251.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000252.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000253.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000254.html +0 -25
- data/rdoc/classes/Mu/Ddt.src/M000255.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000256.html +0 -24
- data/rdoc/classes/Mu/Ddt.src/M000257.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000258.html +0 -24
- data/rdoc/classes/Mu/Ddt.src/M000259.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000260.html +0 -35
- data/rdoc/classes/Mu/Ddt.src/M000261.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000262.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000263.html +0 -20
- data/rdoc/classes/Mu/Ddt.src/M000264.html +0 -22
- data/rdoc/classes/Mu/Homepage.src/M000236.html +0 -25
- data/rdoc/classes/Mu/Homepage.src/M000237.html +0 -20
- data/rdoc/classes/Mu/Homepage.src/M000238.html +0 -20
- data/rdoc/classes/Mu/Homepage.src/M000239.html +0 -20
- data/rdoc/classes/Mu/Homepage.src/M000240.html +0 -20
- data/rdoc/classes/Mu/Homepage.src/M000241.html +0 -20
- data/rdoc/classes/Mu/HttpHelper.src/M000069.html +0 -22
- data/rdoc/classes/Mu/HttpHelper.src/M000070.html +0 -25
- data/rdoc/classes/Mu/HttpHelper.src/M000071.html +0 -34
- data/rdoc/classes/Mu/HttpHelper.src/M000072.html +0 -39
- data/rdoc/classes/Mu/HttpHelper.src/M000073.html +0 -36
- data/rdoc/classes/Mu/HttpHelper.src/M000074.html +0 -34
- data/rdoc/classes/Mu/HttpHelper.src/M000075.html +0 -46
- data/rdoc/classes/Mu/HttpHelper.src/M000076.html +0 -24
- data/rdoc/classes/Mu/HttpHelper.src/M000077.html +0 -19
- data/rdoc/classes/Mu/HttpHelper.src/M000078.html +0 -33
- data/rdoc/classes/Mu/HttpHelper.src/M000079.html +0 -29
- data/rdoc/classes/Mu/Muapi.src/M000080.html +0 -25
- data/rdoc/classes/Mu/Muapi.src/M000081.html +0 -27
- data/rdoc/classes/Mu/Muapi.src/M000082.html +0 -24
- data/rdoc/classes/Mu/Muapi.src/M000083.html +0 -27
- data/rdoc/classes/Mu/Muapi.src/M000084.html +0 -23
- data/rdoc/classes/Mu/Muapi.src/M000085.html +0 -23
- data/rdoc/classes/Mu/Muapi.src/M000086.html +0 -23
- data/rdoc/classes/Mu/Muapi.src/M000087.html +0 -23
- data/rdoc/classes/Mu/Muapi.src/M000088.html +0 -23
- data/rdoc/classes/Mu/Muapi.src/M000089.html +0 -22
- data/rdoc/classes/Mu/Muapi.src/M000090.html +0 -21
- data/rdoc/classes/Mu/Muapi.src/M000091.html +0 -19
- data/rdoc/classes/Mu/Muapi.src/M000092.html +0 -18
- data/rdoc/classes/Mu/Muapi.src/M000093.html +0 -18
- data/rdoc/classes/Mu/Muapi.src/M000094.html +0 -36
- data/rdoc/classes/Mu/Muapi.src/M000095.html +0 -34
- data/rdoc/classes/Mu/Muapi.src/M000096.html +0 -34
- data/rdoc/classes/Mu/Netconfig.src/M000072.html +0 -25
- data/rdoc/classes/Mu/Netconfig.src/M000073.html +0 -20
- data/rdoc/classes/Mu/Netconfig.src/M000074.html +0 -21
- data/rdoc/classes/Mu/Netconfig.src/M000075.html +0 -24
- data/rdoc/classes/Mu/Netconfig.src/M000076.html +0 -20
- data/rdoc/classes/Mu/Netconfig.src/M000077.html +0 -36
- data/rdoc/classes/Mu/Netconfig.src/M000078.html +0 -22
- data/rdoc/classes/Mu/Netconfig.src/M000079.html +0 -22
- data/rdoc/classes/Mu/Netconfig.src/M000080.html +0 -39
- data/rdoc/classes/Mu/Netconfig.src/M000081.html +0 -21
- data/rdoc/classes/Mu/Netconfig.src/M000082.html +0 -23
- data/rdoc/classes/Mu/Netconfig.src/M000083.html +0 -26
- data/rdoc/classes/Mu/Netconfig.src/M000084.html +0 -23
- data/rdoc/classes/Mu/Netconfig.src/M000085.html +0 -22
- data/rdoc/classes/Mu/Netconfig.src/M000086.html +0 -19
- data/rdoc/classes/Mu/Netconfig.src/M000217.html +0 -25
- data/rdoc/classes/Mu/Netconfig.src/M000218.html +0 -20
- data/rdoc/classes/Mu/Netconfig.src/M000219.html +0 -21
- data/rdoc/classes/Mu/Netconfig.src/M000220.html +0 -24
- data/rdoc/classes/Mu/Netconfig.src/M000221.html +0 -20
- data/rdoc/classes/Mu/Netconfig.src/M000222.html +0 -36
- data/rdoc/classes/Mu/Netconfig.src/M000223.html +0 -22
- data/rdoc/classes/Mu/Netconfig.src/M000224.html +0 -22
- data/rdoc/classes/Mu/Netconfig.src/M000225.html +0 -37
- data/rdoc/classes/Mu/Netconfig.src/M000226.html +0 -21
- data/rdoc/classes/Mu/Netconfig.src/M000227.html +0 -23
- data/rdoc/classes/Mu/Netconfig.src/M000228.html +0 -26
- data/rdoc/classes/Mu/Netconfig.src/M000229.html +0 -23
- data/rdoc/classes/Mu/Netconfig.src/M000230.html +0 -22
- data/rdoc/classes/Mu/Netconfig.src/M000231.html +0 -19
- data/rdoc/classes/Mu/Scale.src/M000006.html +0 -47
- data/rdoc/classes/Mu/Scale.src/M000007.html +0 -27
- data/rdoc/classes/Mu/Scale.src/M000008.html +0 -22
- data/rdoc/classes/Mu/Scale.src/M000009.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000010.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000011.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000012.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000013.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000014.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000015.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000016.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000017.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000018.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000019.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000020.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000021.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000022.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000023.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000024.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000025.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000265.html +0 -46
- data/rdoc/classes/Mu/Scale.src/M000266.html +0 -27
- data/rdoc/classes/Mu/Scale.src/M000267.html +0 -22
- data/rdoc/classes/Mu/Scale.src/M000268.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000269.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000270.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000271.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000272.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000273.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000274.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000275.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000276.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000277.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000278.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000279.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000280.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000281.html +0 -20
- data/rdoc/classes/Mu/Scale.src/M000282.html +0 -20
- data/rdoc/classes/Mu/System.src/M000232.html +0 -25
- data/rdoc/classes/Mu/System.src/M000233.html +0 -20
- data/rdoc/classes/Mu/System.src/M000234.html +0 -20
- data/rdoc/classes/Mu/System.src/M000235.html +0 -20
- data/rdoc/classes/Object.src/M000052.html +0 -18
- data/rdoc/classes/TCTestMu.src/M000001.html +0 -24
- data/rdoc/classes/TCTestMu.src/M000002.html +0 -18
- data/rdoc/classes/TCTestMu.src/M000003.html +0 -32
- data/rdoc/classes/TCTestMu.src/M000004.html +0 -33
- data/rdoc/classes/TCTestMu.src/M000005.html +0 -21
- data/rdoc/classes/TCTestMu.src/M000006.html +0 -21
- data/rdoc/classes/TCTestMu.src/M000007.html +0 -26
- data/rdoc/classes/TCTestMu.src/M000008.html +0 -29
- data/rdoc/classes/TCTestMu.src/M000009.html +0 -39
- data/rdoc/classes/TCTestMu.src/M000010.html +0 -38
- data/rdoc/classes/TCTestMu.src/M000011.html +0 -38
- data/rdoc/classes/TCTestMu.src/M000012.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000013.html +0 -25
- data/rdoc/classes/TCTestMu.src/M000014.html +0 -25
- data/rdoc/classes/TCTestMu.src/M000015.html +0 -33
- data/rdoc/classes/TCTestMu.src/M000016.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000017.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000018.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000019.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000020.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000021.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000022.html +0 -23
- data/rdoc/classes/TCTestMu.src/M000023.html +0 -23
- data/rdoc/classes/TCTestMu.src/M000024.html +0 -44
- data/rdoc/classes/TCTestMu.src/M000025.html +0 -53
- data/rdoc/classes/TCTestMu.src/M000026.html +0 -22
- data/rdoc/classes/TCTestMu.src/M000027.html +0 -49
- data/rdoc/classes/TCTestMu.src/M000028.html +0 -40
- data/rdoc/classes/TCTestMu.src/M000029.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000030.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000031.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000032.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000033.html +0 -27
- data/rdoc/classes/TCTestMu.src/M000034.html +0 -32
- data/rdoc/classes/TCTestMu.src/M000035.html +0 -23
- data/rdoc/classes/TCTestMu.src/M000036.html +0 -41
- data/rdoc/classes/TCTestMu.src/M000037.html +0 -23
- data/rdoc/classes/TCTestMu.src/M000038.html +0 -24
- data/rdoc/classes/TCTestMu.src/M000039.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000040.html +0 -32
- data/rdoc/classes/TCTestMu.src/M000041.html +0 -32
- data/rdoc/classes/TCTestMu.src/M000042.html +0 -26
- data/rdoc/classes/TCTestMu.src/M000043.html +0 -28
- data/rdoc/classes/TCTestMu.src/M000044.html +0 -21
- data/rdoc/classes/TCTestMu.src/M000045.html +0 -23
- data/rdoc/classes/TCTestMu.src/M000046.html +0 -21
- data/rdoc/classes/TCTestMu.src/M000047.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000048.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000049.html +0 -22
- data/rdoc/classes/TCTestMu.src/M000050.html +0 -20
- data/rdoc/classes/TCTestMu.src/M000051.html +0 -35
- data/test/helper.rb +0 -18
- data/test/tc_test_mu.rb +0 -720
|
@@ -0,0 +1,1077 @@
|
|
|
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: Mu::Command::Cmd_netconfig</title>
|
|
9
|
+
|
|
10
|
+
<link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
|
|
11
|
+
|
|
12
|
+
<script src="../../js/jquery.js" type="text/javascript"
|
|
13
|
+
charset="utf-8"></script>
|
|
14
|
+
<script src="../../js/thickbox-compressed.js" type="text/javascript"
|
|
15
|
+
charset="utf-8"></script>
|
|
16
|
+
<script src="../../js/quicksearch.js" type="text/javascript"
|
|
17
|
+
charset="utf-8"></script>
|
|
18
|
+
<script src="../../js/darkfish.js" type="text/javascript"
|
|
19
|
+
charset="utf-8"></script>
|
|
20
|
+
|
|
21
|
+
</head>
|
|
22
|
+
<body class="class">
|
|
23
|
+
|
|
24
|
+
<div id="metadata">
|
|
25
|
+
<div id="home-metadata">
|
|
26
|
+
<div id="home-section" class="section">
|
|
27
|
+
<h3 class="section-header">
|
|
28
|
+
<a href="../../index.html">Home</a>
|
|
29
|
+
<a href="../../index.html#classes">Classes</a>
|
|
30
|
+
<a href="../../index.html#methods">Methods</a>
|
|
31
|
+
</h3>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div id="file-metadata">
|
|
36
|
+
<div id="file-list-section" class="section">
|
|
37
|
+
<h3 class="section-header">In Files</h3>
|
|
38
|
+
<div class="section-body">
|
|
39
|
+
<ul>
|
|
40
|
+
|
|
41
|
+
<li><a href="../../lib/mu/command/cmd_netconfig_rb.html?TB_iframe=true&height=550&width=785"
|
|
42
|
+
class="thickbox" title="lib/mu/command/cmd_netconfig.rb">lib/mu/command/cmd_netconfig.rb</a></li>
|
|
43
|
+
|
|
44
|
+
</ul>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<div id="class-metadata">
|
|
52
|
+
|
|
53
|
+
<!-- Parent Class -->
|
|
54
|
+
|
|
55
|
+
<div id="parent-class-section" class="section">
|
|
56
|
+
<h3 class="section-header">Parent</h3>
|
|
57
|
+
|
|
58
|
+
<p class="link"><a href="../Command.html">Mu::Command</a></p>
|
|
59
|
+
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
<!-- Namespace Contents -->
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
<!-- Method Quickref -->
|
|
67
|
+
|
|
68
|
+
<div id="method-list-section" class="section">
|
|
69
|
+
<h3 class="section-header">Methods</h3>
|
|
70
|
+
<ul class="link-list">
|
|
71
|
+
|
|
72
|
+
<li><a href="#method-i-cmd_clear_hosts">#cmd_clear_hosts</a></li>
|
|
73
|
+
|
|
74
|
+
<li><a href="#method-i-cmd_clear_interface">#cmd_clear_interface</a></li>
|
|
75
|
+
|
|
76
|
+
<li><a href="#method-i-cmd_clear_routes">#cmd_clear_routes</a></li>
|
|
77
|
+
|
|
78
|
+
<li><a href="#method-i-cmd_clear_vlans">#cmd_clear_vlans</a></li>
|
|
79
|
+
|
|
80
|
+
<li><a href="#method-i-cmd_create">#cmd_create</a></li>
|
|
81
|
+
|
|
82
|
+
<li><a href="#method-i-cmd_delete">#cmd_delete</a></li>
|
|
83
|
+
|
|
84
|
+
<li><a href="#method-i-cmd_get">#cmd_get</a></li>
|
|
85
|
+
|
|
86
|
+
<li><a href="#method-i-cmd_help">#cmd_help</a></li>
|
|
87
|
+
|
|
88
|
+
<li><a href="#method-i-cmd_modify">#cmd_modify</a></li>
|
|
89
|
+
|
|
90
|
+
<li><a href="#method-i-cmd_resolve_hosts">#cmd_resolve_hosts</a></li>
|
|
91
|
+
|
|
92
|
+
<li><a href="#method-i-cmd_restore">#cmd_restore</a></li>
|
|
93
|
+
|
|
94
|
+
<li><a href="#method-i-cmd_save">#cmd_save</a></li>
|
|
95
|
+
|
|
96
|
+
<li><a href="#method-i-help">#help</a></li>
|
|
97
|
+
|
|
98
|
+
<li><a href="#method-i-parse_cli">#parse_cli</a></li>
|
|
99
|
+
|
|
100
|
+
<li><a href="#method-i-setup">#setup</a></li>
|
|
101
|
+
|
|
102
|
+
</ul>
|
|
103
|
+
</div>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
<!-- Included Modules -->
|
|
107
|
+
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
<div id="project-metadata">
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
<div id="fileindex-section" class="section project-section">
|
|
114
|
+
<h3 class="section-header">Files</h3>
|
|
115
|
+
<ul>
|
|
116
|
+
|
|
117
|
+
<li class="file"><a href="../../Gemfile.html">Gemfile</a></li>
|
|
118
|
+
|
|
119
|
+
<li class="file"><a href="../../LICENSE_txt.html">LICENSE.txt</a></li>
|
|
120
|
+
|
|
121
|
+
<li class="file"><a href="../../README_rdoc.html">README.rdoc</a></li>
|
|
122
|
+
|
|
123
|
+
<li class="file"><a href="../../Rakefile.html">Rakefile</a></li>
|
|
124
|
+
|
|
125
|
+
<li class="file"><a href="../../VERSION.html">VERSION</a></li>
|
|
126
|
+
|
|
127
|
+
</ul>
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
<div id="classindex-section" class="section project-section">
|
|
132
|
+
<h3 class="section-header">Class Index
|
|
133
|
+
<span class="search-toggle"><img src="../../images/find.png"
|
|
134
|
+
height="16" width="16" alt="[+]"
|
|
135
|
+
title="show/hide quicksearch" /></span></h3>
|
|
136
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
|
137
|
+
<fieldset>
|
|
138
|
+
<legend>Quicksearch</legend>
|
|
139
|
+
<input type="text" name="quicksearch" value=""
|
|
140
|
+
class="quicksearch-field" />
|
|
141
|
+
</fieldset>
|
|
142
|
+
</form>
|
|
143
|
+
|
|
144
|
+
<ul class="link-list">
|
|
145
|
+
|
|
146
|
+
<li><a href="../../Mu.html">Mu</a></li>
|
|
147
|
+
|
|
148
|
+
<li><a href="../../Mu/Client.html">Mu::Client</a></li>
|
|
149
|
+
|
|
150
|
+
<li><a href="../../Mu/Command.html">Mu::Command</a></li>
|
|
151
|
+
|
|
152
|
+
<li><a href="../../Mu/Command/API.html">Mu::Command::API</a></li>
|
|
153
|
+
|
|
154
|
+
<li><a href="../../Mu/Command/API.html">Mu::Command::API</a></li>
|
|
155
|
+
|
|
156
|
+
<li><a href="../../Mu/Command/Cmd_appid.html">Mu::Command::Cmd_appid</a></li>
|
|
157
|
+
|
|
158
|
+
<li><a href="../../Mu/Command/Cmd_cli.html">Mu::Command::Cmd_cli</a></li>
|
|
159
|
+
|
|
160
|
+
<li><a href="../../Mu/Command/Cmd_ddt.html">Mu::Command::Cmd_ddt</a></li>
|
|
161
|
+
|
|
162
|
+
<li><a href="../../Mu/Command/Cmd_homepage.html">Mu::Command::Cmd_homepage</a></li>
|
|
163
|
+
|
|
164
|
+
<li><a href="../../Mu/Command/Cmd_muapi.html">Mu::Command::Cmd_muapi</a></li>
|
|
165
|
+
|
|
166
|
+
<li><a href="../../Mu/Command/Cmd_netconfig.html">Mu::Command::Cmd_netconfig</a></li>
|
|
167
|
+
|
|
168
|
+
<li><a href="../../Mu/Command/Cmd_runscale.html">Mu::Command::Cmd_runscale</a></li>
|
|
169
|
+
|
|
170
|
+
<li><a href="../../Mu/Command/Cmd_runscenario.html">Mu::Command::Cmd_runscenario</a></li>
|
|
171
|
+
|
|
172
|
+
<li><a href="../../Mu/Command/Cmd_runverify.html">Mu::Command::Cmd_runverify</a></li>
|
|
173
|
+
|
|
174
|
+
<li><a href="../../Mu/Command/Cmd_scale.html">Mu::Command::Cmd_scale</a></li>
|
|
175
|
+
|
|
176
|
+
<li><a href="../../Mu/Command/Cmd_system.html">Mu::Command::Cmd_system</a></li>
|
|
177
|
+
|
|
178
|
+
<li><a href="../../Mu/Command/Curl.html">Mu::Command::Curl</a></li>
|
|
179
|
+
|
|
180
|
+
<li><a href="../../Mu/Command/Help.html">Mu::Command::Help</a></li>
|
|
181
|
+
|
|
182
|
+
<li><a href="../../Mu/Curl.html">Mu::Curl</a></li>
|
|
183
|
+
|
|
184
|
+
<li><a href="../../Mu/Curl/Error.html">Mu::Curl::Error</a></li>
|
|
185
|
+
|
|
186
|
+
<li><a href="../../Mu/Curl/Error/Authorize.html">Mu::Curl::Error::Authorize</a></li>
|
|
187
|
+
|
|
188
|
+
<li><a href="../../Mu/Curl/Error/Connect.html">Mu::Curl::Error::Connect</a></li>
|
|
189
|
+
|
|
190
|
+
<li><a href="../../Mu/Curl/Error/DNS.html">Mu::Curl::Error::DNS</a></li>
|
|
191
|
+
|
|
192
|
+
<li><a href="../../Mu/Curl/Error/Region.html">Mu::Curl::Error::Region</a></li>
|
|
193
|
+
|
|
194
|
+
<li><a href="../../Mu/Curl/Error/Status.html">Mu::Curl::Error::Status</a></li>
|
|
195
|
+
|
|
196
|
+
<li><a href="../../Mu/Curl/Error/Timeout.html">Mu::Curl::Error::Timeout</a></li>
|
|
197
|
+
|
|
198
|
+
<li><a href="../../Mu/Curl/Verify.html">Mu::Curl::Verify</a></li>
|
|
199
|
+
|
|
200
|
+
<li><a href="../../Mu/Curl/Verify/Request.html">Mu::Curl::Verify::Request</a></li>
|
|
201
|
+
|
|
202
|
+
<li><a href="../../Mu/Curl/Verify/Response.html">Mu::Curl::Verify::Response</a></li>
|
|
203
|
+
|
|
204
|
+
<li><a href="../../Mu/Curl/Verify/Result.html">Mu::Curl::Verify::Result</a></li>
|
|
205
|
+
|
|
206
|
+
<li><a href="../../Mu/Ddt.html">Mu::Ddt</a></li>
|
|
207
|
+
|
|
208
|
+
<li><a href="../../Mu/Helper.html">Mu::Helper</a></li>
|
|
209
|
+
|
|
210
|
+
<li><a href="../../Mu/Homepage.html">Mu::Homepage</a></li>
|
|
211
|
+
|
|
212
|
+
<li><a href="../../Mu/HttpHelper.html">Mu::HttpHelper</a></li>
|
|
213
|
+
|
|
214
|
+
<li><a href="../../Mu/Muapi.html">Mu::Muapi</a></li>
|
|
215
|
+
|
|
216
|
+
<li><a href="../../Mu/Netconfig.html">Mu::Netconfig</a></li>
|
|
217
|
+
|
|
218
|
+
<li><a href="../../Mu/Scale.html">Mu::Scale</a></li>
|
|
219
|
+
|
|
220
|
+
<li><a href="../../Mu/System.html">Mu::System</a></li>
|
|
221
|
+
|
|
222
|
+
<li><a href="../../Test.html">Test</a></li>
|
|
223
|
+
|
|
224
|
+
<li><a href="../../Test/Unit.html">Test::Unit</a></li>
|
|
225
|
+
|
|
226
|
+
<li><a href="../../Test/Unit/TestCase.html">Test::Unit::TestCase</a></li>
|
|
227
|
+
|
|
228
|
+
<li><a href="../../Object.html">Object</a></li>
|
|
229
|
+
|
|
230
|
+
<li><a href="../../TCTestMu.html">TCTestMu</a></li>
|
|
231
|
+
|
|
232
|
+
</ul>
|
|
233
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
|
234
|
+
</div>
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
</div>
|
|
238
|
+
</div>
|
|
239
|
+
|
|
240
|
+
<div id="documentation">
|
|
241
|
+
<h1 class="class">Mu::Command::Cmd_netconfig</h1>
|
|
242
|
+
|
|
243
|
+
<div id="description">
|
|
244
|
+
|
|
245
|
+
</div>
|
|
246
|
+
|
|
247
|
+
<!-- Constants -->
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
<!-- Attributes -->
|
|
251
|
+
|
|
252
|
+
<div id="attribute-method-details" class="method-section section">
|
|
253
|
+
<h3 class="section-header">Attributes</h3>
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
<div id="host-attribute-method" class="method-detail">
|
|
257
|
+
<a name="host"></a>
|
|
258
|
+
|
|
259
|
+
<a name="host="></a>
|
|
260
|
+
|
|
261
|
+
<div class="method-heading attribute-method-heading">
|
|
262
|
+
<span class="method-name">host</span><span
|
|
263
|
+
class="attribute-access-type">[RW]</span>
|
|
264
|
+
</div>
|
|
265
|
+
|
|
266
|
+
<div class="method-description">
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
</div>
|
|
271
|
+
</div>
|
|
272
|
+
|
|
273
|
+
<div id="username-attribute-method" class="method-detail">
|
|
274
|
+
<a name="username"></a>
|
|
275
|
+
|
|
276
|
+
<a name="username="></a>
|
|
277
|
+
|
|
278
|
+
<div class="method-heading attribute-method-heading">
|
|
279
|
+
<span class="method-name">username</span><span
|
|
280
|
+
class="attribute-access-type">[RW]</span>
|
|
281
|
+
</div>
|
|
282
|
+
|
|
283
|
+
<div class="method-description">
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
289
|
+
|
|
290
|
+
<div id="password-attribute-method" class="method-detail">
|
|
291
|
+
<a name="password"></a>
|
|
292
|
+
|
|
293
|
+
<a name="password="></a>
|
|
294
|
+
|
|
295
|
+
<div class="method-heading attribute-method-heading">
|
|
296
|
+
<span class="method-name">password</span><span
|
|
297
|
+
class="attribute-access-type">[RW]</span>
|
|
298
|
+
</div>
|
|
299
|
+
|
|
300
|
+
<div class="method-description">
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
</div>
|
|
305
|
+
</div>
|
|
306
|
+
|
|
307
|
+
<div id="api-attribute-method" class="method-detail">
|
|
308
|
+
<a name="api"></a>
|
|
309
|
+
|
|
310
|
+
<a name="api="></a>
|
|
311
|
+
|
|
312
|
+
<div class="method-heading attribute-method-heading">
|
|
313
|
+
<span class="method-name">api</span><span
|
|
314
|
+
class="attribute-access-type">[RW]</span>
|
|
315
|
+
</div>
|
|
316
|
+
|
|
317
|
+
<div class="method-description">
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
</div>
|
|
322
|
+
</div>
|
|
323
|
+
|
|
324
|
+
</div>
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
<!-- Methods -->
|
|
328
|
+
|
|
329
|
+
<div id="public-instance-method-details" class="method-section section">
|
|
330
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
<div id="cmd-clear-hosts-method" class="method-detail ">
|
|
334
|
+
<a name="method-i-cmd_clear_hosts"></a>
|
|
335
|
+
|
|
336
|
+
<div class="method-heading">
|
|
337
|
+
|
|
338
|
+
<span class="method-name">cmd_clear_hosts</span><span
|
|
339
|
+
class="method-args">(argv)</span>
|
|
340
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
341
|
+
|
|
342
|
+
</div>
|
|
343
|
+
|
|
344
|
+
<div class="method-description">
|
|
345
|
+
|
|
346
|
+
<p>
|
|
347
|
+
clears existing network configuration hosts
|
|
348
|
+
</p>
|
|
349
|
+
<pre>
|
|
350
|
+
* argv = command-line arguments </pre>
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
<div class="method-source-code"
|
|
355
|
+
id="cmd-clear-hosts-source">
|
|
356
|
+
<pre>
|
|
357
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 70</span>
|
|
358
|
+
70: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_clear_hosts</span> <span class="ruby-identifier">argv</span>
|
|
359
|
+
71: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
360
|
+
72: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">clear_hosts</span>
|
|
361
|
+
73: <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>)
|
|
362
|
+
74: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
363
|
+
75: <span class="ruby-keyword kw">end</span></pre>
|
|
364
|
+
</div>
|
|
365
|
+
|
|
366
|
+
</div>
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
</div>
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
<div id="cmd-clear-interface-method" class="method-detail ">
|
|
375
|
+
<a name="method-i-cmd_clear_interface"></a>
|
|
376
|
+
|
|
377
|
+
<div class="method-heading">
|
|
378
|
+
|
|
379
|
+
<span class="method-name">cmd_clear_interface</span><span
|
|
380
|
+
class="method-args">(argv)</span>
|
|
381
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
382
|
+
|
|
383
|
+
</div>
|
|
384
|
+
|
|
385
|
+
<div class="method-description">
|
|
386
|
+
|
|
387
|
+
<p>
|
|
388
|
+
clears existing network interfaces
|
|
389
|
+
</p>
|
|
390
|
+
<pre>
|
|
391
|
+
* argv = command-line arguments, require the names of the interfaces to clear (-i name)</pre>
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
<div class="method-source-code"
|
|
396
|
+
id="cmd-clear-interface-source">
|
|
397
|
+
<pre>
|
|
398
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 89</span>
|
|
399
|
+
89: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_clear_interface</span> <span class="ruby-identifier">argv</span>
|
|
400
|
+
90: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
401
|
+
91: <span class="ruby-identifier">interface</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'interfaces'</span>]
|
|
402
|
+
92: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">clear_interface</span>(<span class="ruby-identifier">interface</span>)
|
|
403
|
+
93: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
404
|
+
94: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
405
|
+
95: <span class="ruby-keyword kw">end</span></pre>
|
|
406
|
+
</div>
|
|
407
|
+
|
|
408
|
+
</div>
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
</div>
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
<div id="cmd-clear-routes-method" class="method-detail ">
|
|
417
|
+
<a name="method-i-cmd_clear_routes"></a>
|
|
418
|
+
|
|
419
|
+
<div class="method-heading">
|
|
420
|
+
|
|
421
|
+
<span class="method-name">cmd_clear_routes</span><span
|
|
422
|
+
class="method-args">(argv)</span>
|
|
423
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
424
|
+
|
|
425
|
+
</div>
|
|
426
|
+
|
|
427
|
+
<div class="method-description">
|
|
428
|
+
|
|
429
|
+
<p>
|
|
430
|
+
clears existing network routes
|
|
431
|
+
</p>
|
|
432
|
+
<pre>
|
|
433
|
+
* argv = command-line arguments </pre>
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
<div class="method-source-code"
|
|
438
|
+
id="cmd-clear-routes-source">
|
|
439
|
+
<pre>
|
|
440
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 108</span>
|
|
441
|
+
108: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_clear_routes</span> <span class="ruby-identifier">argv</span>
|
|
442
|
+
109: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
443
|
+
110: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">clear_routes</span>
|
|
444
|
+
111: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
445
|
+
112: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
446
|
+
113: <span class="ruby-keyword kw">end</span></pre>
|
|
447
|
+
</div>
|
|
448
|
+
|
|
449
|
+
</div>
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
</div>
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
<div id="cmd-clear-vlans-method" class="method-detail ">
|
|
458
|
+
<a name="method-i-cmd_clear_vlans"></a>
|
|
459
|
+
|
|
460
|
+
<div class="method-heading">
|
|
461
|
+
|
|
462
|
+
<span class="method-name">cmd_clear_vlans</span><span
|
|
463
|
+
class="method-args">(argv)</span>
|
|
464
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
465
|
+
|
|
466
|
+
</div>
|
|
467
|
+
|
|
468
|
+
<div class="method-description">
|
|
469
|
+
|
|
470
|
+
<p>
|
|
471
|
+
clears existing vlan configurations
|
|
472
|
+
</p>
|
|
473
|
+
<pre>
|
|
474
|
+
* argv = command-line arguments </pre>
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
<div class="method-source-code"
|
|
479
|
+
id="cmd-clear-vlans-source">
|
|
480
|
+
<pre>
|
|
481
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 99</span>
|
|
482
|
+
99: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_clear_vlans</span> <span class="ruby-identifier">argv</span>
|
|
483
|
+
100: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
484
|
+
101: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">clear_vlans</span>
|
|
485
|
+
102: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
486
|
+
103: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
487
|
+
104: <span class="ruby-keyword kw">end</span></pre>
|
|
488
|
+
</div>
|
|
489
|
+
|
|
490
|
+
</div>
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
</div>
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
<div id="cmd-create-method" class="method-detail ">
|
|
499
|
+
<a name="method-i-cmd_create"></a>
|
|
500
|
+
|
|
501
|
+
<div class="method-heading">
|
|
502
|
+
|
|
503
|
+
<span class="method-name">cmd_create</span><span
|
|
504
|
+
class="method-args">(argv)</span>
|
|
505
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
506
|
+
|
|
507
|
+
</div>
|
|
508
|
+
|
|
509
|
+
<div class="method-description">
|
|
510
|
+
|
|
511
|
+
<p>
|
|
512
|
+
creates a new network element
|
|
513
|
+
</p>
|
|
514
|
+
<pre>
|
|
515
|
+
* argv = command-line arguments, requires a json configuration (-j) and the element (-e) to modify, such as 'interfaces', 'hosts' or 'routes'</pre>
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
<div class="method-source-code"
|
|
520
|
+
id="cmd-create-source">
|
|
521
|
+
<pre>
|
|
522
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 38</span>
|
|
523
|
+
38: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_create</span> <span class="ruby-identifier">argv</span>
|
|
524
|
+
39: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
525
|
+
40: <span class="ruby-identifier">json</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'json'</span>]
|
|
526
|
+
41: <span class="ruby-identifier">e</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'element'</span>]
|
|
527
|
+
42: <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>)
|
|
528
|
+
43: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
529
|
+
44: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
530
|
+
45: <span class="ruby-keyword kw">end</span></pre>
|
|
531
|
+
</div>
|
|
532
|
+
|
|
533
|
+
</div>
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
</div>
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
<div id="cmd-delete-method" class="method-detail ">
|
|
542
|
+
<a name="method-i-cmd_delete"></a>
|
|
543
|
+
|
|
544
|
+
<div class="method-heading">
|
|
545
|
+
|
|
546
|
+
<span class="method-name">cmd_delete</span><span
|
|
547
|
+
class="method-args">(argv)</span>
|
|
548
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
549
|
+
|
|
550
|
+
</div>
|
|
551
|
+
|
|
552
|
+
<div class="method-description">
|
|
553
|
+
|
|
554
|
+
<p>
|
|
555
|
+
deletes an existing network element
|
|
556
|
+
</p>
|
|
557
|
+
<pre>
|
|
558
|
+
* argv = command-line arguments, requires a json configuration (-j) and the element (-e) to modify, such as 'interfaces', 'hosts' or 'routes' or 'interfaces/a1' or 'hosts/dell-9'</pre>
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
<div class="method-source-code"
|
|
563
|
+
id="cmd-delete-source">
|
|
564
|
+
<pre>
|
|
565
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 49</span>
|
|
566
|
+
49: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_delete</span> <span class="ruby-identifier">argv</span>
|
|
567
|
+
50: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
568
|
+
51: <span class="ruby-identifier">e</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'element'</span>]
|
|
569
|
+
52: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">e</span>)
|
|
570
|
+
53: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
571
|
+
54: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
572
|
+
55: <span class="ruby-keyword kw">end</span></pre>
|
|
573
|
+
</div>
|
|
574
|
+
|
|
575
|
+
</div>
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
</div>
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
<div id="cmd-get-method" class="method-detail ">
|
|
584
|
+
<a name="method-i-cmd_get"></a>
|
|
585
|
+
|
|
586
|
+
<div class="method-heading">
|
|
587
|
+
|
|
588
|
+
<span class="method-name">cmd_get</span><span
|
|
589
|
+
class="method-args">(argv)</span>
|
|
590
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
591
|
+
|
|
592
|
+
</div>
|
|
593
|
+
|
|
594
|
+
<div class="method-description">
|
|
595
|
+
|
|
596
|
+
<p>
|
|
597
|
+
returns a json representation of the specified element
|
|
598
|
+
</p>
|
|
599
|
+
<pre>
|
|
600
|
+
* argv = command-line arguments, requires an element (-e) argument, such as 'interfaces', 'hosts' or 'routes' or 'interfaces/a1' or 'hosts/dell-9'</pre>
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
<div class="method-source-code"
|
|
605
|
+
id="cmd-get-source">
|
|
606
|
+
<pre>
|
|
607
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 16</span>
|
|
608
|
+
16: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_get</span> <span class="ruby-identifier">argv</span>
|
|
609
|
+
17: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
610
|
+
18: <span class="ruby-identifier">e</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'element'</span>]
|
|
611
|
+
19: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">e</span>)
|
|
612
|
+
20: <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>)
|
|
613
|
+
21: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
614
|
+
22: <span class="ruby-keyword kw">end</span></pre>
|
|
615
|
+
</div>
|
|
616
|
+
|
|
617
|
+
</div>
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
</div>
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
<div id="cmd-help-method" class="method-detail ">
|
|
626
|
+
<a name="method-i-cmd_help"></a>
|
|
627
|
+
|
|
628
|
+
<div class="method-heading">
|
|
629
|
+
|
|
630
|
+
<span class="method-name">cmd_help</span><span
|
|
631
|
+
class="method-args">(argv)</span>
|
|
632
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
633
|
+
|
|
634
|
+
</div>
|
|
635
|
+
|
|
636
|
+
<div class="method-description">
|
|
637
|
+
|
|
638
|
+
<p>
|
|
639
|
+
displays command-line help
|
|
640
|
+
</p>
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
<div class="method-source-code"
|
|
645
|
+
id="cmd-help-source">
|
|
646
|
+
<pre>
|
|
647
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 10</span>
|
|
648
|
+
10: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_help</span> <span class="ruby-identifier">argv</span>
|
|
649
|
+
11: <span class="ruby-identifier">help</span>
|
|
650
|
+
12: <span class="ruby-keyword kw">end</span></pre>
|
|
651
|
+
</div>
|
|
652
|
+
|
|
653
|
+
</div>
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
</div>
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
<div id="cmd-modify-method" class="method-detail ">
|
|
662
|
+
<a name="method-i-cmd_modify"></a>
|
|
663
|
+
|
|
664
|
+
<div class="method-heading">
|
|
665
|
+
|
|
666
|
+
<span class="method-name">cmd_modify</span><span
|
|
667
|
+
class="method-args">(argv)</span>
|
|
668
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
669
|
+
|
|
670
|
+
</div>
|
|
671
|
+
|
|
672
|
+
<div class="method-description">
|
|
673
|
+
|
|
674
|
+
<p>
|
|
675
|
+
modifies a network element
|
|
676
|
+
</p>
|
|
677
|
+
<pre>
|
|
678
|
+
* argv = command-line arguments, requires a json configuration (-j) and the element (-e) to modify, such as 'interfaces', 'hosts' or 'routes' or 'interfaces/a1' or 'hosts/dell-9'</pre>
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
<div class="method-source-code"
|
|
683
|
+
id="cmd-modify-source">
|
|
684
|
+
<pre>
|
|
685
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 26</span>
|
|
686
|
+
26: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_modify</span> <span class="ruby-identifier">argv</span>
|
|
687
|
+
27: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
688
|
+
28: <span class="ruby-identifier">json</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'json'</span>]
|
|
689
|
+
29: <span class="ruby-identifier">e</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'element'</span>]
|
|
690
|
+
30: <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>)
|
|
691
|
+
31: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
692
|
+
32: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
693
|
+
33: <span class="ruby-keyword kw">end</span></pre>
|
|
694
|
+
</div>
|
|
695
|
+
|
|
696
|
+
</div>
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
</div>
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
<div id="cmd-resolve-hosts-method" class="method-detail ">
|
|
705
|
+
<a name="method-i-cmd_resolve_hosts"></a>
|
|
706
|
+
|
|
707
|
+
<div class="method-heading">
|
|
708
|
+
|
|
709
|
+
<span class="method-name">cmd_resolve_hosts</span><span
|
|
710
|
+
class="method-args">(argv)</span>
|
|
711
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
712
|
+
|
|
713
|
+
</div>
|
|
714
|
+
|
|
715
|
+
<div class="method-description">
|
|
716
|
+
|
|
717
|
+
<p>
|
|
718
|
+
resolves network configuration hosts
|
|
719
|
+
</p>
|
|
720
|
+
<pre>
|
|
721
|
+
* argv = command-line arguments, requires the name (-n) of the host to resolve (determines its ip address and adds it to the network configuration)</pre>
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
<div class="method-source-code"
|
|
726
|
+
id="cmd-resolve-hosts-source">
|
|
727
|
+
<pre>
|
|
728
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 79</span>
|
|
729
|
+
79: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_resolve_hosts</span> <span class="ruby-identifier">argv</span>
|
|
730
|
+
80: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
731
|
+
81: <span class="ruby-identifier">name</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'name'</span>]
|
|
732
|
+
82: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">resolve_hosts</span>(<span class="ruby-identifier">name</span>)
|
|
733
|
+
83: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
734
|
+
84: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
735
|
+
85: <span class="ruby-keyword kw">end</span></pre>
|
|
736
|
+
</div>
|
|
737
|
+
|
|
738
|
+
</div>
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
</div>
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
<div id="cmd-restore-method" class="method-detail ">
|
|
747
|
+
<a name="method-i-cmd_restore"></a>
|
|
748
|
+
|
|
749
|
+
<div class="method-heading">
|
|
750
|
+
|
|
751
|
+
<span class="method-name">cmd_restore</span><span
|
|
752
|
+
class="method-args">(argv)</span>
|
|
753
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
754
|
+
|
|
755
|
+
</div>
|
|
756
|
+
|
|
757
|
+
<div class="method-description">
|
|
758
|
+
|
|
759
|
+
<p>
|
|
760
|
+
restores the network configuration from a file
|
|
761
|
+
</p>
|
|
762
|
+
<pre>
|
|
763
|
+
* argv = command-line arguments, requires a path to a json configuration file (-f) , and a boolean (-b true|false) argument indicating whether or not existing elements should be cleared</pre>
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
<div class="method-source-code"
|
|
768
|
+
id="cmd-restore-source">
|
|
769
|
+
<pre>
|
|
770
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 59</span>
|
|
771
|
+
59: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_restore</span> <span class="ruby-identifier">argv</span>
|
|
772
|
+
60: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
773
|
+
61: <span class="ruby-identifier">filepath</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'filepath'</span>]
|
|
774
|
+
62: <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>])
|
|
775
|
+
63: <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>)
|
|
776
|
+
64: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
777
|
+
65: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
778
|
+
66: <span class="ruby-keyword kw">end</span></pre>
|
|
779
|
+
</div>
|
|
780
|
+
|
|
781
|
+
</div>
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
</div>
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
<div id="cmd-save-method" class="method-detail ">
|
|
790
|
+
<a name="method-i-cmd_save"></a>
|
|
791
|
+
|
|
792
|
+
<div class="method-heading">
|
|
793
|
+
|
|
794
|
+
<span class="method-name">cmd_save</span><span
|
|
795
|
+
class="method-args">(argv)</span>
|
|
796
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
797
|
+
|
|
798
|
+
</div>
|
|
799
|
+
|
|
800
|
+
<div class="method-description">
|
|
801
|
+
|
|
802
|
+
<p>
|
|
803
|
+
saves the network configuration to a file
|
|
804
|
+
</p>
|
|
805
|
+
<pre>
|
|
806
|
+
* argv = command-line arguments, requires the element (-e element, such as 'interfaces', or -e all) to save, and a file name (-f) to save the settings to</pre>
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
<div class="method-source-code"
|
|
811
|
+
id="cmd-save-source">
|
|
812
|
+
<pre>
|
|
813
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 118</span>
|
|
814
|
+
118: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_save</span> <span class="ruby-identifier">argv</span>
|
|
815
|
+
119: <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
816
|
+
120: <span class="ruby-identifier">e</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'elements'</span>]
|
|
817
|
+
121: <span class="ruby-identifier">filepath</span> = <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'filepath'</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">"config.json"</span>
|
|
818
|
+
122: <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@api</span>.<span class="ruby-identifier">save</span>(<span class="ruby-identifier">e</span>, <span class="ruby-identifier">filepath</span>)
|
|
819
|
+
123: <span class="ruby-identifier">msg</span> <span class="ruby-identifier">response</span>
|
|
820
|
+
124: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">response</span>
|
|
821
|
+
125: <span class="ruby-keyword kw">end</span></pre>
|
|
822
|
+
</div>
|
|
823
|
+
|
|
824
|
+
</div>
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
|
|
829
|
+
</div>
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
</div>
|
|
833
|
+
|
|
834
|
+
<div id="private-instance-method-details" class="method-section section">
|
|
835
|
+
<h3 class="section-header">Private Instance Methods</h3>
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
<div id="help-method" class="method-detail ">
|
|
839
|
+
<a name="method-i-help"></a>
|
|
840
|
+
|
|
841
|
+
<div class="method-heading">
|
|
842
|
+
|
|
843
|
+
<span class="method-name">help</span><span
|
|
844
|
+
class="method-args">()</span>
|
|
845
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
846
|
+
|
|
847
|
+
</div>
|
|
848
|
+
|
|
849
|
+
<div class="method-description">
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
<div class="method-source-code"
|
|
856
|
+
id="help-source">
|
|
857
|
+
<pre>
|
|
858
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 212</span>
|
|
859
|
+
212: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">help</span>
|
|
860
|
+
213: <span class="ruby-identifier">helps</span> = [
|
|
861
|
+
214: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-b'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--boolean'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'boolean arg'</span> },
|
|
862
|
+
215: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-e'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--element'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'http string'</span> },
|
|
863
|
+
216: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-f'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--filepath'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'filepath'</span> },
|
|
864
|
+
217: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-h'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--help'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">''</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'help on command line options'</span> },
|
|
865
|
+
218: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-i'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--interfaces'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'interfaces/hosts'</span> },
|
|
866
|
+
219: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-j'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--json'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'json object'</span> },
|
|
867
|
+
220: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-m'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--mu_string'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'user, password, mu_ip in the form of admin:admin@10.9.8.7'</span> },
|
|
868
|
+
221: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-n'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--name'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'host name'</span> },
|
|
869
|
+
222: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-o'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--output'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'<string>'</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'output logging to this file'</span> },
|
|
870
|
+
223: { <span class="ruby-value">:short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'-v'</span>, <span class="ruby-value">:long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'--verbose'</span>, <span class="ruby-value">:value</span> =<span class="ruby-operator">></span> <span class="ruby-value str">''</span>, <span class="ruby-value">:help</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'set Logger::DEBUG level'</span> }
|
|
871
|
+
224: ]
|
|
872
|
+
225:
|
|
873
|
+
226: <span class="ruby-identifier">cmds</span> = [
|
|
874
|
+
227: <span class="ruby-value str">"mu cmd_netconfig:clear_hosts"</span>,
|
|
875
|
+
228: <span class="ruby-value str">"mu cmd_netconfig:clear_interfaces -i <interfaces>"</span>,
|
|
876
|
+
229: <span class="ruby-value str">"mu cmd_netconfig:clear_routes"</span>,
|
|
877
|
+
230: <span class="ruby-value str">"mu cmd_netconfig:clear_vlans"</span>,
|
|
878
|
+
231: <span class="ruby-value str">"mu cmd_netconfig:create -j <json> -e <element>"</span>,
|
|
879
|
+
232: <span class="ruby-value str">"mu cmd_netconfig:delete -e <element>"</span>,
|
|
880
|
+
233: <span class="ruby-value str">"mu cmd_netconfig:get -e <element>"</span>,
|
|
881
|
+
234: <span class="ruby-value str">"mu cmd_netconfig:help"</span>,
|
|
882
|
+
235: <span class="ruby-value str">"mu cmd_netconfig:modify -j <json> -e <element>"</span>,
|
|
883
|
+
236: <span class="ruby-value str">"mu cmd_netconfig:resolve_hosts -n <name>"</span>,
|
|
884
|
+
237: <span class="ruby-value str">"mu cmd_netconfig:restore -f <filepath> [-b <clear_existing>]"</span>,
|
|
885
|
+
238: <span class="ruby-value str">"mu cmd_netconfig:save -e <element> -f <filepath>"</span>,
|
|
886
|
+
239: ]
|
|
887
|
+
240:
|
|
888
|
+
241: <span class="ruby-identifier">max_long_size</span> = <span class="ruby-identifier">helps</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-value">0</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">memo</span>, <span class="ruby-identifier">obj</span><span class="ruby-operator">|</span> [ <span class="ruby-identifier">obj</span>[<span class="ruby-value">:long</span>].<span class="ruby-identifier">size</span>, <span class="ruby-identifier">memo</span> ].<span class="ruby-identifier">max</span> }
|
|
889
|
+
242: <span class="ruby-identifier">max_value_size</span> = <span class="ruby-identifier">helps</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-value">0</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">memo</span>, <span class="ruby-identifier">obj</span><span class="ruby-operator">|</span> [ <span class="ruby-identifier">obj</span>[<span class="ruby-value">:value</span>].<span class="ruby-identifier">size</span>, <span class="ruby-identifier">memo</span> ].<span class="ruby-identifier">max</span> }
|
|
890
|
+
243: <span class="ruby-identifier">puts</span>
|
|
891
|
+
244: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Usage: mu cmd_netconfig <options>"</span>
|
|
892
|
+
245: <span class="ruby-identifier">puts</span>
|
|
893
|
+
246: <span class="ruby-identifier">helps</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">h</span><span class="ruby-operator">|</span>
|
|
894
|
+
247: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"%-*s %*s %-*s %s"</span> <span class="ruby-operator">%</span> [<span class="ruby-identifier">max_long_size</span>, <span class="ruby-identifier">h</span>[<span class="ruby-value">:long</span>], <span class="ruby-value">2</span>, <span class="ruby-identifier">h</span>[<span class="ruby-value">:short</span>], <span class="ruby-identifier">max_value_size</span>, <span class="ruby-identifier">h</span>[<span class="ruby-value">:value</span>], <span class="ruby-identifier">h</span>[<span class="ruby-value">:help</span>]]
|
|
895
|
+
248: <span class="ruby-keyword kw">end</span>
|
|
896
|
+
249: <span class="ruby-identifier">puts</span>
|
|
897
|
+
250: <span class="ruby-identifier">puts</span> <span class="ruby-value str">"Available Commands"</span>
|
|
898
|
+
251: <span class="ruby-identifier">puts</span>
|
|
899
|
+
252: <span class="ruby-identifier">cmds</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span> <span class="ruby-identifier">c</span> <span class="ruby-operator">|</span>
|
|
900
|
+
253: <span class="ruby-identifier">puts</span> <span class="ruby-identifier">c</span>
|
|
901
|
+
254: <span class="ruby-keyword kw">end</span>
|
|
902
|
+
255: <span class="ruby-identifier">puts</span>
|
|
903
|
+
256: <span class="ruby-keyword kw">end</span></pre>
|
|
904
|
+
</div>
|
|
905
|
+
|
|
906
|
+
</div>
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
</div>
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
<div id="parse-cli-method" class="method-detail ">
|
|
915
|
+
<a name="method-i-parse_cli"></a>
|
|
916
|
+
|
|
917
|
+
<div class="method-heading">
|
|
918
|
+
|
|
919
|
+
<span class="method-name">parse_cli</span><span
|
|
920
|
+
class="method-args">(argv)</span>
|
|
921
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
922
|
+
|
|
923
|
+
</div>
|
|
924
|
+
|
|
925
|
+
<div class="method-description">
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
<div class="method-source-code"
|
|
932
|
+
id="parse-cli-source">
|
|
933
|
+
<pre>
|
|
934
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 140</span>
|
|
935
|
+
140: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_cli</span> <span class="ruby-identifier">argv</span>
|
|
936
|
+
141: <span class="ruby-identifier">args</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
|
937
|
+
142: <span class="ruby-ivar">@hash</span> = {}
|
|
938
|
+
143: <span class="ruby-keyword kw">while</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">empty?</span>
|
|
939
|
+
144: <span class="ruby-identifier">args</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">shift</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">first</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>] <span class="ruby-operator">!=</span> <span class="ruby-value str">'-'</span>
|
|
940
|
+
145:
|
|
941
|
+
146: <span class="ruby-identifier">k</span> = <span class="ruby-identifier">argv</span>.<span class="ruby-identifier">shift</span>
|
|
942
|
+
147:
|
|
943
|
+
148: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-b'</span>, <span class="ruby-value str">'--boolean'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
944
|
+
149: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'boolean'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
945
|
+
150: <span class="ruby-keyword kw">next</span>
|
|
946
|
+
151: <span class="ruby-keyword kw">end</span>
|
|
947
|
+
152:
|
|
948
|
+
153: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-e'</span>, <span class="ruby-value str">'--element'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
949
|
+
154: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'element'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
950
|
+
155: <span class="ruby-keyword kw">next</span>
|
|
951
|
+
156: <span class="ruby-keyword kw">end</span>
|
|
952
|
+
157:
|
|
953
|
+
158: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-f'</span>, <span class="ruby-value str">'--filepath'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
954
|
+
159: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'filepath'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
955
|
+
160: <span class="ruby-keyword kw">next</span>
|
|
956
|
+
161: <span class="ruby-keyword kw">end</span>
|
|
957
|
+
162:
|
|
958
|
+
163: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-h'</span>, <span class="ruby-value str">'--help'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
959
|
+
164: <span class="ruby-identifier">help</span>
|
|
960
|
+
165: <span class="ruby-identifier">exit</span>
|
|
961
|
+
166: <span class="ruby-keyword kw">end</span>
|
|
962
|
+
167:
|
|
963
|
+
168: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-i'</span>, <span class="ruby-value str">'--interfaces'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
964
|
+
169: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'interfaces'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
965
|
+
170: <span class="ruby-keyword kw">next</span>
|
|
966
|
+
171: <span class="ruby-keyword kw">end</span>
|
|
967
|
+
172:
|
|
968
|
+
173: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-j'</span>, <span class="ruby-value str">'--json'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
969
|
+
174: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'json'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
970
|
+
175: <span class="ruby-keyword kw">next</span>
|
|
971
|
+
176: <span class="ruby-keyword kw">end</span>
|
|
972
|
+
177:
|
|
973
|
+
178: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-m'</span>, <span class="ruby-value str">'--mu_string'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
974
|
+
179: <span class="ruby-identifier">mu_string</span> = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
975
|
+
180: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">mu_string</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/(.+?):(.+?)@(.*)/</span>
|
|
976
|
+
181: <span class="ruby-identifier">@@mu_admin_user</span> = <span class="ruby-node">$1</span>
|
|
977
|
+
182: <span class="ruby-identifier">@@mu_admin_pass</span> = <span class="ruby-node">$2</span>
|
|
978
|
+
183: <span class="ruby-identifier">@@mu_ip</span> = <span class="ruby-node">$3</span>
|
|
979
|
+
184: <span class="ruby-keyword kw">end</span>
|
|
980
|
+
185: <span class="ruby-keyword kw">next</span>
|
|
981
|
+
186: <span class="ruby-keyword kw">end</span>
|
|
982
|
+
187:
|
|
983
|
+
188: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-n'</span>, <span class="ruby-value str">'--name'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
984
|
+
189: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'name'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
985
|
+
190: <span class="ruby-keyword kw">next</span>
|
|
986
|
+
191: <span class="ruby-keyword kw">end</span>
|
|
987
|
+
192:
|
|
988
|
+
193: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-o'</span>, <span class="ruby-value str">'--output'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
989
|
+
194: <span class="ruby-identifier">$stdout</span>.<span class="ruby-identifier">reopen</span>(<span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>), <span class="ruby-value str">"w"</span>)
|
|
990
|
+
195: <span class="ruby-keyword kw">next</span>
|
|
991
|
+
196: <span class="ruby-keyword kw">end</span>
|
|
992
|
+
197:
|
|
993
|
+
198: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-r'</span>, <span class="ruby-value str">'--routes'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
994
|
+
199: <span class="ruby-ivar">@hash</span>[<span class="ruby-value str">'routes'</span>] = <span class="ruby-identifier">shift</span>(<span class="ruby-identifier">k</span>, <span class="ruby-identifier">argv</span>)
|
|
995
|
+
200: <span class="ruby-keyword kw">next</span>
|
|
996
|
+
201: <span class="ruby-keyword kw">end</span>
|
|
997
|
+
202:
|
|
998
|
+
203: <span class="ruby-keyword kw">if</span> [ <span class="ruby-value str">'-v'</span>, <span class="ruby-value str">'--verbose'</span> ].<span class="ruby-identifier">member?</span> <span class="ruby-identifier">k</span>
|
|
999
|
+
204: <span class="ruby-identifier">$log</span>.<span class="ruby-identifier">level</span> = <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
1000
|
+
205: <span class="ruby-keyword kw">next</span>
|
|
1001
|
+
206: <span class="ruby-keyword kw">end</span>
|
|
1002
|
+
207: <span class="ruby-keyword kw">end</span>
|
|
1003
|
+
208:
|
|
1004
|
+
209: <span class="ruby-identifier">args</span>
|
|
1005
|
+
210: <span class="ruby-keyword kw">end</span></pre>
|
|
1006
|
+
</div>
|
|
1007
|
+
|
|
1008
|
+
</div>
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
</div>
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
<div id="setup-method" class="method-detail ">
|
|
1017
|
+
<a name="method-i-setup"></a>
|
|
1018
|
+
|
|
1019
|
+
<div class="method-heading">
|
|
1020
|
+
|
|
1021
|
+
<span class="method-name">setup</span><span
|
|
1022
|
+
class="method-args">(argv)</span>
|
|
1023
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
1024
|
+
|
|
1025
|
+
</div>
|
|
1026
|
+
|
|
1027
|
+
<div class="method-description">
|
|
1028
|
+
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
<div class="method-source-code"
|
|
1034
|
+
id="setup-source">
|
|
1035
|
+
<pre>
|
|
1036
|
+
<span class="ruby-comment cmt"># File lib/mu/command/cmd_netconfig.rb, line 129</span>
|
|
1037
|
+
129: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> <span class="ruby-identifier">argv</span>
|
|
1038
|
+
130: <span class="ruby-identifier">parse_cli</span> <span class="ruby-identifier">argv</span>
|
|
1039
|
+
131: <span class="ruby-ivar">@host</span> = (<span class="ruby-identifier">@@mu_ip</span>.<span class="ruby-identifier">nil?</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">"127.0.0.1"</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">@@mu_ip</span>
|
|
1040
|
+
132: <span class="ruby-ivar">@username</span> = (<span class="ruby-identifier">@@mu_admin_user</span>.<span class="ruby-identifier">nil?</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">"admin"</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">@@mu_admin_user</span>
|
|
1041
|
+
133: <span class="ruby-ivar">@password</span> = (<span class="ruby-identifier">@@mu_admin_pass</span>.<span class="ruby-identifier">nil?</span>) <span class="ruby-operator">?</span> <span class="ruby-value str">"admin"</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">@@mu_admin_pass</span>
|
|
1042
|
+
134: <span class="ruby-ivar">@response</span> = <span class="ruby-keyword kw">nil</span>
|
|
1043
|
+
135: <span class="ruby-ivar">@element</span> = <span class="ruby-value str">""</span> <span class="ruby-comment cmt"># sticky variable will hold a default element, the last element specified</span>
|
|
1044
|
+
136: <span class="ruby-ivar">@api</span> = <span class="ruby-constant">Netconfig</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@host</span>, <span class="ruby-ivar">@username</span>, <span class="ruby-ivar">@password</span>)
|
|
1045
|
+
137: <span class="ruby-identifier">msg</span> <span class="ruby-node">"Created Netconfig API object to :#{@host}"</span>, <span class="ruby-constant">Logger</span><span class="ruby-operator">::</span><span class="ruby-constant">DEBUG</span>
|
|
1046
|
+
138: <span class="ruby-keyword kw">end</span></pre>
|
|
1047
|
+
</div>
|
|
1048
|
+
|
|
1049
|
+
</div>
|
|
1050
|
+
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
</div>
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
</div>
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
</div>
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
|
1064
|
+
|
|
1065
|
+
<p>Disabled; run with --debug to generate this.</p>
|
|
1066
|
+
|
|
1067
|
+
</div>
|
|
1068
|
+
|
|
1069
|
+
<div id="validator-badges">
|
|
1070
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
1071
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
|
1072
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
|
1073
|
+
</div>
|
|
1074
|
+
|
|
1075
|
+
</body>
|
|
1076
|
+
</html>
|
|
1077
|
+
|