Skip to content

Commit

Permalink
Merge pull request snabbco#50 from dpino/lwaftr_nutmeg_fixrun
Browse files Browse the repository at this point in the history
Require 'lwaftr.lua' header after parsing arguments
  • Loading branch information
dpino committed Sep 30, 2015
2 parents 2b551aa + d199e87 commit 265e6c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/program/snabb_lwaftr/run/run.lua
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local Intel82599 = require("apps.intel.intel_app").Intel82599
local basic_apps = require("apps.basic.basic_apps")
local bt = require("apps.lwaftr.binding_table")
local conf = require("apps.lwaftr.conf")
local lwaftr = require("apps.lwaftr.lwaftr")
local lwaftr

local function show_usage(exit_code)
print(require("program.snabb_lwaftr.run.README_inc"))
Expand Down Expand Up @@ -94,6 +94,8 @@ end
function run(args)
-- It's essential to initialize the binding table before the aftrconf
local opts, bt_file, conf_file, v4_pci, v6_pci = parse_args(args)
-- FIXME: If header is included on the top, cannot run --help without being sudo
local lwaftr = require("apps.lwaftr.lwaftr")
bt.get_binding_table(bt_file)
local aftrconf = conf.get_aftrconf(conf_file)

Expand Down

0 comments on commit 265e6c3

Please sign in to comment.