Skip to content

Commit

Permalink
GetEthTypeFromSysfs returns correct type name for bridge device.
Browse files Browse the repository at this point in the history
The path was provided by Waldemar Spitz <wspitz@uni-bonn.de>
  • Loading branch information
mchf committed Dec 11, 2013
1 parent 06b59a2 commit 4ebc9cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/network/src/modules/NetworkInterfaces.rb
Expand Up @@ -260,7 +260,7 @@ def GetEthTypeFromSysfs(dev)
elsif FileUtils.Exists(Ops.add(sys_dir_path, "phy80211"))
return "wlan"
elsif FileUtils.Exists(Ops.add(sys_dir_path, "bridge"))
return "bridge"
return "br"
elsif FileUtils.Exists(Ops.add(sys_dir_path, "bonding"))
return "bond"
elsif FileUtils.Exists(Ops.add(sys_dir_path, "tun_flags"))
Expand Down

0 comments on commit 4ebc9cd

Please sign in to comment.