Skip to content

Commit

Permalink
Define the INTERFACETYPE when adding dummy interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator authored and mchf committed Mar 21, 2019
1 parent 285ad04 commit 66bba48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/LanItems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2154,7 +2154,7 @@ def Commit
# FIXME: INTERFACETYPE confuses sysconfig, bnc#458412
# Only test when newdev has enough info for GetTypeFromIfcfg to work.
implied_type = NetworkInterfaces.GetTypeFromIfcfg(newdev)
if !implied_type.nil? && implied_type != @type
if @type == "dummy" || !implied_type.nil? && implied_type != @type
newdev["INTERFACETYPE"] = @type
end

Expand Down

0 comments on commit 66bba48

Please sign in to comment.