Skip to content

Commit

Permalink
Fix "snabb lwaftr run" after lib.scheduling refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
wingo committed Dec 15, 2017
1 parent c7232a0 commit 3e7d2b5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/program/lwaftr/run/run.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,10 @@ function parse_args(args)
if opts.mirror then
assert(opts["on-a-stick"], "Mirror option is only valid in on-a-stick mode")
end
if opts["on-a-stick"] then
scheduling.pci_addrs = { v4 }
return opts, scheduling, conf_file, v4
else
scheduling.pci_addrs = { v4, v6 }
return opts, scheduling, conf_file, v4, v6
if opts["on-a-stick"] and v6 then
fatal("Options --on-a-stick and --v6 are mutually exclusive.")
end
return opts, scheduling, conf_file, v4, v6
end

-- Requires a V4V6 splitter if running in on-a-stick mode and VLAN tag values
Expand Down

0 comments on commit 3e7d2b5

Please sign in to comment.