Set NAME as well as DEVICE in ifcfg-*

Previously, only DEVICE was set in ifcfg-* files. This works fine
for the traditional network service under CentOS/RHEL/Fedora, but
for NetworkManager we need to have NAME. Fixing the redhat provider
to add it as well.

Change-Id: Ic29ce07a461913a3b70067ce642b1a03109f164b
Resolves: rhbz#1167326
This commit is contained in:
Javier Pena 2015-11-03 20:59:19 +01:00
parent 49b84bf9af
commit 4d92141aa3
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ module IFCFG
@ifcfg = {}
set(seed)
set_key('DEVICE', @name)
set_key('NAME', @name)
set_key('DEVICETYPE', 'ovs')
replace_key('BOOTPROTO', 'OVSBOOTPROTO') if self.class == IFCFG::Bridge
end