summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2007-11-05 20:40:31 +1100
committerJames Turnbull <james@lovedthanlost.net>2007-11-05 20:40:31 +1100
commitbe7c30b60414144d4238263fed5586283b30ebea (patch)
tree99322767973826a729b390a521af2eda5dfe38ff
parent74621b50655db2e91a850946150557e3cda411cc (diff)
downloadfacter-be7c30b60414144d4238263fed5586283b30ebea.tar.gz
facter-be7c30b60414144d4238263fed5586283b30ebea.tar.xz
facter-be7c30b60414144d4238263fed5586283b30ebea.zip
Fixed ticket #44
-rw-r--r--CHANGELOG4
-rw-r--r--lib/facter/ipmess.rb4
2 files changed, 6 insertions, 2 deletions
diff --git a/CHANGELOG b/CHANGELOG
index fdc5bba..998fc8e 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,7 @@
+?:
+ Fixed ticket #44 and allowed support for Xen multiple interfaces and aliased
+ interfaces. Supports both Linux and *BSD.
+
1.3.8:
Fixed Rdoc::usage bug on CentOS 5 - closed Puppet #753 and Facter #40
diff --git a/lib/facter/ipmess.rb b/lib/facter/ipmess.rb
index abee8a2..349d523 100644
--- a/lib/facter/ipmess.rb
+++ b/lib/facter/ipmess.rb
@@ -21,7 +21,7 @@ if Facter.kernel == "Linux"
output = %x{/sbin/ifconfig -a}
int = nil
- output.scan(/^(\w+)(\d+)/) { |str|
+ output.scan(/^(\w+)(\.|:?)(\d+)/) { |str|
output_int = %x{/sbin/ifconfig #{str}}
int = "#{str}"
tmp1 = nil
@@ -54,7 +54,7 @@ if Facter.kernel == "FreeBSD" || Facter.kernel == "OpenBSD" || Facter.kernel ==
output = %x{/sbin/ifconfig -a}
int = nil
- output.scan(/^(\w+)(\d+):/) { |str|
+ output.scan(/^(\w+)(\.|:?)(\d+):/) { |str|
output_int = %x{/sbin/ifconfig #{str}}
int = "#{str}"
tmp1 = nil