Project

General

Profile

Actions

Feature #11250

closed

Remove uniqueness check from network address validator in subnet.rb

Added by larry campbell over 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Network
Target version:
Difficulty:
trivial
Triaged:
Fixed in Releases:
Found in Releases:

Description

I have a use case where we have a 20-bit block of IP addresses (4,096) that we cannot further subnet. The router is maintained by another organization, and we already have hundreds of devices using this network, mostly statically assigned. We currently block off ranges in a spreadsheet for each customer, and they maintain their own IP Addresses.

We now want to implement a Foreman server to manage the IP addressing, and would like to limit the range of available IPs for each customer.

This is a simple alternative to #10949

The proposed change is this:

edit: /usr/share/foreman/app/models/subnet.rb

Change

validates :network, :uniqueness => true,
                    :format => {:with => Net::Validations::IP_REGEXP}

to

validates :network, :format => {:with => Net::Validations::IP_REGEXP}


Related issues 2 (1 open1 closed)

Related to Foreman - Feature #10949: Create a new object called "ip range" to allow for more than one assignable ip address rangesNew06/29/2015Actions
Related to Foreman - Bug #15508: Network address uniqueness enforced, duplicates should be possibleClosedTimo Goebel06/23/2016Actions
Actions #2

Updated by Dominic Cleal over 8 years ago

  • Category set to Network
  • Status changed from New to Ready For Testing
  • Assignee set to larry campbell
  • Pull request https://github.com/theforeman/foreman/pull/2585 added
  • Pull request deleted ()
Actions #3

Updated by Dominic Cleal over 8 years ago

  • Related to Feature #10949: Create a new object called "ip range" to allow for more than one assignable ip address ranges added
Actions #4

Updated by Dominic Cleal over 8 years ago

  • translation missing: en.field_release set to 63
Actions #5

Updated by larry campbell over 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #6

Updated by Dominic Cleal almost 8 years ago

  • Related to Bug #15508: Network address uniqueness enforced, duplicates should be possible added
Actions

Also available in: Atom PDF