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:
parent
49b84bf9af
commit
4d92141aa3
@ -16,6 +16,7 @@ module IFCFG
|
|||||||
@ifcfg = {}
|
@ifcfg = {}
|
||||||
set(seed)
|
set(seed)
|
||||||
set_key('DEVICE', @name)
|
set_key('DEVICE', @name)
|
||||||
|
set_key('NAME', @name)
|
||||||
set_key('DEVICETYPE', 'ovs')
|
set_key('DEVICETYPE', 'ovs')
|
||||||
replace_key('BOOTPROTO', 'OVSBOOTPROTO') if self.class == IFCFG::Bridge
|
replace_key('BOOTPROTO', 'OVSBOOTPROTO') if self.class == IFCFG::Bridge
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user