3     def interfaces(options = {}, &block)
 
   6       networking = construct_attributes[:networking] || {}
 
   7       networking_interfaces = networking[:interfaces] || []
 
   9       networking_interfaces.each do |name,interface|
 
  10         if options[:role].nil? or interface[:role].to_s == options[:role].to_s
 
  11           if options[:family].nil? or interface[:family].to_s == options[:family].to_s
 
  13               interfaces << interface