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 almost 6 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

Also available in: Atom PDF