Issue #2543 has been updated by Maciej Bliziński.
The output is:
<pre>
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index
inet 127.0.0.1 netmask ff000000
bge0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
inet 1.1.168.140 netmask fffffe00 broadcast 1.1.169.255
ether 0:1a:a0:a8:7f:55
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index
inet6 ::1/128
bge0: flags=2004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 2
inet6 fe80::21a:a0ff:fea8:7f55/10
ether 0:1a:a0:a8:7f:55
bge0:1: flags=2080841<UP,RUNNING,MULTICAST,ADDRCONF,IPv6> mtu 1500 index 2
inet6 1:0:1:6:21a:a0ff:fea8:7f55/64
# facter --version
1.5.6
</pre>
----------------------------------------
Bug #2543: Error messages with IPv6-enabled interfaces.
http://projects.reductivelabs.com/issues/2543
Author: Maciej Bliziński
Status: Needs more information
Priority: Normal
Assigned to: Paul Nasrat
Category: library
Target version:
Keywords:
Branch:
<pre>
cabbage ~ # facter --puppet
no such file to load -- ldap
ifconfig: status: SIOCGLIFFLAGS: bge0:1: no such interface
ifconfig: status: SIOCGLIFFLAGS: bge0:1: no such interface
ifconfig: status: SIOCGLIFFLAGS: bge0:1: no such interface
ifconfig: status: SIOCGLIFFLAGS: bge0:1: no such interface
ifconfig: status: SIOCGLIFFLAGS: bge0:1: no such interface
</pre>
A workaround would be to skip the IPv6 interface names:
<pre><code class="diff">
index 9fb7034..748bb1d 100644
--- a/lib/facter/util/ip.rb
+++ b/lib/facter/util/ip.rb
@@ -59,7 +59,7 @@ module Facter::Util::IP
when 'Linux', 'OpenBSD', 'NetBSD', 'FreeBSD', 'Darwin'
output = %x{/sbin/ifconfig -a}
when 'SunOS'
- output = %x{/usr/sbin/ifconfig -a}
+ output = %x{/usr/sbin/ifconfig -a4}
end
output
end
</code></pre>
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---