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