Project

General

Profile

Bug #3481

Don't have to set a hostname for each interface, but it must be unique if it is set

Added by Aaron Stone almost 5 years ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Network
Target version:
Difficulty:
trivial
Triaged:
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

A machine can have additional interfaces, including BMC interfaces, and these may not necessarily have DNS entries.

Currently you can create interfaces with no Name field, but only one in the whole system because of the uniqueness constraint in Rails (not in the DB mind you).

I propose to weaken the constraint such that any number of interfaces can have blank Name field, but if set the field must be unique.

Associated revisions

Revision 18897b8c (diff)
Added by Aaron Stone almost 5 years ago

Fixes #3481 - Don't have to set a hostname for each interface, but it must be unique if it is set.

Revision 51acbf95 (diff)
Added by Aaron Stone almost 5 years ago

Fixes #3481 - Don't have to set a hostname for each interface, but it must be unique if it is set.

(cherry picked from commit 18897b8cbc9e83bbd70cb515c1704ce149d574f3)

Conflicts:
app/models/nic/managed.rb

History

#2 Updated by Dominic Cleal almost 5 years ago

  • Category set to Network
  • Status changed from New to Ready For Testing
  • Target version set to 1.15.0
  • Legacy Backlogs Release (now unused) set to 2

#3 Updated by Aaron Stone almost 5 years ago

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

#4 Updated by Aaron Stone almost 5 years ago

Could this ship in 1.3.1?

#5 Updated by Dominic Cleal almost 5 years ago

  • Legacy Backlogs Release (now unused) changed from 2 to 1

Sure, done!

Also available in: Atom PDF