Skip to content

Commit

Permalink
Use fcoe suffix when auto_vlan == 'yes'
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Mar 7, 2018
1 parent b8dd9bb commit fa43e9b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/clients/fcoe-client_auto.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,14 @@ def main
output = {}
ifcfg_file = ""
status_map = {}
if Ops.get_string(card, "fcoe_vlan", "") == FcoeClient.NOT_CONFIGURED
command = Builtins.sformat(
"fipvlan -c -s %1",
Ops.get_string(card, "dev_name", "")
)
dev_name = card["dev_name"]
if card["fcoe_vlan"] == FcoeClient.NOT_CONFIGURED
if card["auto_vlan"] == "yes"
command = "fipvlan -c -s -f '-fcoe' #{dev_name}"
else
command = "fipvlan -c -s #{dev_name}"
end

ifcfg_file = Builtins.sformat(
"/etc/sysconfig/network/ifcfg-%1.%2",
Ops.get_string(card, "dev_name", ""),
Expand Down

0 comments on commit fa43e9b

Please sign in to comment.