1 module Puppet::Parser::Functions
2 # given an array of network addresses, return only the ipv6 addresses
3 newfunction(:filter_ipv6, :type => :rvalue) do |args|
6 raise Puppet::ParseError, "Argument is not an array." unless x.kind_of?(Array)
7 return x.reject{ |x| x !~ /:/}
12 # vim:set shiftwidth=2: