# File lib/ohai/plugins/network.rb, line 123
def network_contains_address(address_to_match, ipaddress, iface)
  # address_to_match: String
  # ipaddress: IPAddress
  # iface: String
  if peer = network["interfaces"][iface]["addresses"][ipaddress.to_s][:peer]
    IPAddress(peer) == IPAddress(address_to_match)
  else
    ipaddress.include? IPAddress(address_to_match)
  end
end