Skip to content

Commit

Permalink
bug-fix: get vlan interface from map
Browse files Browse the repository at this point in the history
  • Loading branch information
gabi2 committed Sep 4, 2013
1 parent 4c43b39 commit e64edbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/FcoeClient.rb
Expand Up @@ -899,13 +899,13 @@ def DetectNetworkCards
:from => "list",
:to => "list <string>"
)
) do |vlan_cfg_name|
) do |vlan_cfg|
# no ifcfg-<if>.<vlan> written for vlan = 0 (see WriteSysconfigFiles() )
if FileUtils.Exists(
Builtins.sformat(
"/etc/sysconfig/network/ifcfg-%1.%2",
card["dev_name"] || "",
vlan_cfg_name
vlan_cfg["vlan"] || ""
)
)
# status_map got from GetFcoeStatus doesn't belong to interface itself but to an VLAN
Expand Down

0 comments on commit e64edbd

Please sign in to comment.