Skip to content

Commit

Permalink
Appears that setting maac address on lo often works
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Cormack <[email protected]>
  • Loading branch information
justincormack committed Dec 30, 2015
1 parent 6e878a1 commit d14bd38
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/linux.lua
Original file line number Diff line number Diff line change
Expand Up @@ -566,12 +566,6 @@ test.netlink = {
assert(i.dummy0:down())
assert(i.dummy0:delete())
end,
test_interface_set_macaddr_fail = function()
local i = assert(nl.interfaces())
assert(i.lo, "expect to find lo")
local ok, err = nl.newlink(i.lo.index, 0, 0, 0, "address", "46:9d:c9:06:dd:dd")
assert(not ok and err and (err.PERM or err.OPNOTSUPP), "should not be able to change macaddr on lo")
end,
test_newlink_error_root = function()
local ok, err = nl.newlink(-1, 0, "up", "up")
assert(not ok, "expect bogus newlink to fail")
Expand Down

0 comments on commit d14bd38

Please sign in to comment.