ohai 8.10.0 → 8.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -2
  3. data/Rakefile +13 -4
  4. data/bin/ohai +3 -4
  5. data/lib/ohai.rb +4 -4
  6. data/lib/ohai/application.rb +7 -6
  7. data/lib/ohai/common/dmi.rb +56 -56
  8. data/lib/ohai/config.rb +12 -8
  9. data/lib/ohai/dsl.rb +3 -3
  10. data/lib/ohai/dsl/plugin.rb +5 -5
  11. data/lib/ohai/dsl/plugin/versionvi.rb +0 -1
  12. data/lib/ohai/dsl/plugin/versionvii.rb +1 -0
  13. data/lib/ohai/hints.rb +1 -1
  14. data/lib/ohai/loader.rb +7 -7
  15. data/lib/ohai/log.rb +1 -1
  16. data/lib/ohai/mash.rb +3 -2
  17. data/lib/ohai/mixin/command.rb +25 -23
  18. data/lib/ohai/mixin/dmi_decode.rb +10 -10
  19. data/lib/ohai/mixin/ec2_metadata.rb +40 -39
  20. data/lib/ohai/mixin/gce_metadata.rb +9 -9
  21. data/lib/ohai/mixin/network_constants.rb +1 -1
  22. data/lib/ohai/mixin/os.rb +3 -3
  23. data/lib/ohai/mixin/seconds_to_human.rb +0 -2
  24. data/lib/ohai/mixin/softlayer_metadata.rb +10 -10
  25. data/lib/ohai/mixin/string.rb +2 -2
  26. data/lib/ohai/plugin_config.rb +1 -1
  27. data/lib/ohai/plugins/aix/cpu.rb +2 -2
  28. data/lib/ohai/plugins/aix/filesystem.rb +2 -2
  29. data/lib/ohai/plugins/aix/memory.rb +2 -2
  30. data/lib/ohai/plugins/aix/network.rb +9 -10
  31. data/lib/ohai/plugins/aix/os.rb +2 -2
  32. data/lib/ohai/plugins/aix/uptime.rb +3 -3
  33. data/lib/ohai/plugins/aix/virtualization.rb +23 -23
  34. data/lib/ohai/plugins/azure.rb +32 -5
  35. data/lib/ohai/plugins/bsd/virtualization.rb +22 -22
  36. data/lib/ohai/plugins/c.rb +3 -3
  37. data/lib/ohai/plugins/chef.rb +1 -1
  38. data/lib/ohai/plugins/cloud.rb +59 -60
  39. data/lib/ohai/plugins/cloud_v2.rb +37 -39
  40. data/lib/ohai/plugins/darwin/cpu.rb +1 -1
  41. data/lib/ohai/plugins/darwin/filesystem2.rb +5 -5
  42. data/lib/ohai/plugins/darwin/memory.rb +5 -6
  43. data/lib/ohai/plugins/darwin/network.rb +7 -7
  44. data/lib/ohai/plugins/darwin/system_profiler.rb +32 -33
  45. data/lib/ohai/plugins/darwin/virtualization.rb +9 -9
  46. data/lib/ohai/plugins/digital_ocean.rb +16 -16
  47. data/lib/ohai/plugins/dmi.rb +6 -6
  48. data/lib/ohai/plugins/dragonflybsd/cpu.rb +2 -2
  49. data/lib/ohai/plugins/dragonflybsd/memory.rb +0 -1
  50. data/lib/ohai/plugins/dragonflybsd/network.rb +4 -4
  51. data/lib/ohai/plugins/dragonflybsd/os.rb +1 -1
  52. data/lib/ohai/plugins/ec2.rb +39 -15
  53. data/lib/ohai/plugins/elixir.rb +1 -1
  54. data/lib/ohai/plugins/erlang.rb +3 -3
  55. data/lib/ohai/plugins/eucalyptus.rb +16 -12
  56. data/lib/ohai/plugins/freebsd/cpu.rb +2 -2
  57. data/lib/ohai/plugins/freebsd/memory.rb +0 -1
  58. data/lib/ohai/plugins/freebsd/network.rb +4 -4
  59. data/lib/ohai/plugins/freebsd/os.rb +1 -1
  60. data/lib/ohai/plugins/gce.rb +6 -6
  61. data/lib/ohai/plugins/hostname.rb +7 -7
  62. data/lib/ohai/plugins/init_package.rb +1 -1
  63. data/lib/ohai/plugins/ip_scopes.rb +9 -9
  64. data/lib/ohai/plugins/java.rb +1 -1
  65. data/lib/ohai/plugins/joyent.rb +7 -7
  66. data/lib/ohai/plugins/kernel.rb +8 -8
  67. data/lib/ohai/plugins/linode.rb +7 -4
  68. data/lib/ohai/plugins/linux/cpu.rb +5 -5
  69. data/lib/ohai/plugins/linux/filesystem.rb +16 -16
  70. data/lib/ohai/plugins/linux/filesystem2.rb +15 -15
  71. data/lib/ohai/plugins/linux/mdadm.rb +3 -3
  72. data/lib/ohai/plugins/linux/network.rb +85 -51
  73. data/lib/ohai/plugins/linux/platform.rb +24 -24
  74. data/lib/ohai/plugins/linux/virtualization.rb +8 -8
  75. data/lib/ohai/plugins/mono.rb +1 -1
  76. data/lib/ohai/plugins/netbsd/cpu.rb +1 -1
  77. data/lib/ohai/plugins/netbsd/network.rb +2 -2
  78. data/lib/ohai/plugins/network.rb +11 -11
  79. data/lib/ohai/plugins/network_listeners.rb +30 -26
  80. data/lib/ohai/plugins/ohai.rb +3 -3
  81. data/lib/ohai/plugins/openbsd/cpu.rb +4 -4
  82. data/lib/ohai/plugins/openbsd/memory.rb +4 -4
  83. data/lib/ohai/plugins/openbsd/network.rb +3 -3
  84. data/lib/ohai/plugins/openstack.rb +12 -12
  85. data/lib/ohai/plugins/os.rb +2 -2
  86. data/lib/ohai/plugins/packages.rb +22 -22
  87. data/lib/ohai/plugins/passwd.rb +4 -4
  88. data/lib/ohai/plugins/powershell.rb +9 -9
  89. data/lib/ohai/plugins/ps.rb +2 -2
  90. data/lib/ohai/plugins/python.rb +1 -1
  91. data/lib/ohai/plugins/rackspace.rb +13 -13
  92. data/lib/ohai/plugins/root_group.rb +4 -4
  93. data/lib/ohai/plugins/ruby.rb +6 -6
  94. data/lib/ohai/plugins/rust.rb +1 -1
  95. data/lib/ohai/plugins/sigar/cpu.rb +1 -1
  96. data/lib/ohai/plugins/sigar/filesystem.rb +1 -1
  97. data/lib/ohai/plugins/sigar/network.rb +13 -13
  98. data/lib/ohai/plugins/sigar/network_route.rb +34 -29
  99. data/lib/ohai/plugins/softlayer.rb +8 -7
  100. data/lib/ohai/plugins/solaris2/cpu.rb +19 -19
  101. data/lib/ohai/plugins/solaris2/dmi.rb +63 -63
  102. data/lib/ohai/plugins/solaris2/filesystem.rb +13 -13
  103. data/lib/ohai/plugins/solaris2/memory.rb +2 -2
  104. data/lib/ohai/plugins/solaris2/network.rb +5 -5
  105. data/lib/ohai/plugins/solaris2/virtualization.rb +18 -18
  106. data/lib/ohai/plugins/solaris2/zpools.rb +1 -1
  107. data/lib/ohai/plugins/ssh_host_key.rb +2 -2
  108. data/lib/ohai/plugins/uptime.rb +4 -5
  109. data/lib/ohai/plugins/virtualbox.rb +2 -2
  110. data/lib/ohai/plugins/virtualization.rb +17 -17
  111. data/lib/ohai/plugins/vmware.rb +2 -2
  112. data/lib/ohai/plugins/windows/cpu.rb +14 -14
  113. data/lib/ohai/plugins/windows/drivers.rb +8 -8
  114. data/lib/ohai/plugins/windows/filesystem.rb +4 -4
  115. data/lib/ohai/plugins/windows/memory.rb +1 -1
  116. data/lib/ohai/plugins/windows/network.rb +10 -10
  117. data/lib/ohai/plugins/windows/platform.rb +1 -2
  118. data/lib/ohai/plugins/windows/virtualization.rb +17 -17
  119. data/lib/ohai/provides_map.rb +7 -7
  120. data/lib/ohai/runner.rb +3 -3
  121. data/lib/ohai/system.rb +21 -20
  122. data/lib/ohai/util/file_helper.rb +1 -2
  123. data/lib/ohai/util/ip_helper.rb +4 -4
  124. data/lib/ohai/util/win32.rb +5 -5
  125. data/lib/ohai/util/win32/group_helper.rb +4 -5
  126. data/lib/ohai/version.rb +1 -1
  127. data/ohai.gemspec +7 -5
  128. data/spec/functional/application_spec.rb +23 -23
  129. data/spec/functional/loader_spec.rb +1 -1
  130. data/spec/functional/plugins/powershell_spec.rb +13 -13
  131. data/spec/functional/plugins/root_group_spec.rb +5 -5
  132. data/spec/ohai_spec.rb +1 -1
  133. data/spec/spec_helper.rb +9 -9
  134. data/spec/support/integration_helper.rb +7 -7
  135. data/spec/support/platform_helpers.rb +1 -1
  136. data/spec/unit/application_spec.rb +17 -17
  137. data/spec/unit/config_spec.rb +2 -2
  138. data/spec/unit/dsl/plugin_spec.rb +28 -28
  139. data/spec/unit/hints_spec.rb +3 -3
  140. data/spec/unit/loader_spec.rb +9 -9
  141. data/spec/unit/mixin/command_spec.rb +5 -5
  142. data/spec/unit/mixin/ec2_metadata_spec.rb +6 -6
  143. data/spec/unit/mixin/softlayer_metadata_spec.rb +19 -23
  144. data/spec/unit/plugin_config_spec.rb +5 -5
  145. data/spec/unit/plugins/abort_spec.rb +3 -3
  146. data/spec/unit/plugins/aix/cpu_spec.rb +1 -1
  147. data/spec/unit/plugins/aix/filesystem_spec.rb +25 -25
  148. data/spec/unit/plugins/aix/hostname_spec.rb +1 -2
  149. data/spec/unit/plugins/aix/kernel_spec.rb +3 -3
  150. data/spec/unit/plugins/aix/memory_spec.rb +8 -8
  151. data/spec/unit/plugins/aix/network_spec.rb +38 -38
  152. data/spec/unit/plugins/aix/os_spec.rb +1 -2
  153. data/spec/unit/plugins/aix/platform_spec.rb +1 -1
  154. data/spec/unit/plugins/aix/uptime_spec.rb +1 -1
  155. data/spec/unit/plugins/aix/virtualization_spec.rb +11 -11
  156. data/spec/unit/plugins/azure_spec.rb +118 -20
  157. data/spec/unit/plugins/bsd/filesystem_spec.rb +1 -1
  158. data/spec/unit/plugins/bsd/virtualization_spec.rb +4 -4
  159. data/spec/unit/plugins/c_spec.rb +12 -12
  160. data/spec/unit/plugins/chef_spec.rb +2 -2
  161. data/spec/unit/plugins/cloud_spec.rb +37 -37
  162. data/spec/unit/plugins/cloud_v2_spec.rb +64 -65
  163. data/spec/unit/plugins/darwin/cpu_spec.rb +1 -2
  164. data/spec/unit/plugins/darwin/filesystem2_spec.rb +7 -7
  165. data/spec/unit/plugins/darwin/filesystem_spec.rb +5 -5
  166. data/spec/unit/plugins/darwin/hostname_spec.rb +1 -4
  167. data/spec/unit/plugins/darwin/kernel_spec.rb +6 -10
  168. data/spec/unit/plugins/darwin/memory_spec.rb +5 -5
  169. data/spec/unit/plugins/darwin/network_spec.rb +352 -353
  170. data/spec/unit/plugins/darwin/platform_spec.rb +1 -2
  171. data/spec/unit/plugins/darwin/system_profiler_spec.rb +3 -3
  172. data/spec/unit/plugins/darwin/virtualization_spec.rb +6 -6
  173. data/spec/unit/plugins/digital_ocean_spec.rb +38 -37
  174. data/spec/unit/plugins/dmi_spec.rb +3 -3
  175. data/spec/unit/plugins/ec2_spec.rb +97 -88
  176. data/spec/unit/plugins/elixir_spec.rb +1 -2
  177. data/spec/unit/plugins/erlang_spec.rb +2 -2
  178. data/spec/unit/plugins/eucalyptus_spec.rb +19 -19
  179. data/spec/unit/plugins/fail_spec.rb +2 -2
  180. data/spec/unit/plugins/freebsd/cpu_spec.rb +14 -14
  181. data/spec/unit/plugins/freebsd/hostname_spec.rb +1 -2
  182. data/spec/unit/plugins/freebsd/kernel_spec.rb +2 -3
  183. data/spec/unit/plugins/freebsd/os_spec.rb +4 -5
  184. data/spec/unit/plugins/freebsd/platform_spec.rb +1 -2
  185. data/spec/unit/plugins/gce_spec.rb +9 -9
  186. data/spec/unit/plugins/go_spec.rb +1 -1
  187. data/spec/unit/plugins/groovy_spec.rb +1 -2
  188. data/spec/unit/plugins/hostname_spec.rb +1 -2
  189. data/spec/unit/plugins/init_package_spec.rb +1 -1
  190. data/spec/unit/plugins/ip_scopes_spec.rb +38 -38
  191. data/spec/unit/plugins/java_spec.rb +52 -1
  192. data/spec/unit/plugins/joyent_spec.rb +9 -11
  193. data/spec/unit/plugins/kernel_spec.rb +11 -12
  194. data/spec/unit/plugins/linode_spec.rb +29 -29
  195. data/spec/unit/plugins/linux/block_device_spec.rb +21 -21
  196. data/spec/unit/plugins/linux/cpu_spec.rb +3 -3
  197. data/spec/unit/plugins/linux/filesystem2_spec.rb +7 -7
  198. data/spec/unit/plugins/linux/filesystem_spec.rb +85 -86
  199. data/spec/unit/plugins/linux/hostname_spec.rb +1 -3
  200. data/spec/unit/plugins/linux/kernel_spec.rb +1 -1
  201. data/spec/unit/plugins/linux/lsb_spec.rb +1 -2
  202. data/spec/unit/plugins/linux/mdadm_spec.rb +4 -4
  203. data/spec/unit/plugins/linux/memory_spec.rb +29 -33
  204. data/spec/unit/plugins/linux/network_spec.rb +463 -245
  205. data/spec/unit/plugins/linux/platform_spec.rb +64 -65
  206. data/spec/unit/plugins/linux/uptime_spec.rb +1 -2
  207. data/spec/unit/plugins/linux/virtualization_spec.rb +42 -42
  208. data/spec/unit/plugins/lua_spec.rb +1 -2
  209. data/spec/unit/plugins/mono_spec.rb +1 -2
  210. data/spec/unit/plugins/netbsd/hostname_spec.rb +1 -2
  211. data/spec/unit/plugins/netbsd/kernel_spec.rb +1 -2
  212. data/spec/unit/plugins/netbsd/platform_spec.rb +1 -1
  213. data/spec/unit/plugins/network_spec.rb +118 -118
  214. data/spec/unit/plugins/nodejs_spec.rb +1 -1
  215. data/spec/unit/plugins/ohai_spec.rb +1 -1
  216. data/spec/unit/plugins/ohai_time_spec.rb +1 -2
  217. data/spec/unit/plugins/openbsd/hostname_spec.rb +1 -2
  218. data/spec/unit/plugins/openbsd/kernel_spec.rb +1 -2
  219. data/spec/unit/plugins/openbsd/platform_spec.rb +1 -2
  220. data/spec/unit/plugins/openstack_spec.rb +35 -37
  221. data/spec/unit/plugins/os_spec.rb +7 -8
  222. data/spec/unit/plugins/packages_spec.rb +118 -118
  223. data/spec/unit/plugins/passwd_spec.rb +18 -18
  224. data/spec/unit/plugins/perl_spec.rb +1 -1
  225. data/spec/unit/plugins/php_spec.rb +4 -4
  226. data/spec/unit/plugins/platform_spec.rb +8 -9
  227. data/spec/unit/plugins/powershell_spec.rb +3 -3
  228. data/spec/unit/plugins/python_spec.rb +1 -1
  229. data/spec/unit/plugins/rackspace_spec.rb +66 -68
  230. data/spec/unit/plugins/root_group_spec.rb +26 -26
  231. data/spec/unit/plugins/ruby_spec.rb +14 -15
  232. data/spec/unit/plugins/rust_spec.rb +2 -2
  233. data/spec/unit/plugins/sigar/network_route_spec.rb +36 -36
  234. data/spec/unit/plugins/softlayer_spec.rb +10 -10
  235. data/spec/unit/plugins/solaris2/cpu_spec.rb +20 -21
  236. data/spec/unit/plugins/solaris2/dmi_spec.rb +5 -6
  237. data/spec/unit/plugins/solaris2/filesystem.rb +5 -5
  238. data/spec/unit/plugins/solaris2/hostname_spec.rb +1 -1
  239. data/spec/unit/plugins/solaris2/kernel_spec.rb +3 -3
  240. data/spec/unit/plugins/solaris2/memory_spec.rb +5 -5
  241. data/spec/unit/plugins/solaris2/network_spec.rb +7 -8
  242. data/spec/unit/plugins/solaris2/platform_spec.rb +1 -1
  243. data/spec/unit/plugins/solaris2/virtualization_spec.rb +3 -5
  244. data/spec/unit/plugins/solaris2/zpools_spec.rb +6 -6
  245. data/spec/unit/plugins/ssh_host_keys_spec.rb +1 -1
  246. data/spec/unit/plugins/virtualbox_spec.rb +19 -19
  247. data/spec/unit/plugins/vmware_spec.rb +28 -28
  248. data/spec/unit/plugins/windows/cpu_spec.rb +46 -48
  249. data/spec/unit/plugins/windows/memory_spec.rb +5 -5
  250. data/spec/unit/plugins/windows/virtualization_spec.rb +163 -163
  251. data/spec/unit/provides_map_spec.rb +10 -10
  252. data/spec/unit/runner_spec.rb +10 -10
  253. data/spec/unit/system_spec.rb +19 -19
  254. data/spec/unit/util/file_helper_spec.rb +5 -6
  255. data/spec/unit/util/ip_helper_spec.rb +39 -39
  256. metadata +31 -4
@@ -16,8 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
-
20
- require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper.rb')
19
+ require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb")
21
20
 
22
21
  describe Ohai::System, "Darwin cpu plugin" do
23
22
  before(:each) do
@@ -6,9 +6,9 @@
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
- #
9
+ #
10
10
  # http://www.apache.org/licenses/LICENSE-2.0
11
- #
11
+ #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
14
14
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper.rb')
19
+ require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb")
20
20
 
21
21
  describe Ohai::System, "darwin filesystem2 plugin" do
22
22
  let (:plugin) { get_plugin("darwin/filesystem2") }
@@ -59,7 +59,7 @@ DF
59
59
  expect(plugin[:filesystem2]["by_pair"]["/dev/disk0s2,/"][:mount]).to eq("/")
60
60
  expect(plugin[:filesystem2]["by_pair"]["/dev/disk0s2,/"][:device]).to eq("/dev/disk0s2")
61
61
  end
62
-
62
+
63
63
  it "should set inode info to value from df -i" do
64
64
  plugin.run
65
65
  expect(plugin[:filesystem2]["by_pair"]["/dev/disk0s2,/"][:total_inodes]).to eq("61069440")
@@ -90,7 +90,7 @@ MOUNT
90
90
  plugin.run
91
91
  expect(plugin[:filesystem2]["by_pair"]["/dev/disk0s2,/"][:mount]).to eq("/")
92
92
  expect(plugin[:filesystem2]["by_pair"]["/dev/disk0s2,/"][:fs_type]).to eq("hfs")
93
- expect(plugin[:filesystem2]["by_pair"]["/dev/disk0s2,/"][:mount_options]).to eq([ "local", "journaled" ])
93
+ expect(plugin[:filesystem2]["by_pair"]["/dev/disk0s2,/"][:mount_options]).to eq(%w{local journaled})
94
94
  end
95
95
  end
96
96
 
@@ -111,7 +111,7 @@ DF
111
111
 
112
112
  it "should provide a devices view with all mountpoints" do
113
113
  plugin.run
114
- expect(plugin[:filesystem2]["by_device"]["/dev/disk0s2"][:mounts]).to eq(['/', '/another/mountpoint'])
114
+ expect(plugin[:filesystem2]["by_device"]["/dev/disk0s2"][:mounts]).to eq(["/", "/another/mountpoint"])
115
115
  end
116
116
  end
117
117
 
@@ -133,7 +133,7 @@ DF
133
133
 
134
134
  it "should provide a mounts view with all devices" do
135
135
  plugin.run
136
- expect(plugin[:filesystem2]["by_mountpoint"]["/mnt"][:devices]).to eq(['/dev/disk0s3', '/dev/disk0s4'])
136
+ expect(plugin[:filesystem2]["by_mountpoint"]["/mnt"][:devices]).to eq(["/dev/disk0s3", "/dev/disk0s4"])
137
137
  end
138
138
  end
139
139
  end
@@ -6,9 +6,9 @@
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
8
8
  # You may obtain a copy of the License at
9
- #
9
+ #
10
10
  # http://www.apache.org/licenses/LICENSE-2.0
11
- #
11
+ #
12
12
  # Unless required by applicable law or agreed to in writing, software
13
13
  # distributed under the License is distributed on an "AS IS" BASIS,
14
14
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper.rb')
19
+ require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb")
20
20
 
21
21
  describe Ohai::System, "darwin filesystem plugin" do
22
22
  let (:plugin) { get_plugin("darwin/filesystem") }
@@ -58,7 +58,7 @@ DF
58
58
  plugin.run
59
59
  expect(plugin[:filesystem]["/dev/disk0s2"][:mount]).to eq("/")
60
60
  end
61
-
61
+
62
62
  it "should set inode info to value from df -i" do
63
63
  plugin.run
64
64
  expect(plugin[:filesystem]["/dev/disk0s2"][:total_inodes]).to eq("61069440")
@@ -89,7 +89,7 @@ MOUNT
89
89
  plugin.run
90
90
  expect(plugin[:filesystem]["/dev/disk0s2"][:mount]).to eq("/")
91
91
  expect(plugin[:filesystem]["/dev/disk0s2"][:fs_type]).to eq("hfs")
92
- expect(plugin[:filesystem]["/dev/disk0s2"][:mount_options]).to eq([ "local", "journaled" ])
92
+ expect(plugin[:filesystem]["/dev/disk0s2"][:mount_options]).to eq(%w{local journaled})
93
93
  end
94
94
  end
95
95
  end
@@ -16,8 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
-
20
- require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper.rb')
19
+ require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb")
21
20
 
22
21
  describe Ohai::System, "Darwin hostname plugin" do
23
22
  before(:each) do
@@ -42,5 +41,3 @@ describe Ohai::System, "Darwin hostname plugin" do
42
41
  expect(@plugin[:domain]).to eq("bethell")
43
42
  end
44
43
  end
45
-
46
-
@@ -16,8 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
-
20
- require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper.rb')
19
+ require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb")
21
20
 
22
21
  describe Ohai::System, "Darwin kernel plugin" do
23
22
  before(:each) do
@@ -35,12 +34,9 @@ describe Ohai::System, "Darwin kernel plugin" do
35
34
  EOF
36
35
 
37
36
  modules = {
38
- "com.apple.kec.corecrypto"=>
39
- {"version"=>"1.0", "size"=>266240, "index"=>"8", "refcount"=>"0"},
40
- "com.apple.iokit.IOACPIFamily"=>
41
- {"version"=>"1.4", "size"=>36864, "index"=>"9", "refcount"=>"22"},
42
- "com.apple.iokit.IOPCIFamily"=>
43
- {"version"=>"2.8", "size"=>167936, "index"=>"10", "refcount"=>"30"}}
37
+ "com.apple.kec.corecrypto" => { "version" => "1.0", "size" => 266240, "index" => "8", "refcount" => "0" },
38
+ "com.apple.iokit.IOACPIFamily" => { "version" => "1.4", "size" => 36864, "index" => "9", "refcount" => "22" },
39
+ "com.apple.iokit.IOPCIFamily" => { "version" => "2.8", "size" => 167936, "index" => "10", "refcount" => "30" } }
44
40
 
45
41
  @plugin.run
46
42
  expect(@plugin[:kernel][:modules]).to eql(modules)
@@ -50,14 +46,14 @@ EOF
50
46
  allow(@plugin).to receive(:shell_out).with("sysctl -n hw.optional.x86_64").and_return(mock_shell_out(0, "0", ""))
51
47
  allow(@plugin).to receive(:shell_out).with("kextstat -k -l").and_return(mock_shell_out(0, "", ""))
52
48
  @plugin.run
53
- expect(@plugin[:kernel][:machine]).not_to eq('x86_64')
49
+ expect(@plugin[:kernel][:machine]).not_to eq("x86_64")
54
50
  end
55
51
 
56
52
  it "should set kernel_machine to x86_64" do
57
53
  allow(@plugin).to receive(:shell_out).with("sysctl -n hw.optional.x86_64").and_return(mock_shell_out(0, "1", ""))
58
54
  allow(@plugin).to receive(:shell_out).with("kextstat -k -l").and_return(mock_shell_out(0, "", ""))
59
55
  @plugin.run
60
- expect(@plugin[:kernel][:machine]).to eq('x86_64')
56
+ expect(@plugin[:kernel][:machine]).to eq("x86_64")
61
57
  end
62
58
 
63
59
  it "should set the kernel_os to the kernel_name value" do
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper.rb')
19
+ require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb")
20
20
 
21
21
  describe Ohai::System, "Darwin Memory Plugin" do
22
22
  before(:each) do
@@ -47,18 +47,18 @@ Object cache: 12 hits of 139872 lookups (0% hit rate)
47
47
  end
48
48
 
49
49
  it "should set memory[:total] to 16384MB" do
50
- expect(@plugin[:memory][:total]).to eq('16384MB')
50
+ expect(@plugin[:memory][:total]).to eq("16384MB")
51
51
  end
52
52
 
53
53
  it "should set memory[:active] to 5140MB" do
54
- expect(@plugin[:memory][:active]).to eq('5140MB')
54
+ expect(@plugin[:memory][:active]).to eq("5140MB")
55
55
  end
56
56
 
57
57
  it "should set memory[:inactive] to 738MB" do
58
- expect(@plugin[:memory][:inactive]).to eq('738MB')
58
+ expect(@plugin[:memory][:inactive]).to eq("738MB")
59
59
  end
60
60
 
61
61
  it "should set memory[:free] to 10504MB" do
62
- expect(@plugin[:memory][:free]).to eq('10504MB')
62
+ expect(@plugin[:memory][:free]).to eq("10504MB")
63
63
  end
64
64
  end
@@ -16,7 +16,7 @@
16
16
  # limitations under the License.
17
17
  #
18
18
 
19
- require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper.rb')
19
+ require File.expand_path(File.dirname(__FILE__) + "/../../../spec_helper.rb")
20
20
 
21
21
  describe Ohai::System, "Darwin Network Plugin" do
22
22
  before(:each) do
@@ -439,412 +439,411 @@ net.smb.fs.tcprcvbuf: 261120
439
439
  end
440
440
 
441
441
  it "completes the run" do
442
- expect(@plugin['network']).not_to be_nil
442
+ expect(@plugin["network"]).not_to be_nil
443
443
  end
444
444
 
445
445
  it "detects the interfaces" do
446
- expect(@plugin['network']['interfaces'].keys.sort).to eq(["en0", "en1", "fw0", "gif0", "lo0", "p2p0", "stf0", "utun0"])
446
+ expect(@plugin["network"]["interfaces"].keys.sort).to eq(%w{en0 en1 fw0 gif0 lo0 p2p0 stf0 utun0})
447
447
  end
448
448
 
449
449
  it "detects the ipv4 addresses of the ethernet interface" do
450
- expect(@plugin['network']['interfaces']['en1']['addresses'].keys).to include('10.20.10.144')
451
- expect(@plugin['network']['interfaces']['en1']['addresses']['10.20.10.144']['netmask']).to eq('255.255.255.0')
452
- expect(@plugin['network']['interfaces']['en1']['addresses']['10.20.10.144']['broadcast']).to eq('10.20.10.255')
453
- expect(@plugin['network']['interfaces']['en1']['addresses']['10.20.10.144']['family']).to eq('inet')
450
+ expect(@plugin["network"]["interfaces"]["en1"]["addresses"].keys).to include("10.20.10.144")
451
+ expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["10.20.10.144"]["netmask"]).to eq("255.255.255.0")
452
+ expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["10.20.10.144"]["broadcast"]).to eq("10.20.10.255")
453
+ expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["10.20.10.144"]["family"]).to eq("inet")
454
454
  end
455
455
 
456
456
  it "detects the ipv6 addresses of the ethernet interface" do
457
- expect(@plugin['network']['interfaces']['en1']['addresses'].keys).to include('fe80::ba8d:12ff:fe3a:32de')
458
- expect(@plugin['network']['interfaces']['en1']['addresses']['fe80::ba8d:12ff:fe3a:32de']['scope']).to eq('Link')
459
- expect(@plugin['network']['interfaces']['en1']['addresses']['fe80::ba8d:12ff:fe3a:32de']['prefixlen']).to eq('64')
460
- expect(@plugin['network']['interfaces']['en1']['addresses']['fe80::ba8d:12ff:fe3a:32de']['family']).to eq('inet6')
461
-
462
- expect(@plugin['network']['interfaces']['en1']['addresses'].keys).to include('2001:44b8:4186:1100:ba8d:12ff:fe3a:32de')
463
- expect(@plugin['network']['interfaces']['en1']['addresses']['2001:44b8:4186:1100:ba8d:12ff:fe3a:32de']['scope']).to eq('Global')
464
- expect(@plugin['network']['interfaces']['en1']['addresses']['2001:44b8:4186:1100:ba8d:12ff:fe3a:32de']['prefixlen']).to eq('64')
465
- expect(@plugin['network']['interfaces']['en1']['addresses']['2001:44b8:4186:1100:ba8d:12ff:fe3a:32de']['family']).to eq('inet6')
457
+ expect(@plugin["network"]["interfaces"]["en1"]["addresses"].keys).to include("fe80::ba8d:12ff:fe3a:32de")
458
+ expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["fe80::ba8d:12ff:fe3a:32de"]["scope"]).to eq("Link")
459
+ expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["fe80::ba8d:12ff:fe3a:32de"]["prefixlen"]).to eq("64")
460
+ expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["fe80::ba8d:12ff:fe3a:32de"]["family"]).to eq("inet6")
461
+
462
+ expect(@plugin["network"]["interfaces"]["en1"]["addresses"].keys).to include("2001:44b8:4186:1100:ba8d:12ff:fe3a:32de")
463
+ expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["2001:44b8:4186:1100:ba8d:12ff:fe3a:32de"]["scope"]).to eq("Global")
464
+ expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["2001:44b8:4186:1100:ba8d:12ff:fe3a:32de"]["prefixlen"]).to eq("64")
465
+ expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["2001:44b8:4186:1100:ba8d:12ff:fe3a:32de"]["family"]).to eq("inet6")
466
466
  end
467
467
 
468
468
  it "detects the mac addresses of the ethernet interface" do
469
- expect(@plugin['network']['interfaces']['en1']['addresses'].keys).to include('b8:8d:12:3a:32:de')
470
- expect(@plugin['network']['interfaces']['en1']['addresses']['b8:8d:12:3a:32:de']['family']).to eq('lladdr')
469
+ expect(@plugin["network"]["interfaces"]["en1"]["addresses"].keys).to include("b8:8d:12:3a:32:de")
470
+ expect(@plugin["network"]["interfaces"]["en1"]["addresses"]["b8:8d:12:3a:32:de"]["family"]).to eq("lladdr")
471
471
  end
472
472
 
473
473
  it "detects the encapsulation type of the ethernet interface" do
474
- expect(@plugin['network']['interfaces']['en1']['encapsulation']).to eq('Ethernet')
474
+ expect(@plugin["network"]["interfaces"]["en1"]["encapsulation"]).to eq("Ethernet")
475
475
  end
476
476
 
477
477
  it "detects the flags of the ethernet interface" do
478
- expect(@plugin['network']['interfaces']['en1']['flags'].sort).to eq(["BROADCAST", "MULTICAST", "RUNNING", "SIMPLEX", "SMART", "UP"])
478
+ expect(@plugin["network"]["interfaces"]["en1"]["flags"].sort).to eq(%w{BROADCAST MULTICAST RUNNING SIMPLEX SMART UP})
479
479
  end
480
480
 
481
-
482
481
  it "detects the mtu of the ethernet interface" do
483
- expect(@plugin['network']['interfaces']['en1']['mtu']).to eq("1500")
482
+ expect(@plugin["network"]["interfaces"]["en1"]["mtu"]).to eq("1500")
484
483
  end
485
484
 
486
485
  it "detects the ipv4 addresses of the loopback interface" do
487
- expect(@plugin['network']['interfaces']['lo0']['addresses'].keys).to include('127.0.0.1')
488
- expect(@plugin['network']['interfaces']['lo0']['addresses']['127.0.0.1']['netmask']).to eq('255.0.0.0')
489
- expect(@plugin['network']['interfaces']['lo0']['addresses']['127.0.0.1']['family']).to eq('inet')
486
+ expect(@plugin["network"]["interfaces"]["lo0"]["addresses"].keys).to include("127.0.0.1")
487
+ expect(@plugin["network"]["interfaces"]["lo0"]["addresses"]["127.0.0.1"]["netmask"]).to eq("255.0.0.0")
488
+ expect(@plugin["network"]["interfaces"]["lo0"]["addresses"]["127.0.0.1"]["family"]).to eq("inet")
490
489
  end
491
490
 
492
491
  it "detects the ipv6 addresses of the loopback interface" do
493
- expect(@plugin['network']['interfaces']['lo0']['addresses'].keys).to include('::1')
494
- expect(@plugin['network']['interfaces']['lo0']['addresses']['::1']['scope']).to eq('Node')
495
- expect(@plugin['network']['interfaces']['lo0']['addresses']['::1']['prefixlen']).to eq('128')
496
- expect(@plugin['network']['interfaces']['lo0']['addresses']['::1']['family']).to eq('inet6')
492
+ expect(@plugin["network"]["interfaces"]["lo0"]["addresses"].keys).to include("::1")
493
+ expect(@plugin["network"]["interfaces"]["lo0"]["addresses"]["::1"]["scope"]).to eq("Node")
494
+ expect(@plugin["network"]["interfaces"]["lo0"]["addresses"]["::1"]["prefixlen"]).to eq("128")
495
+ expect(@plugin["network"]["interfaces"]["lo0"]["addresses"]["::1"]["family"]).to eq("inet6")
497
496
  end
498
497
 
499
498
  it "detects the encapsulation type of the loopback interface" do
500
- expect(@plugin['network']['interfaces']['lo0']['encapsulation']).to eq('Loopback')
499
+ expect(@plugin["network"]["interfaces"]["lo0"]["encapsulation"]).to eq("Loopback")
501
500
  end
502
501
 
503
502
  it "detects the flags of the ethernet interface" do
504
- expect(@plugin['network']['interfaces']['lo0']['flags'].sort).to eq(["LOOPBACK", "MULTICAST", "RUNNING", "UP"])
503
+ expect(@plugin["network"]["interfaces"]["lo0"]["flags"].sort).to eq(%w{LOOPBACK MULTICAST RUNNING UP})
505
504
  end
506
505
 
507
506
  it "detects the mtu of the loopback interface" do
508
- expect(@plugin['network']['interfaces']['lo0']['mtu']).to eq("16384")
507
+ expect(@plugin["network"]["interfaces"]["lo0"]["mtu"]).to eq("16384")
509
508
  end
510
509
 
511
510
  it "detects the arp entries" do
512
- expect(@plugin['network']['interfaces']['en1']['arp']['10.20.10.1']).to eq('0:4:ed:de:41:bf')
511
+ expect(@plugin["network"]["interfaces"]["en1"]["arp"]["10.20.10.1"]).to eq("0:4:ed:de:41:bf")
513
512
  end
514
513
 
515
514
  it "detects the ethernet counters" do
516
- expect(@plugin['counters']['network']['interfaces']['en1']['tx']['bytes']).to eq("18228234970")
517
- expect(@plugin['counters']['network']['interfaces']['en1']['tx']['packets']).to eq("14314573")
518
- expect(@plugin['counters']['network']['interfaces']['en1']['tx']['collisions']).to eq("0")
519
- expect(@plugin['counters']['network']['interfaces']['en1']['tx']['errors']).to eq("0")
520
- expect(@plugin['counters']['network']['interfaces']['en1']['tx']['carrier']).to eq(0)
521
- expect(@plugin['counters']['network']['interfaces']['en1']['tx']['drop']).to eq(0)
522
-
523
- expect(@plugin['counters']['network']['interfaces']['en1']['rx']['bytes']).to eq("2530556736")
524
- expect(@plugin['counters']['network']['interfaces']['en1']['rx']['packets']).to eq("5921903")
525
- expect(@plugin['counters']['network']['interfaces']['en1']['rx']['errors']).to eq("0")
526
- expect(@plugin['counters']['network']['interfaces']['en1']['rx']['overrun']).to eq(0)
527
- expect(@plugin['counters']['network']['interfaces']['en1']['rx']['drop']).to eq(0)
515
+ expect(@plugin["counters"]["network"]["interfaces"]["en1"]["tx"]["bytes"]).to eq("18228234970")
516
+ expect(@plugin["counters"]["network"]["interfaces"]["en1"]["tx"]["packets"]).to eq("14314573")
517
+ expect(@plugin["counters"]["network"]["interfaces"]["en1"]["tx"]["collisions"]).to eq("0")
518
+ expect(@plugin["counters"]["network"]["interfaces"]["en1"]["tx"]["errors"]).to eq("0")
519
+ expect(@plugin["counters"]["network"]["interfaces"]["en1"]["tx"]["carrier"]).to eq(0)
520
+ expect(@plugin["counters"]["network"]["interfaces"]["en1"]["tx"]["drop"]).to eq(0)
521
+
522
+ expect(@plugin["counters"]["network"]["interfaces"]["en1"]["rx"]["bytes"]).to eq("2530556736")
523
+ expect(@plugin["counters"]["network"]["interfaces"]["en1"]["rx"]["packets"]).to eq("5921903")
524
+ expect(@plugin["counters"]["network"]["interfaces"]["en1"]["rx"]["errors"]).to eq("0")
525
+ expect(@plugin["counters"]["network"]["interfaces"]["en1"]["rx"]["overrun"]).to eq(0)
526
+ expect(@plugin["counters"]["network"]["interfaces"]["en1"]["rx"]["drop"]).to eq(0)
528
527
  end
529
528
 
530
529
  it "detects the loopback counters" do
531
- expect(@plugin['counters']['network']['interfaces']['lo0']['tx']['bytes']).to eq("25774844")
532
- expect(@plugin['counters']['network']['interfaces']['lo0']['tx']['packets']).to eq("174982")
533
- expect(@plugin['counters']['network']['interfaces']['lo0']['tx']['collisions']).to eq("0")
534
- expect(@plugin['counters']['network']['interfaces']['lo0']['tx']['errors']).to eq("0")
535
- expect(@plugin['counters']['network']['interfaces']['lo0']['tx']['carrier']).to eq(0)
536
- expect(@plugin['counters']['network']['interfaces']['lo0']['tx']['drop']).to eq(0)
537
-
538
- expect(@plugin['counters']['network']['interfaces']['lo0']['rx']['bytes']).to eq("25774844")
539
- expect(@plugin['counters']['network']['interfaces']['lo0']['rx']['packets']).to eq("174982")
540
- expect(@plugin['counters']['network']['interfaces']['lo0']['rx']['errors']).to eq("0")
541
- expect(@plugin['counters']['network']['interfaces']['lo0']['rx']['overrun']).to eq(0)
542
- expect(@plugin['counters']['network']['interfaces']['lo0']['rx']['drop']).to eq(0)
530
+ expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["tx"]["bytes"]).to eq("25774844")
531
+ expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["tx"]["packets"]).to eq("174982")
532
+ expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["tx"]["collisions"]).to eq("0")
533
+ expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["tx"]["errors"]).to eq("0")
534
+ expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["tx"]["carrier"]).to eq(0)
535
+ expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["tx"]["drop"]).to eq(0)
536
+
537
+ expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["rx"]["bytes"]).to eq("25774844")
538
+ expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["rx"]["packets"]).to eq("174982")
539
+ expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["rx"]["errors"]).to eq("0")
540
+ expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["rx"]["overrun"]).to eq(0)
541
+ expect(@plugin["counters"]["network"]["interfaces"]["lo0"]["rx"]["drop"]).to eq(0)
543
542
  end
544
543
 
545
544
  it "finds the default interface by asking which iface has the default route" do
546
- expect(@plugin['network'][:default_interface]).to eq('en1')
545
+ expect(@plugin["network"][:default_interface]).to eq("en1")
547
546
  end
548
547
 
549
548
  it "finds the default interface by asking which iface has the default route" do
550
- expect(@plugin['network'][:default_gateway]).to eq('10.20.10.1')
549
+ expect(@plugin["network"][:default_gateway]).to eq("10.20.10.1")
551
550
  end
552
551
 
553
552
  it "should detect network settings" do
554
- expect(@plugin['network']['settings']['net.local.stream.sendspace']).to eq('8192')
555
- expect(@plugin["network"]["settings"]['net.local.stream.recvspace']).to eq('8192')
556
- expect(@plugin["network"]["settings"]['net.local.stream.tracemdns']).to eq('0')
557
- expect(@plugin["network"]["settings"]['net.local.dgram.maxdgram']).to eq('2048')
558
- expect(@plugin["network"]["settings"]['net.local.dgram.recvspace']).to eq('4096')
559
- expect(@plugin["network"]["settings"]['net.local.inflight']).to eq('0')
560
- expect(@plugin["network"]["settings"]['net.inet.ip.portrange.lowfirst']).to eq('1023')
561
- expect(@plugin["network"]["settings"]['net.inet.ip.portrange.lowlast']).to eq('600')
562
- expect(@plugin["network"]["settings"]['net.inet.ip.portrange.first']).to eq('49152')
563
- expect(@plugin["network"]["settings"]['net.inet.ip.portrange.last']).to eq('65535')
564
- expect(@plugin["network"]["settings"]['net.inet.ip.portrange.hifirst']).to eq('49152')
565
- expect(@plugin["network"]["settings"]['net.inet.ip.portrange.hilast']).to eq('65535')
566
- expect(@plugin["network"]["settings"]['net.inet.ip.forwarding']).to eq('1')
567
- expect(@plugin["network"]["settings"]['net.inet.ip.redirect']).to eq('1')
568
- expect(@plugin["network"]["settings"]['net.inet.ip.ttl']).to eq('64')
569
- expect(@plugin["network"]["settings"]['net.inet.ip.rtexpire']).to eq('12')
570
- expect(@plugin["network"]["settings"]['net.inet.ip.rtminexpire']).to eq('10')
571
- expect(@plugin["network"]["settings"]['net.inet.ip.rtmaxcache']).to eq('128')
572
- expect(@plugin["network"]["settings"]['net.inet.ip.sourceroute']).to eq('0')
573
- expect(@plugin["network"]["settings"]['net.inet.ip.intr_queue_maxlen']).to eq('50')
574
- expect(@plugin["network"]["settings"]['net.inet.ip.intr_queue_drops']).to eq('0')
575
- expect(@plugin["network"]["settings"]['net.inet.ip.accept_sourceroute']).to eq('0')
576
- expect(@plugin["network"]["settings"]['net.inet.ip.keepfaith']).to eq('0')
577
- expect(@plugin["network"]["settings"]['net.inet.ip.gifttl']).to eq('30')
578
- expect(@plugin["network"]["settings"]['net.inet.ip.subnets_are_local']).to eq('0')
579
- expect(@plugin["network"]["settings"]['net.inet.ip.mcast.maxgrpsrc']).to eq('512')
580
- expect(@plugin["network"]["settings"]['net.inet.ip.mcast.maxsocksrc']).to eq('128')
581
- expect(@plugin["network"]["settings"]['net.inet.ip.mcast.loop']).to eq('1')
582
- expect(@plugin["network"]["settings"]['net.inet.ip.check_route_selfref']).to eq('1')
583
- expect(@plugin["network"]["settings"]['net.inet.ip.use_route_genid']).to eq('1')
584
- expect(@plugin["network"]["settings"]['net.inet.ip.dummynet.hash_size']).to eq('64')
585
- expect(@plugin["network"]["settings"]['net.inet.ip.dummynet.curr_time']).to eq('0')
586
- expect(@plugin["network"]["settings"]['net.inet.ip.dummynet.ready_heap']).to eq('0')
587
- expect(@plugin["network"]["settings"]['net.inet.ip.dummynet.extract_heap']).to eq('0')
588
- expect(@plugin["network"]["settings"]['net.inet.ip.dummynet.searches']).to eq('0')
589
- expect(@plugin["network"]["settings"]['net.inet.ip.dummynet.search_steps']).to eq('0')
590
- expect(@plugin["network"]["settings"]['net.inet.ip.dummynet.expire']).to eq('1')
591
- expect(@plugin["network"]["settings"]['net.inet.ip.dummynet.max_chain_len']).to eq('16')
592
- expect(@plugin["network"]["settings"]['net.inet.ip.dummynet.red_lookup_depth']).to eq('256')
593
- expect(@plugin["network"]["settings"]['net.inet.ip.dummynet.red_avg_pkt_size']).to eq('512')
594
- expect(@plugin["network"]["settings"]['net.inet.ip.dummynet.red_max_pkt_size']).to eq('1500')
595
- expect(@plugin["network"]["settings"]['net.inet.ip.dummynet.debug']).to eq('0')
596
- expect(@plugin["network"]["settings"]['net.inet.ip.fw.enable']).to eq('1')
597
- expect(@plugin["network"]["settings"]['net.inet.ip.fw.autoinc_step']).to eq('100')
598
- expect(@plugin["network"]["settings"]['net.inet.ip.fw.one_pass']).to eq('0')
599
- expect(@plugin["network"]["settings"]['net.inet.ip.fw.debug']).to eq('0')
600
- expect(@plugin["network"]["settings"]['net.inet.ip.fw.verbose']).to eq('0')
601
- expect(@plugin["network"]["settings"]['net.inet.ip.fw.verbose_limit']).to eq('0')
602
- expect(@plugin["network"]["settings"]['net.inet.ip.fw.dyn_buckets']).to eq('256')
603
- expect(@plugin["network"]["settings"]['net.inet.ip.fw.curr_dyn_buckets']).to eq('256')
604
- expect(@plugin["network"]["settings"]['net.inet.ip.fw.dyn_count']).to eq('0')
605
- expect(@plugin["network"]["settings"]['net.inet.ip.fw.dyn_max']).to eq('4096')
606
- expect(@plugin["network"]["settings"]['net.inet.ip.fw.static_count']).to eq('2')
607
- expect(@plugin["network"]["settings"]['net.inet.ip.fw.dyn_ack_lifetime']).to eq('300')
608
- expect(@plugin["network"]["settings"]['net.inet.ip.fw.dyn_syn_lifetime']).to eq('20')
609
- expect(@plugin["network"]["settings"]['net.inet.ip.fw.dyn_fin_lifetime']).to eq('1')
610
- expect(@plugin["network"]["settings"]['net.inet.ip.fw.dyn_rst_lifetime']).to eq('1')
611
- expect(@plugin["network"]["settings"]['net.inet.ip.fw.dyn_udp_lifetime']).to eq('10')
612
- expect(@plugin["network"]["settings"]['net.inet.ip.fw.dyn_short_lifetime']).to eq('5')
613
- expect(@plugin["network"]["settings"]['net.inet.ip.fw.dyn_keepalive']).to eq('1')
614
- expect(@plugin["network"]["settings"]['net.inet.ip.maxfragpackets']).to eq('1536')
615
- expect(@plugin["network"]["settings"]['net.inet.ip.maxfragsperpacket']).to eq('128')
616
- expect(@plugin["network"]["settings"]['net.inet.ip.maxfrags']).to eq('3072')
617
- expect(@plugin["network"]["settings"]['net.inet.ip.scopedroute']).to eq('1')
618
- expect(@plugin["network"]["settings"]['net.inet.ip.check_interface']).to eq('0')
619
- expect(@plugin["network"]["settings"]['net.inet.ip.linklocal.in.allowbadttl']).to eq('1')
620
- expect(@plugin["network"]["settings"]['net.inet.ip.random_id']).to eq('1')
621
- expect(@plugin["network"]["settings"]['net.inet.ip.maxchainsent']).to eq('0')
622
- expect(@plugin["network"]["settings"]['net.inet.ip.select_srcif_debug']).to eq('0')
623
- expect(@plugin["network"]["settings"]['net.inet.icmp.maskrepl']).to eq('0')
624
- expect(@plugin["network"]["settings"]['net.inet.icmp.icmplim']).to eq('250')
625
- expect(@plugin["network"]["settings"]['net.inet.icmp.timestamp']).to eq('0')
626
- expect(@plugin["network"]["settings"]['net.inet.icmp.drop_redirect']).to eq('0')
627
- expect(@plugin["network"]["settings"]['net.inet.icmp.log_redirect']).to eq('0')
628
- expect(@plugin["network"]["settings"]['net.inet.icmp.bmcastecho']).to eq('1')
629
- expect(@plugin["network"]["settings"]['net.inet.igmp.recvifkludge']).to eq('1')
630
- expect(@plugin["network"]["settings"]['net.inet.igmp.sendra']).to eq('1')
631
- expect(@plugin["network"]["settings"]['net.inet.igmp.sendlocal']).to eq('1')
632
- expect(@plugin["network"]["settings"]['net.inet.igmp.v1enable']).to eq('1')
633
- expect(@plugin["network"]["settings"]['net.inet.igmp.v2enable']).to eq('1')
634
- expect(@plugin["network"]["settings"]['net.inet.igmp.legacysupp']).to eq('0')
635
- expect(@plugin["network"]["settings"]['net.inet.igmp.default_version']).to eq('3')
636
- expect(@plugin["network"]["settings"]['net.inet.igmp.gsrdelay']).to eq('10')
637
- expect(@plugin["network"]["settings"]['net.inet.igmp.debug']).to eq('0')
638
- expect(@plugin["network"]["settings"]['net.inet.tcp.rfc1323']).to eq('1')
639
- expect(@plugin["network"]["settings"]['net.inet.tcp.rfc1644']).to eq('0')
640
- expect(@plugin["network"]["settings"]['net.inet.tcp.mssdflt']).to eq('512')
641
- expect(@plugin["network"]["settings"]['net.inet.tcp.keepidle']).to eq('7200000')
642
- expect(@plugin["network"]["settings"]['net.inet.tcp.keepintvl']).to eq('75000')
643
- expect(@plugin["network"]["settings"]['net.inet.tcp.sendspace']).to eq('65536')
644
- expect(@plugin["network"]["settings"]['net.inet.tcp.recvspace']).to eq('65536')
645
- expect(@plugin["network"]["settings"]['net.inet.tcp.keepinit']).to eq('75000')
646
- expect(@plugin["network"]["settings"]['net.inet.tcp.v6mssdflt']).to eq('1024')
647
- expect(@plugin["network"]["settings"]['net.inet.tcp.log_in_vain']).to eq('0')
648
- expect(@plugin["network"]["settings"]['net.inet.tcp.blackhole']).to eq('0')
649
- expect(@plugin["network"]["settings"]['net.inet.tcp.delayed_ack']).to eq('3')
650
- expect(@plugin["network"]["settings"]['net.inet.tcp.tcp_lq_overflow']).to eq('1')
651
- expect(@plugin["network"]["settings"]['net.inet.tcp.recvbg']).to eq('0')
652
- expect(@plugin["network"]["settings"]['net.inet.tcp.drop_synfin']).to eq('1')
653
- expect(@plugin["network"]["settings"]['net.inet.tcp.reass.maxsegments']).to eq('3072')
654
- expect(@plugin["network"]["settings"]['net.inet.tcp.reass.cursegments']).to eq('0')
655
- expect(@plugin["network"]["settings"]['net.inet.tcp.reass.overflows']).to eq('0')
656
- expect(@plugin["network"]["settings"]['net.inet.tcp.slowlink_wsize']).to eq('8192')
657
- expect(@plugin["network"]["settings"]['net.inet.tcp.maxseg_unacked']).to eq('8')
658
- expect(@plugin["network"]["settings"]['net.inet.tcp.rfc3465']).to eq('1')
659
- expect(@plugin["network"]["settings"]['net.inet.tcp.rfc3465_lim2']).to eq('1')
660
- expect(@plugin["network"]["settings"]['net.inet.tcp.rtt_samples_per_slot']).to eq('20')
661
- expect(@plugin["network"]["settings"]['net.inet.tcp.recv_allowed_iaj']).to eq('5')
662
- expect(@plugin["network"]["settings"]['net.inet.tcp.acc_iaj_high_thresh']).to eq('100')
663
- expect(@plugin["network"]["settings"]['net.inet.tcp.rexmt_thresh']).to eq('2')
664
- expect(@plugin["network"]["settings"]['net.inet.tcp.path_mtu_discovery']).to eq('1')
665
- expect(@plugin["network"]["settings"]['net.inet.tcp.slowstart_flightsize']).to eq('1')
666
- expect(@plugin["network"]["settings"]['net.inet.tcp.local_slowstart_flightsize']).to eq('8')
667
- expect(@plugin["network"]["settings"]['net.inet.tcp.tso']).to eq('1')
668
- expect(@plugin["network"]["settings"]['net.inet.tcp.ecn_initiate_out']).to eq('0')
669
- expect(@plugin["network"]["settings"]['net.inet.tcp.ecn_negotiate_in']).to eq('0')
670
- expect(@plugin["network"]["settings"]['net.inet.tcp.packetchain']).to eq('50')
671
- expect(@plugin["network"]["settings"]['net.inet.tcp.socket_unlocked_on_output']).to eq('1')
672
- expect(@plugin["network"]["settings"]['net.inet.tcp.rfc3390']).to eq('1')
673
- expect(@plugin["network"]["settings"]['net.inet.tcp.min_iaj_win']).to eq('4')
674
- expect(@plugin["network"]["settings"]['net.inet.tcp.acc_iaj_react_limit']).to eq('200')
675
- expect(@plugin["network"]["settings"]['net.inet.tcp.sack']).to eq('1')
676
- expect(@plugin["network"]["settings"]['net.inet.tcp.sack_maxholes']).to eq('128')
677
- expect(@plugin["network"]["settings"]['net.inet.tcp.sack_globalmaxholes']).to eq('65536')
678
- expect(@plugin["network"]["settings"]['net.inet.tcp.sack_globalholes']).to eq('0')
679
- expect(@plugin["network"]["settings"]['net.inet.tcp.minmss']).to eq('216')
680
- expect(@plugin["network"]["settings"]['net.inet.tcp.minmssoverload']).to eq('0')
681
- expect(@plugin["network"]["settings"]['net.inet.tcp.do_tcpdrain']).to eq('0')
682
- expect(@plugin["network"]["settings"]['net.inet.tcp.pcbcount']).to eq('86')
683
- expect(@plugin["network"]["settings"]['net.inet.tcp.icmp_may_rst']).to eq('1')
684
- expect(@plugin["network"]["settings"]['net.inet.tcp.strict_rfc1948']).to eq('0')
685
- expect(@plugin["network"]["settings"]['net.inet.tcp.isn_reseed_interval']).to eq('0')
686
- expect(@plugin["network"]["settings"]['net.inet.tcp.background_io_enabled']).to eq('1')
687
- expect(@plugin["network"]["settings"]['net.inet.tcp.rtt_min']).to eq('100')
688
- expect(@plugin["network"]["settings"]['net.inet.tcp.rexmt_slop']).to eq('200')
689
- expect(@plugin["network"]["settings"]['net.inet.tcp.randomize_ports']).to eq('0')
690
- expect(@plugin["network"]["settings"]['net.inet.tcp.newreno_sockets']).to eq('81')
691
- expect(@plugin["network"]["settings"]['net.inet.tcp.background_sockets']).to eq('-1')
692
- expect(@plugin["network"]["settings"]['net.inet.tcp.tcbhashsize']).to eq('4096')
693
- expect(@plugin["network"]["settings"]['net.inet.tcp.background_io_trigger']).to eq('5')
694
- expect(@plugin["network"]["settings"]['net.inet.tcp.msl']).to eq('15000')
695
- expect(@plugin["network"]["settings"]['net.inet.tcp.max_persist_timeout']).to eq('0')
696
- expect(@plugin["network"]["settings"]['net.inet.tcp.always_keepalive']).to eq('0')
697
- expect(@plugin["network"]["settings"]['net.inet.tcp.timer_fastmode_idlemax']).to eq('20')
698
- expect(@plugin["network"]["settings"]['net.inet.tcp.broken_peer_syn_rxmit_thres']).to eq('7')
699
- expect(@plugin["network"]["settings"]['net.inet.tcp.tcp_timer_advanced']).to eq('5')
700
- expect(@plugin["network"]["settings"]['net.inet.tcp.tcp_resched_timerlist']).to eq('12209')
701
- expect(@plugin["network"]["settings"]['net.inet.tcp.pmtud_blackhole_detection']).to eq('1')
702
- expect(@plugin["network"]["settings"]['net.inet.tcp.pmtud_blackhole_mss']).to eq('1200')
703
- expect(@plugin["network"]["settings"]['net.inet.tcp.timer_fastquantum']).to eq('100')
704
- expect(@plugin["network"]["settings"]['net.inet.tcp.timer_slowquantum']).to eq('500')
705
- expect(@plugin["network"]["settings"]['net.inet.tcp.win_scale_factor']).to eq('3')
706
- expect(@plugin["network"]["settings"]['net.inet.tcp.sockthreshold']).to eq('64')
707
- expect(@plugin["network"]["settings"]['net.inet.tcp.bg_target_qdelay']).to eq('100')
708
- expect(@plugin["network"]["settings"]['net.inet.tcp.bg_allowed_increase']).to eq('2')
709
- expect(@plugin["network"]["settings"]['net.inet.tcp.bg_tether_shift']).to eq('1')
710
- expect(@plugin["network"]["settings"]['net.inet.tcp.bg_ss_fltsz']).to eq('2')
711
- expect(@plugin["network"]["settings"]['net.inet.udp.checksum']).to eq('1')
712
- expect(@plugin["network"]["settings"]['net.inet.udp.maxdgram']).to eq('9216')
713
- expect(@plugin["network"]["settings"]['net.inet.udp.recvspace']).to eq('42080')
714
- expect(@plugin["network"]["settings"]['net.inet.udp.log_in_vain']).to eq('0')
715
- expect(@plugin["network"]["settings"]['net.inet.udp.blackhole']).to eq('0')
716
- expect(@plugin["network"]["settings"]['net.inet.udp.pcbcount']).to eq('72')
717
- expect(@plugin["network"]["settings"]['net.inet.udp.randomize_ports']).to eq('1')
718
- expect(@plugin["network"]["settings"]['net.inet.ipsec.def_policy']).to eq('1')
719
- expect(@plugin["network"]["settings"]['net.inet.ipsec.esp_trans_deflev']).to eq('1')
720
- expect(@plugin["network"]["settings"]['net.inet.ipsec.esp_net_deflev']).to eq('1')
721
- expect(@plugin["network"]["settings"]['net.inet.ipsec.ah_trans_deflev']).to eq('1')
722
- expect(@plugin["network"]["settings"]['net.inet.ipsec.ah_net_deflev']).to eq('1')
723
- expect(@plugin["network"]["settings"]['net.inet.ipsec.ah_cleartos']).to eq('1')
724
- expect(@plugin["network"]["settings"]['net.inet.ipsec.ah_offsetmask']).to eq('0')
725
- expect(@plugin["network"]["settings"]['net.inet.ipsec.dfbit']).to eq('0')
726
- expect(@plugin["network"]["settings"]['net.inet.ipsec.ecn']).to eq('0')
727
- expect(@plugin["network"]["settings"]['net.inet.ipsec.debug']).to eq('0')
728
- expect(@plugin["network"]["settings"]['net.inet.ipsec.esp_randpad']).to eq('-1')
729
- expect(@plugin["network"]["settings"]['net.inet.ipsec.bypass']).to eq('0')
730
- expect(@plugin["network"]["settings"]['net.inet.ipsec.esp_port']).to eq('4500')
731
- expect(@plugin["network"]["settings"]['net.inet.raw.maxdgram']).to eq('8192')
732
- expect(@plugin["network"]["settings"]['net.inet.raw.recvspace']).to eq('8192')
733
- expect(@plugin["network"]["settings"]['net.link.generic.system.ifcount']).to eq('10')
734
- expect(@plugin["network"]["settings"]['net.link.generic.system.dlil_verbose']).to eq('0')
735
- expect(@plugin["network"]["settings"]['net.link.generic.system.multi_threaded_input']).to eq('1')
736
- expect(@plugin["network"]["settings"]['net.link.generic.system.dlil_input_sanity_check']).to eq('0')
737
- expect(@plugin["network"]["settings"]['net.link.ether.inet.prune_intvl']).to eq('300')
738
- expect(@plugin["network"]["settings"]['net.link.ether.inet.max_age']).to eq('1200')
739
- expect(@plugin["network"]["settings"]['net.link.ether.inet.host_down_time']).to eq('20')
740
- expect(@plugin["network"]["settings"]['net.link.ether.inet.apple_hwcksum_tx']).to eq('1')
741
- expect(@plugin["network"]["settings"]['net.link.ether.inet.apple_hwcksum_rx']).to eq('1')
742
- expect(@plugin["network"]["settings"]['net.link.ether.inet.arp_llreach_base']).to eq('30')
743
- expect(@plugin["network"]["settings"]['net.link.ether.inet.maxtries']).to eq('5')
744
- expect(@plugin["network"]["settings"]['net.link.ether.inet.useloopback']).to eq('1')
745
- expect(@plugin["network"]["settings"]['net.link.ether.inet.proxyall']).to eq('0')
746
- expect(@plugin["network"]["settings"]['net.link.ether.inet.sendllconflict']).to eq('0')
747
- expect(@plugin["network"]["settings"]['net.link.ether.inet.log_arp_warnings']).to eq('0')
748
- expect(@plugin["network"]["settings"]['net.link.ether.inet.keep_announcements']).to eq('1')
749
- expect(@plugin["network"]["settings"]['net.link.ether.inet.send_conflicting_probes']).to eq('1')
750
- expect(@plugin["network"]["settings"]['net.link.bridge.log_stp']).to eq('0')
751
- expect(@plugin["network"]["settings"]['net.link.bridge.debug']).to eq('0')
752
- expect(@plugin["network"]["settings"]['net.key.debug']).to eq('0')
753
- expect(@plugin["network"]["settings"]['net.key.spi_trycnt']).to eq('1000')
754
- expect(@plugin["network"]["settings"]['net.key.spi_minval']).to eq('256')
755
- expect(@plugin["network"]["settings"]['net.key.spi_maxval']).to eq('268435455')
756
- expect(@plugin["network"]["settings"]['net.key.int_random']).to eq('60')
757
- expect(@plugin["network"]["settings"]['net.key.larval_lifetime']).to eq('30')
758
- expect(@plugin["network"]["settings"]['net.key.blockacq_count']).to eq('10')
759
- expect(@plugin["network"]["settings"]['net.key.blockacq_lifetime']).to eq('20')
760
- expect(@plugin["network"]["settings"]['net.key.esp_keymin']).to eq('256')
761
- expect(@plugin["network"]["settings"]['net.key.esp_auth']).to eq('0')
762
- expect(@plugin["network"]["settings"]['net.key.ah_keymin']).to eq('128')
763
- expect(@plugin["network"]["settings"]['net.key.prefered_oldsa']).to eq('0')
764
- expect(@plugin["network"]["settings"]['net.key.natt_keepalive_interval']).to eq('20')
765
- expect(@plugin["network"]["settings"]['net.inet6.ip6.forwarding']).to eq('0')
766
- expect(@plugin["network"]["settings"]['net.inet6.ip6.redirect']).to eq('1')
767
- expect(@plugin["network"]["settings"]['net.inet6.ip6.hlim']).to eq('64')
768
- expect(@plugin["network"]["settings"]['net.inet6.ip6.maxfragpackets']).to eq('1536')
769
- expect(@plugin["network"]["settings"]['net.inet6.ip6.accept_rtadv']).to eq('0')
770
- expect(@plugin["network"]["settings"]['net.inet6.ip6.keepfaith']).to eq('0')
771
- expect(@plugin["network"]["settings"]['net.inet6.ip6.log_interval']).to eq('5')
772
- expect(@plugin["network"]["settings"]['net.inet6.ip6.hdrnestlimit']).to eq('15')
773
- expect(@plugin["network"]["settings"]['net.inet6.ip6.dad_count']).to eq('1')
774
- expect(@plugin["network"]["settings"]['net.inet6.ip6.auto_flowlabel']).to eq('1')
775
- expect(@plugin["network"]["settings"]['net.inet6.ip6.defmcasthlim']).to eq('1')
776
- expect(@plugin["network"]["settings"]['net.inet6.ip6.gifhlim']).to eq('0')
777
- expect(@plugin["network"]["settings"]['net.inet6.ip6.kame_version']).to eq('2009/apple-darwin')
778
- expect(@plugin["network"]["settings"]['net.inet6.ip6.use_deprecated']).to eq('1')
779
- expect(@plugin["network"]["settings"]['net.inet6.ip6.rr_prune']).to eq('5')
780
- expect(@plugin["network"]["settings"]['net.inet6.ip6.v6only']).to eq('0')
781
- expect(@plugin["network"]["settings"]['net.inet6.ip6.rtexpire']).to eq('3600')
782
- expect(@plugin["network"]["settings"]['net.inet6.ip6.rtminexpire']).to eq('10')
783
- expect(@plugin["network"]["settings"]['net.inet6.ip6.rtmaxcache']).to eq('128')
784
- expect(@plugin["network"]["settings"]['net.inet6.ip6.use_tempaddr']).to eq('1')
785
- expect(@plugin["network"]["settings"]['net.inet6.ip6.temppltime']).to eq('86400')
786
- expect(@plugin["network"]["settings"]['net.inet6.ip6.tempvltime']).to eq('604800')
787
- expect(@plugin["network"]["settings"]['net.inet6.ip6.auto_linklocal']).to eq('1')
788
- expect(@plugin["network"]["settings"]['net.inet6.ip6.prefer_tempaddr']).to eq('1')
789
- expect(@plugin["network"]["settings"]['net.inet6.ip6.use_defaultzone']).to eq('0')
790
- expect(@plugin["network"]["settings"]['net.inet6.ip6.maxfrags']).to eq('12288')
791
- expect(@plugin["network"]["settings"]['net.inet6.ip6.mcast_pmtu']).to eq('0')
792
- expect(@plugin["network"]["settings"]['net.inet6.ip6.neighborgcthresh']).to eq('1024')
793
- expect(@plugin["network"]["settings"]['net.inet6.ip6.maxifprefixes']).to eq('16')
794
- expect(@plugin["network"]["settings"]['net.inet6.ip6.maxifdefrouters']).to eq('16')
795
- expect(@plugin["network"]["settings"]['net.inet6.ip6.maxdynroutes']).to eq('1024')
796
- expect(@plugin["network"]["settings"]['net.inet6.ip6.fw.enable']).to eq('1')
797
- expect(@plugin["network"]["settings"]['net.inet6.ip6.fw.debug']).to eq('0')
798
- expect(@plugin["network"]["settings"]['net.inet6.ip6.fw.verbose']).to eq('0')
799
- expect(@plugin["network"]["settings"]['net.inet6.ip6.fw.verbose_limit']).to eq('0')
800
- expect(@plugin["network"]["settings"]['net.inet6.ip6.scopedroute']).to eq('1')
801
- expect(@plugin["network"]["settings"]['net.inet6.ip6.select_srcif_debug']).to eq('0')
802
- expect(@plugin["network"]["settings"]['net.inet6.ip6.mcast.maxgrpsrc']).to eq('512')
803
- expect(@plugin["network"]["settings"]['net.inet6.ip6.mcast.maxsocksrc']).to eq('128')
804
- expect(@plugin["network"]["settings"]['net.inet6.ip6.mcast.loop']).to eq('1')
805
- expect(@plugin["network"]["settings"]['net.inet6.ip6.only_allow_rfc4193_prefixes']).to eq('0')
806
- expect(@plugin["network"]["settings"]['net.inet6.ipsec6.def_policy']).to eq('1')
807
- expect(@plugin["network"]["settings"]['net.inet6.ipsec6.esp_trans_deflev']).to eq('1')
808
- expect(@plugin["network"]["settings"]['net.inet6.ipsec6.esp_net_deflev']).to eq('1')
809
- expect(@plugin["network"]["settings"]['net.inet6.ipsec6.ah_trans_deflev']).to eq('1')
810
- expect(@plugin["network"]["settings"]['net.inet6.ipsec6.ah_net_deflev']).to eq('1')
811
- expect(@plugin["network"]["settings"]['net.inet6.ipsec6.ecn']).to eq('0')
812
- expect(@plugin["network"]["settings"]['net.inet6.ipsec6.debug']).to eq('0')
813
- expect(@plugin["network"]["settings"]['net.inet6.ipsec6.esp_randpad']).to eq('-1')
814
- expect(@plugin["network"]["settings"]['net.inet6.icmp6.rediraccept']).to eq('1')
815
- expect(@plugin["network"]["settings"]['net.inet6.icmp6.redirtimeout']).to eq('600')
816
- expect(@plugin["network"]["settings"]['net.inet6.icmp6.nd6_prune']).to eq('1')
817
- expect(@plugin["network"]["settings"]['net.inet6.icmp6.nd6_delay']).to eq('5')
818
- expect(@plugin["network"]["settings"]['net.inet6.icmp6.nd6_umaxtries']).to eq('3')
819
- expect(@plugin["network"]["settings"]['net.inet6.icmp6.nd6_mmaxtries']).to eq('3')
820
- expect(@plugin["network"]["settings"]['net.inet6.icmp6.nd6_useloopback']).to eq('1')
821
- expect(@plugin["network"]["settings"]['net.inet6.icmp6.nodeinfo']).to eq('3')
822
- expect(@plugin["network"]["settings"]['net.inet6.icmp6.errppslimit']).to eq('500')
823
- expect(@plugin["network"]["settings"]['net.inet6.icmp6.nd6_maxnudhint']).to eq('0')
824
- expect(@plugin["network"]["settings"]['net.inet6.icmp6.nd6_debug']).to eq('0')
825
- expect(@plugin["network"]["settings"]['net.inet6.icmp6.nd6_accept_6to4']).to eq('1')
826
- expect(@plugin["network"]["settings"]['net.inet6.icmp6.nd6_onlink_ns_rfc4861']).to eq('0')
827
- expect(@plugin["network"]["settings"]['net.inet6.icmp6.nd6_llreach_base']).to eq('30')
828
- expect(@plugin["network"]["settings"]['net.inet6.mld.gsrdelay']).to eq('10')
829
- expect(@plugin["network"]["settings"]['net.inet6.mld.v1enable']).to eq('1')
830
- expect(@plugin["network"]["settings"]['net.inet6.mld.use_allow']).to eq('1')
831
- expect(@plugin["network"]["settings"]['net.inet6.mld.debug']).to eq('0')
832
- expect(@plugin["network"]["settings"]['net.idle.route.expire_timeout']).to eq('30')
833
- expect(@plugin["network"]["settings"]['net.idle.route.drain_interval']).to eq('10')
834
- expect(@plugin["network"]["settings"]['net.statistics']).to eq('1')
835
- expect(@plugin["network"]["settings"]['net.alf.loglevel']).to eq('55')
836
- expect(@plugin["network"]["settings"]['net.alf.perm']).to eq('0')
837
- expect(@plugin["network"]["settings"]['net.alf.defaultaction']).to eq('1')
838
- expect(@plugin["network"]["settings"]['net.alf.mqcount']).to eq('0')
839
- expect(@plugin["network"]["settings"]['net.smb.fs.version']).to eq('107000')
840
- expect(@plugin["network"]["settings"]['net.smb.fs.loglevel']).to eq('0')
841
- expect(@plugin["network"]["settings"]['net.smb.fs.kern_ntlmssp']).to eq('0')
842
- expect(@plugin["network"]["settings"]['net.smb.fs.kern_deprecatePreXPServers']).to eq('1')
843
- expect(@plugin["network"]["settings"]['net.smb.fs.kern_deadtimer']).to eq('60')
844
- expect(@plugin["network"]["settings"]['net.smb.fs.kern_hard_deadtimer']).to eq('600')
845
- expect(@plugin["network"]["settings"]['net.smb.fs.kern_soft_deadtimer']).to eq('30')
846
- expect(@plugin["network"]["settings"]['net.smb.fs.tcpsndbuf']).to eq('261120')
847
- expect(@plugin["network"]["settings"]['net.smb.fs.tcprcvbuf']).to eq('261120')
553
+ expect(@plugin["network"]["settings"]["net.local.stream.sendspace"]).to eq("8192")
554
+ expect(@plugin["network"]["settings"]["net.local.stream.recvspace"]).to eq("8192")
555
+ expect(@plugin["network"]["settings"]["net.local.stream.tracemdns"]).to eq("0")
556
+ expect(@plugin["network"]["settings"]["net.local.dgram.maxdgram"]).to eq("2048")
557
+ expect(@plugin["network"]["settings"]["net.local.dgram.recvspace"]).to eq("4096")
558
+ expect(@plugin["network"]["settings"]["net.local.inflight"]).to eq("0")
559
+ expect(@plugin["network"]["settings"]["net.inet.ip.portrange.lowfirst"]).to eq("1023")
560
+ expect(@plugin["network"]["settings"]["net.inet.ip.portrange.lowlast"]).to eq("600")
561
+ expect(@plugin["network"]["settings"]["net.inet.ip.portrange.first"]).to eq("49152")
562
+ expect(@plugin["network"]["settings"]["net.inet.ip.portrange.last"]).to eq("65535")
563
+ expect(@plugin["network"]["settings"]["net.inet.ip.portrange.hifirst"]).to eq("49152")
564
+ expect(@plugin["network"]["settings"]["net.inet.ip.portrange.hilast"]).to eq("65535")
565
+ expect(@plugin["network"]["settings"]["net.inet.ip.forwarding"]).to eq("1")
566
+ expect(@plugin["network"]["settings"]["net.inet.ip.redirect"]).to eq("1")
567
+ expect(@plugin["network"]["settings"]["net.inet.ip.ttl"]).to eq("64")
568
+ expect(@plugin["network"]["settings"]["net.inet.ip.rtexpire"]).to eq("12")
569
+ expect(@plugin["network"]["settings"]["net.inet.ip.rtminexpire"]).to eq("10")
570
+ expect(@plugin["network"]["settings"]["net.inet.ip.rtmaxcache"]).to eq("128")
571
+ expect(@plugin["network"]["settings"]["net.inet.ip.sourceroute"]).to eq("0")
572
+ expect(@plugin["network"]["settings"]["net.inet.ip.intr_queue_maxlen"]).to eq("50")
573
+ expect(@plugin["network"]["settings"]["net.inet.ip.intr_queue_drops"]).to eq("0")
574
+ expect(@plugin["network"]["settings"]["net.inet.ip.accept_sourceroute"]).to eq("0")
575
+ expect(@plugin["network"]["settings"]["net.inet.ip.keepfaith"]).to eq("0")
576
+ expect(@plugin["network"]["settings"]["net.inet.ip.gifttl"]).to eq("30")
577
+ expect(@plugin["network"]["settings"]["net.inet.ip.subnets_are_local"]).to eq("0")
578
+ expect(@plugin["network"]["settings"]["net.inet.ip.mcast.maxgrpsrc"]).to eq("512")
579
+ expect(@plugin["network"]["settings"]["net.inet.ip.mcast.maxsocksrc"]).to eq("128")
580
+ expect(@plugin["network"]["settings"]["net.inet.ip.mcast.loop"]).to eq("1")
581
+ expect(@plugin["network"]["settings"]["net.inet.ip.check_route_selfref"]).to eq("1")
582
+ expect(@plugin["network"]["settings"]["net.inet.ip.use_route_genid"]).to eq("1")
583
+ expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.hash_size"]).to eq("64")
584
+ expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.curr_time"]).to eq("0")
585
+ expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.ready_heap"]).to eq("0")
586
+ expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.extract_heap"]).to eq("0")
587
+ expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.searches"]).to eq("0")
588
+ expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.search_steps"]).to eq("0")
589
+ expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.expire"]).to eq("1")
590
+ expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.max_chain_len"]).to eq("16")
591
+ expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.red_lookup_depth"]).to eq("256")
592
+ expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.red_avg_pkt_size"]).to eq("512")
593
+ expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.red_max_pkt_size"]).to eq("1500")
594
+ expect(@plugin["network"]["settings"]["net.inet.ip.dummynet.debug"]).to eq("0")
595
+ expect(@plugin["network"]["settings"]["net.inet.ip.fw.enable"]).to eq("1")
596
+ expect(@plugin["network"]["settings"]["net.inet.ip.fw.autoinc_step"]).to eq("100")
597
+ expect(@plugin["network"]["settings"]["net.inet.ip.fw.one_pass"]).to eq("0")
598
+ expect(@plugin["network"]["settings"]["net.inet.ip.fw.debug"]).to eq("0")
599
+ expect(@plugin["network"]["settings"]["net.inet.ip.fw.verbose"]).to eq("0")
600
+ expect(@plugin["network"]["settings"]["net.inet.ip.fw.verbose_limit"]).to eq("0")
601
+ expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_buckets"]).to eq("256")
602
+ expect(@plugin["network"]["settings"]["net.inet.ip.fw.curr_dyn_buckets"]).to eq("256")
603
+ expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_count"]).to eq("0")
604
+ expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_max"]).to eq("4096")
605
+ expect(@plugin["network"]["settings"]["net.inet.ip.fw.static_count"]).to eq("2")
606
+ expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_ack_lifetime"]).to eq("300")
607
+ expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_syn_lifetime"]).to eq("20")
608
+ expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_fin_lifetime"]).to eq("1")
609
+ expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_rst_lifetime"]).to eq("1")
610
+ expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_udp_lifetime"]).to eq("10")
611
+ expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_short_lifetime"]).to eq("5")
612
+ expect(@plugin["network"]["settings"]["net.inet.ip.fw.dyn_keepalive"]).to eq("1")
613
+ expect(@plugin["network"]["settings"]["net.inet.ip.maxfragpackets"]).to eq("1536")
614
+ expect(@plugin["network"]["settings"]["net.inet.ip.maxfragsperpacket"]).to eq("128")
615
+ expect(@plugin["network"]["settings"]["net.inet.ip.maxfrags"]).to eq("3072")
616
+ expect(@plugin["network"]["settings"]["net.inet.ip.scopedroute"]).to eq("1")
617
+ expect(@plugin["network"]["settings"]["net.inet.ip.check_interface"]).to eq("0")
618
+ expect(@plugin["network"]["settings"]["net.inet.ip.linklocal.in.allowbadttl"]).to eq("1")
619
+ expect(@plugin["network"]["settings"]["net.inet.ip.random_id"]).to eq("1")
620
+ expect(@plugin["network"]["settings"]["net.inet.ip.maxchainsent"]).to eq("0")
621
+ expect(@plugin["network"]["settings"]["net.inet.ip.select_srcif_debug"]).to eq("0")
622
+ expect(@plugin["network"]["settings"]["net.inet.icmp.maskrepl"]).to eq("0")
623
+ expect(@plugin["network"]["settings"]["net.inet.icmp.icmplim"]).to eq("250")
624
+ expect(@plugin["network"]["settings"]["net.inet.icmp.timestamp"]).to eq("0")
625
+ expect(@plugin["network"]["settings"]["net.inet.icmp.drop_redirect"]).to eq("0")
626
+ expect(@plugin["network"]["settings"]["net.inet.icmp.log_redirect"]).to eq("0")
627
+ expect(@plugin["network"]["settings"]["net.inet.icmp.bmcastecho"]).to eq("1")
628
+ expect(@plugin["network"]["settings"]["net.inet.igmp.recvifkludge"]).to eq("1")
629
+ expect(@plugin["network"]["settings"]["net.inet.igmp.sendra"]).to eq("1")
630
+ expect(@plugin["network"]["settings"]["net.inet.igmp.sendlocal"]).to eq("1")
631
+ expect(@plugin["network"]["settings"]["net.inet.igmp.v1enable"]).to eq("1")
632
+ expect(@plugin["network"]["settings"]["net.inet.igmp.v2enable"]).to eq("1")
633
+ expect(@plugin["network"]["settings"]["net.inet.igmp.legacysupp"]).to eq("0")
634
+ expect(@plugin["network"]["settings"]["net.inet.igmp.default_version"]).to eq("3")
635
+ expect(@plugin["network"]["settings"]["net.inet.igmp.gsrdelay"]).to eq("10")
636
+ expect(@plugin["network"]["settings"]["net.inet.igmp.debug"]).to eq("0")
637
+ expect(@plugin["network"]["settings"]["net.inet.tcp.rfc1323"]).to eq("1")
638
+ expect(@plugin["network"]["settings"]["net.inet.tcp.rfc1644"]).to eq("0")
639
+ expect(@plugin["network"]["settings"]["net.inet.tcp.mssdflt"]).to eq("512")
640
+ expect(@plugin["network"]["settings"]["net.inet.tcp.keepidle"]).to eq("7200000")
641
+ expect(@plugin["network"]["settings"]["net.inet.tcp.keepintvl"]).to eq("75000")
642
+ expect(@plugin["network"]["settings"]["net.inet.tcp.sendspace"]).to eq("65536")
643
+ expect(@plugin["network"]["settings"]["net.inet.tcp.recvspace"]).to eq("65536")
644
+ expect(@plugin["network"]["settings"]["net.inet.tcp.keepinit"]).to eq("75000")
645
+ expect(@plugin["network"]["settings"]["net.inet.tcp.v6mssdflt"]).to eq("1024")
646
+ expect(@plugin["network"]["settings"]["net.inet.tcp.log_in_vain"]).to eq("0")
647
+ expect(@plugin["network"]["settings"]["net.inet.tcp.blackhole"]).to eq("0")
648
+ expect(@plugin["network"]["settings"]["net.inet.tcp.delayed_ack"]).to eq("3")
649
+ expect(@plugin["network"]["settings"]["net.inet.tcp.tcp_lq_overflow"]).to eq("1")
650
+ expect(@plugin["network"]["settings"]["net.inet.tcp.recvbg"]).to eq("0")
651
+ expect(@plugin["network"]["settings"]["net.inet.tcp.drop_synfin"]).to eq("1")
652
+ expect(@plugin["network"]["settings"]["net.inet.tcp.reass.maxsegments"]).to eq("3072")
653
+ expect(@plugin["network"]["settings"]["net.inet.tcp.reass.cursegments"]).to eq("0")
654
+ expect(@plugin["network"]["settings"]["net.inet.tcp.reass.overflows"]).to eq("0")
655
+ expect(@plugin["network"]["settings"]["net.inet.tcp.slowlink_wsize"]).to eq("8192")
656
+ expect(@plugin["network"]["settings"]["net.inet.tcp.maxseg_unacked"]).to eq("8")
657
+ expect(@plugin["network"]["settings"]["net.inet.tcp.rfc3465"]).to eq("1")
658
+ expect(@plugin["network"]["settings"]["net.inet.tcp.rfc3465_lim2"]).to eq("1")
659
+ expect(@plugin["network"]["settings"]["net.inet.tcp.rtt_samples_per_slot"]).to eq("20")
660
+ expect(@plugin["network"]["settings"]["net.inet.tcp.recv_allowed_iaj"]).to eq("5")
661
+ expect(@plugin["network"]["settings"]["net.inet.tcp.acc_iaj_high_thresh"]).to eq("100")
662
+ expect(@plugin["network"]["settings"]["net.inet.tcp.rexmt_thresh"]).to eq("2")
663
+ expect(@plugin["network"]["settings"]["net.inet.tcp.path_mtu_discovery"]).to eq("1")
664
+ expect(@plugin["network"]["settings"]["net.inet.tcp.slowstart_flightsize"]).to eq("1")
665
+ expect(@plugin["network"]["settings"]["net.inet.tcp.local_slowstart_flightsize"]).to eq("8")
666
+ expect(@plugin["network"]["settings"]["net.inet.tcp.tso"]).to eq("1")
667
+ expect(@plugin["network"]["settings"]["net.inet.tcp.ecn_initiate_out"]).to eq("0")
668
+ expect(@plugin["network"]["settings"]["net.inet.tcp.ecn_negotiate_in"]).to eq("0")
669
+ expect(@plugin["network"]["settings"]["net.inet.tcp.packetchain"]).to eq("50")
670
+ expect(@plugin["network"]["settings"]["net.inet.tcp.socket_unlocked_on_output"]).to eq("1")
671
+ expect(@plugin["network"]["settings"]["net.inet.tcp.rfc3390"]).to eq("1")
672
+ expect(@plugin["network"]["settings"]["net.inet.tcp.min_iaj_win"]).to eq("4")
673
+ expect(@plugin["network"]["settings"]["net.inet.tcp.acc_iaj_react_limit"]).to eq("200")
674
+ expect(@plugin["network"]["settings"]["net.inet.tcp.sack"]).to eq("1")
675
+ expect(@plugin["network"]["settings"]["net.inet.tcp.sack_maxholes"]).to eq("128")
676
+ expect(@plugin["network"]["settings"]["net.inet.tcp.sack_globalmaxholes"]).to eq("65536")
677
+ expect(@plugin["network"]["settings"]["net.inet.tcp.sack_globalholes"]).to eq("0")
678
+ expect(@plugin["network"]["settings"]["net.inet.tcp.minmss"]).to eq("216")
679
+ expect(@plugin["network"]["settings"]["net.inet.tcp.minmssoverload"]).to eq("0")
680
+ expect(@plugin["network"]["settings"]["net.inet.tcp.do_tcpdrain"]).to eq("0")
681
+ expect(@plugin["network"]["settings"]["net.inet.tcp.pcbcount"]).to eq("86")
682
+ expect(@plugin["network"]["settings"]["net.inet.tcp.icmp_may_rst"]).to eq("1")
683
+ expect(@plugin["network"]["settings"]["net.inet.tcp.strict_rfc1948"]).to eq("0")
684
+ expect(@plugin["network"]["settings"]["net.inet.tcp.isn_reseed_interval"]).to eq("0")
685
+ expect(@plugin["network"]["settings"]["net.inet.tcp.background_io_enabled"]).to eq("1")
686
+ expect(@plugin["network"]["settings"]["net.inet.tcp.rtt_min"]).to eq("100")
687
+ expect(@plugin["network"]["settings"]["net.inet.tcp.rexmt_slop"]).to eq("200")
688
+ expect(@plugin["network"]["settings"]["net.inet.tcp.randomize_ports"]).to eq("0")
689
+ expect(@plugin["network"]["settings"]["net.inet.tcp.newreno_sockets"]).to eq("81")
690
+ expect(@plugin["network"]["settings"]["net.inet.tcp.background_sockets"]).to eq("-1")
691
+ expect(@plugin["network"]["settings"]["net.inet.tcp.tcbhashsize"]).to eq("4096")
692
+ expect(@plugin["network"]["settings"]["net.inet.tcp.background_io_trigger"]).to eq("5")
693
+ expect(@plugin["network"]["settings"]["net.inet.tcp.msl"]).to eq("15000")
694
+ expect(@plugin["network"]["settings"]["net.inet.tcp.max_persist_timeout"]).to eq("0")
695
+ expect(@plugin["network"]["settings"]["net.inet.tcp.always_keepalive"]).to eq("0")
696
+ expect(@plugin["network"]["settings"]["net.inet.tcp.timer_fastmode_idlemax"]).to eq("20")
697
+ expect(@plugin["network"]["settings"]["net.inet.tcp.broken_peer_syn_rxmit_thres"]).to eq("7")
698
+ expect(@plugin["network"]["settings"]["net.inet.tcp.tcp_timer_advanced"]).to eq("5")
699
+ expect(@plugin["network"]["settings"]["net.inet.tcp.tcp_resched_timerlist"]).to eq("12209")
700
+ expect(@plugin["network"]["settings"]["net.inet.tcp.pmtud_blackhole_detection"]).to eq("1")
701
+ expect(@plugin["network"]["settings"]["net.inet.tcp.pmtud_blackhole_mss"]).to eq("1200")
702
+ expect(@plugin["network"]["settings"]["net.inet.tcp.timer_fastquantum"]).to eq("100")
703
+ expect(@plugin["network"]["settings"]["net.inet.tcp.timer_slowquantum"]).to eq("500")
704
+ expect(@plugin["network"]["settings"]["net.inet.tcp.win_scale_factor"]).to eq("3")
705
+ expect(@plugin["network"]["settings"]["net.inet.tcp.sockthreshold"]).to eq("64")
706
+ expect(@plugin["network"]["settings"]["net.inet.tcp.bg_target_qdelay"]).to eq("100")
707
+ expect(@plugin["network"]["settings"]["net.inet.tcp.bg_allowed_increase"]).to eq("2")
708
+ expect(@plugin["network"]["settings"]["net.inet.tcp.bg_tether_shift"]).to eq("1")
709
+ expect(@plugin["network"]["settings"]["net.inet.tcp.bg_ss_fltsz"]).to eq("2")
710
+ expect(@plugin["network"]["settings"]["net.inet.udp.checksum"]).to eq("1")
711
+ expect(@plugin["network"]["settings"]["net.inet.udp.maxdgram"]).to eq("9216")
712
+ expect(@plugin["network"]["settings"]["net.inet.udp.recvspace"]).to eq("42080")
713
+ expect(@plugin["network"]["settings"]["net.inet.udp.log_in_vain"]).to eq("0")
714
+ expect(@plugin["network"]["settings"]["net.inet.udp.blackhole"]).to eq("0")
715
+ expect(@plugin["network"]["settings"]["net.inet.udp.pcbcount"]).to eq("72")
716
+ expect(@plugin["network"]["settings"]["net.inet.udp.randomize_ports"]).to eq("1")
717
+ expect(@plugin["network"]["settings"]["net.inet.ipsec.def_policy"]).to eq("1")
718
+ expect(@plugin["network"]["settings"]["net.inet.ipsec.esp_trans_deflev"]).to eq("1")
719
+ expect(@plugin["network"]["settings"]["net.inet.ipsec.esp_net_deflev"]).to eq("1")
720
+ expect(@plugin["network"]["settings"]["net.inet.ipsec.ah_trans_deflev"]).to eq("1")
721
+ expect(@plugin["network"]["settings"]["net.inet.ipsec.ah_net_deflev"]).to eq("1")
722
+ expect(@plugin["network"]["settings"]["net.inet.ipsec.ah_cleartos"]).to eq("1")
723
+ expect(@plugin["network"]["settings"]["net.inet.ipsec.ah_offsetmask"]).to eq("0")
724
+ expect(@plugin["network"]["settings"]["net.inet.ipsec.dfbit"]).to eq("0")
725
+ expect(@plugin["network"]["settings"]["net.inet.ipsec.ecn"]).to eq("0")
726
+ expect(@plugin["network"]["settings"]["net.inet.ipsec.debug"]).to eq("0")
727
+ expect(@plugin["network"]["settings"]["net.inet.ipsec.esp_randpad"]).to eq("-1")
728
+ expect(@plugin["network"]["settings"]["net.inet.ipsec.bypass"]).to eq("0")
729
+ expect(@plugin["network"]["settings"]["net.inet.ipsec.esp_port"]).to eq("4500")
730
+ expect(@plugin["network"]["settings"]["net.inet.raw.maxdgram"]).to eq("8192")
731
+ expect(@plugin["network"]["settings"]["net.inet.raw.recvspace"]).to eq("8192")
732
+ expect(@plugin["network"]["settings"]["net.link.generic.system.ifcount"]).to eq("10")
733
+ expect(@plugin["network"]["settings"]["net.link.generic.system.dlil_verbose"]).to eq("0")
734
+ expect(@plugin["network"]["settings"]["net.link.generic.system.multi_threaded_input"]).to eq("1")
735
+ expect(@plugin["network"]["settings"]["net.link.generic.system.dlil_input_sanity_check"]).to eq("0")
736
+ expect(@plugin["network"]["settings"]["net.link.ether.inet.prune_intvl"]).to eq("300")
737
+ expect(@plugin["network"]["settings"]["net.link.ether.inet.max_age"]).to eq("1200")
738
+ expect(@plugin["network"]["settings"]["net.link.ether.inet.host_down_time"]).to eq("20")
739
+ expect(@plugin["network"]["settings"]["net.link.ether.inet.apple_hwcksum_tx"]).to eq("1")
740
+ expect(@plugin["network"]["settings"]["net.link.ether.inet.apple_hwcksum_rx"]).to eq("1")
741
+ expect(@plugin["network"]["settings"]["net.link.ether.inet.arp_llreach_base"]).to eq("30")
742
+ expect(@plugin["network"]["settings"]["net.link.ether.inet.maxtries"]).to eq("5")
743
+ expect(@plugin["network"]["settings"]["net.link.ether.inet.useloopback"]).to eq("1")
744
+ expect(@plugin["network"]["settings"]["net.link.ether.inet.proxyall"]).to eq("0")
745
+ expect(@plugin["network"]["settings"]["net.link.ether.inet.sendllconflict"]).to eq("0")
746
+ expect(@plugin["network"]["settings"]["net.link.ether.inet.log_arp_warnings"]).to eq("0")
747
+ expect(@plugin["network"]["settings"]["net.link.ether.inet.keep_announcements"]).to eq("1")
748
+ expect(@plugin["network"]["settings"]["net.link.ether.inet.send_conflicting_probes"]).to eq("1")
749
+ expect(@plugin["network"]["settings"]["net.link.bridge.log_stp"]).to eq("0")
750
+ expect(@plugin["network"]["settings"]["net.link.bridge.debug"]).to eq("0")
751
+ expect(@plugin["network"]["settings"]["net.key.debug"]).to eq("0")
752
+ expect(@plugin["network"]["settings"]["net.key.spi_trycnt"]).to eq("1000")
753
+ expect(@plugin["network"]["settings"]["net.key.spi_minval"]).to eq("256")
754
+ expect(@plugin["network"]["settings"]["net.key.spi_maxval"]).to eq("268435455")
755
+ expect(@plugin["network"]["settings"]["net.key.int_random"]).to eq("60")
756
+ expect(@plugin["network"]["settings"]["net.key.larval_lifetime"]).to eq("30")
757
+ expect(@plugin["network"]["settings"]["net.key.blockacq_count"]).to eq("10")
758
+ expect(@plugin["network"]["settings"]["net.key.blockacq_lifetime"]).to eq("20")
759
+ expect(@plugin["network"]["settings"]["net.key.esp_keymin"]).to eq("256")
760
+ expect(@plugin["network"]["settings"]["net.key.esp_auth"]).to eq("0")
761
+ expect(@plugin["network"]["settings"]["net.key.ah_keymin"]).to eq("128")
762
+ expect(@plugin["network"]["settings"]["net.key.prefered_oldsa"]).to eq("0")
763
+ expect(@plugin["network"]["settings"]["net.key.natt_keepalive_interval"]).to eq("20")
764
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.forwarding"]).to eq("0")
765
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.redirect"]).to eq("1")
766
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.hlim"]).to eq("64")
767
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.maxfragpackets"]).to eq("1536")
768
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.accept_rtadv"]).to eq("0")
769
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.keepfaith"]).to eq("0")
770
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.log_interval"]).to eq("5")
771
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.hdrnestlimit"]).to eq("15")
772
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.dad_count"]).to eq("1")
773
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.auto_flowlabel"]).to eq("1")
774
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.defmcasthlim"]).to eq("1")
775
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.gifhlim"]).to eq("0")
776
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.kame_version"]).to eq("2009/apple-darwin")
777
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.use_deprecated"]).to eq("1")
778
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.rr_prune"]).to eq("5")
779
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.v6only"]).to eq("0")
780
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.rtexpire"]).to eq("3600")
781
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.rtminexpire"]).to eq("10")
782
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.rtmaxcache"]).to eq("128")
783
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.use_tempaddr"]).to eq("1")
784
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.temppltime"]).to eq("86400")
785
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.tempvltime"]).to eq("604800")
786
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.auto_linklocal"]).to eq("1")
787
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.prefer_tempaddr"]).to eq("1")
788
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.use_defaultzone"]).to eq("0")
789
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.maxfrags"]).to eq("12288")
790
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.mcast_pmtu"]).to eq("0")
791
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.neighborgcthresh"]).to eq("1024")
792
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.maxifprefixes"]).to eq("16")
793
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.maxifdefrouters"]).to eq("16")
794
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.maxdynroutes"]).to eq("1024")
795
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.fw.enable"]).to eq("1")
796
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.fw.debug"]).to eq("0")
797
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.fw.verbose"]).to eq("0")
798
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.fw.verbose_limit"]).to eq("0")
799
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.scopedroute"]).to eq("1")
800
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.select_srcif_debug"]).to eq("0")
801
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.mcast.maxgrpsrc"]).to eq("512")
802
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.mcast.maxsocksrc"]).to eq("128")
803
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.mcast.loop"]).to eq("1")
804
+ expect(@plugin["network"]["settings"]["net.inet6.ip6.only_allow_rfc4193_prefixes"]).to eq("0")
805
+ expect(@plugin["network"]["settings"]["net.inet6.ipsec6.def_policy"]).to eq("1")
806
+ expect(@plugin["network"]["settings"]["net.inet6.ipsec6.esp_trans_deflev"]).to eq("1")
807
+ expect(@plugin["network"]["settings"]["net.inet6.ipsec6.esp_net_deflev"]).to eq("1")
808
+ expect(@plugin["network"]["settings"]["net.inet6.ipsec6.ah_trans_deflev"]).to eq("1")
809
+ expect(@plugin["network"]["settings"]["net.inet6.ipsec6.ah_net_deflev"]).to eq("1")
810
+ expect(@plugin["network"]["settings"]["net.inet6.ipsec6.ecn"]).to eq("0")
811
+ expect(@plugin["network"]["settings"]["net.inet6.ipsec6.debug"]).to eq("0")
812
+ expect(@plugin["network"]["settings"]["net.inet6.ipsec6.esp_randpad"]).to eq("-1")
813
+ expect(@plugin["network"]["settings"]["net.inet6.icmp6.rediraccept"]).to eq("1")
814
+ expect(@plugin["network"]["settings"]["net.inet6.icmp6.redirtimeout"]).to eq("600")
815
+ expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_prune"]).to eq("1")
816
+ expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_delay"]).to eq("5")
817
+ expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_umaxtries"]).to eq("3")
818
+ expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_mmaxtries"]).to eq("3")
819
+ expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_useloopback"]).to eq("1")
820
+ expect(@plugin["network"]["settings"]["net.inet6.icmp6.nodeinfo"]).to eq("3")
821
+ expect(@plugin["network"]["settings"]["net.inet6.icmp6.errppslimit"]).to eq("500")
822
+ expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_maxnudhint"]).to eq("0")
823
+ expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_debug"]).to eq("0")
824
+ expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_accept_6to4"]).to eq("1")
825
+ expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_onlink_ns_rfc4861"]).to eq("0")
826
+ expect(@plugin["network"]["settings"]["net.inet6.icmp6.nd6_llreach_base"]).to eq("30")
827
+ expect(@plugin["network"]["settings"]["net.inet6.mld.gsrdelay"]).to eq("10")
828
+ expect(@plugin["network"]["settings"]["net.inet6.mld.v1enable"]).to eq("1")
829
+ expect(@plugin["network"]["settings"]["net.inet6.mld.use_allow"]).to eq("1")
830
+ expect(@plugin["network"]["settings"]["net.inet6.mld.debug"]).to eq("0")
831
+ expect(@plugin["network"]["settings"]["net.idle.route.expire_timeout"]).to eq("30")
832
+ expect(@plugin["network"]["settings"]["net.idle.route.drain_interval"]).to eq("10")
833
+ expect(@plugin["network"]["settings"]["net.statistics"]).to eq("1")
834
+ expect(@plugin["network"]["settings"]["net.alf.loglevel"]).to eq("55")
835
+ expect(@plugin["network"]["settings"]["net.alf.perm"]).to eq("0")
836
+ expect(@plugin["network"]["settings"]["net.alf.defaultaction"]).to eq("1")
837
+ expect(@plugin["network"]["settings"]["net.alf.mqcount"]).to eq("0")
838
+ expect(@plugin["network"]["settings"]["net.smb.fs.version"]).to eq("107000")
839
+ expect(@plugin["network"]["settings"]["net.smb.fs.loglevel"]).to eq("0")
840
+ expect(@plugin["network"]["settings"]["net.smb.fs.kern_ntlmssp"]).to eq("0")
841
+ expect(@plugin["network"]["settings"]["net.smb.fs.kern_deprecatePreXPServers"]).to eq("1")
842
+ expect(@plugin["network"]["settings"]["net.smb.fs.kern_deadtimer"]).to eq("60")
843
+ expect(@plugin["network"]["settings"]["net.smb.fs.kern_hard_deadtimer"]).to eq("600")
844
+ expect(@plugin["network"]["settings"]["net.smb.fs.kern_soft_deadtimer"]).to eq("30")
845
+ expect(@plugin["network"]["settings"]["net.smb.fs.tcpsndbuf"]).to eq("261120")
846
+ expect(@plugin["network"]["settings"]["net.smb.fs.tcprcvbuf"]).to eq("261120")
848
847
  end
849
848
  end
850
849
  end