3 %x{ip addr list}.each do |line|
4 next unless line =~ /\s+inet/
5 next if line =~ /scope (link|host)/
6 if line =~ /\s+inet\s+(\S+)\/\d\d .*/
15 Facter.add("v6ips") do
17 %x{ip addr list}.each do |line|
18 next unless line =~ /\s+inet/
19 next if line =~ /scope (link|host)/
20 if line =~ /\s+inet6\s+(\S+)\/\d\d .*/