components/puppet/files/solaris/lib/puppet/type/interface_properties.rb
changeset 2038 b64efc6f1fe1
parent 1921 489d0d0f656f
equal deleted inserted replaced
2037:3559e1505b2b 2038:b64efc6f1fe1
    51     end
    51     end
    52 
    52 
    53     newproperty(:properties) do
    53     newproperty(:properties) do
    54         desc "A hash table of propname=propvalue entries to apply to the
    54         desc "A hash table of propname=propvalue entries to apply to the
    55               interface"
    55               interface"
       
    56 
       
    57         def property_matches?(current, desired)
       
    58             desired.each do |key, value|
       
    59                 if current[key] != value
       
    60                     return :false
       
    61                 end
       
    62             end
       
    63             return :true
       
    64         end
    56     end
    65     end
    57 end
    66 end