core/chef/cookbooks/network/recipes/default.rb
# Silly little helper for sorting Rebar networks.
# Netowrks that use vlans and bridges will be handled later
Silly little helper for sorting Rebar networks.
Netowrks that use vlans and bridges will be handled later
Silly little helper for sorting Rebar networks . Netowrks that use vlans and bridges will be handled later
def net_weight(net)
  res = 0
  if net["use_vlan"] then res += 1 end
  if net["use_bridge"] then res += 1 end
  res
end
def net_weight ( net ) res = 0 if net [ "use_vlan" ] then res += 1 end if net [ "use_bridge" ] then res += 1 end res end
Silly little helper for sorting Rebar networks.
Silly little helper for sorting Rebar networks .
net
<not_specific>