Actions
Feature #11250
closedRemove uniqueness check from network address validator in subnet.rb
Difficulty:
trivial
Triaged:
Pull request:
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}
Actions