Project

General

Profile

Actions

Feature #34280

closed

Add `ip_include?` method to IPAM::Base that uses `IPAddr#include?` method

Added by Jan Matusz over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Network
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Related to: https://github.com/theforeman/foreman_discovery/pull/545

We need to be able to validate whether user sourced IP set in the form is included in the available subnet.
Initially we just ran `.include?` on a Range object generated through `subnet_range` method, however, this is extremely inefficient when used on huge subnets (specifically in this case, an IPv6 range inclusion check timed out).

This brought `IPAddr#include` to the spotlight.

Actions #1

Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/9036 added
Actions #2

Updated by The Foreman Bot over 2 years ago

  • Fixed in Releases 3.2.0 added
Actions #3

Updated by Jan Matusz over 2 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Amit Upadhye about 2 years ago

  • Category set to Network
Actions

Also available in: Atom PDF