diff options
author | Ben Hughes <ben@puppetlabs.com> | 2011-03-17 12:23:44 +1100 |
---|---|---|
committer | Jacob Helwig <jacob@puppetlabs.com> | 2011-03-17 15:12:41 -0700 |
commit | 3f0a3404894ea1835877856e20d60be4023706fc (patch) | |
tree | 2d5fe0f5d27aaad851bcc25871c3dd2fdb79cb8c /spec/unit | |
parent | 469d2a26a467c50af9f9732d7f98e8a01ecc369f (diff) | |
download | facter-3f0a3404894ea1835877856e20d60be4023706fc.tar.gz facter-3f0a3404894ea1835877856e20d60be4023706fc.tar.xz facter-3f0a3404894ea1835877856e20d60be4023706fc.zip |
(#6716) fix facter issues on OSX with ipv6 in macaddress.rb.
Due to "netstat -rn" returning multiple protocols (IPv4 and IPv6) the
"default_interface" can get more than one entry in to it, causing the
macaddress resolving to break. This limits it to just one interface.
Diffstat (limited to 'spec/unit')
-rwxr-xr-x | spec/unit/util/macaddress_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/util/macaddress_spec.rb b/spec/unit/util/macaddress_spec.rb index 98215c4..d255d20 100755 --- a/spec/unit/util/macaddress_spec.rb +++ b/spec/unit/util/macaddress_spec.rb @@ -9,7 +9,8 @@ describe "Darwin" do # version, iface, real macaddress, fallback macaddress ["9.8.0", 'en0', "00:17:f2:06:e4:2e", "00:17:f2:06:e4:2e"], ["10.3.0", 'en0', "00:17:f2:06:e3:c2", "00:17:f2:06:e3:c2"], - ["10.6.4", 'en1', "58:b0:35:7f:25:b3", "58:b0:35:fa:08:b1"] + ["10.6.4", 'en1', "58:b0:35:7f:25:b3", "58:b0:35:fa:08:b1"], + ["10.6.6_dualstack", "en1" , "00:25:00:48:19:ef" , "00:25:4b:ca:56:72"] ] test_cases.each do |version, default_iface, macaddress, fallback_macaddress| |