Skip to content

Commit

Permalink
removed hard_ifindex and added new line at the end of file
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbrk committed Oct 4, 2023
1 parent f89fbd2 commit 3d86203
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ function get_bat_links_info()
for key,value in pairs (batneights_obj) do
macparts = network.get_mac(value.iface)
src_macaddr = table.concat(macparts,":")
value.hard_ifindex=nil
value.src_mac=src_macaddr
end
utils.printJson(batneights_obj)
return batneights_obj
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ describe('Tests bat_links_info #bat_links_info', function ()
links_info = get_bat_links_info()
assert.are.equal(table.concat(iwinfo.mocks.wlan1_mesh_mac,":"), links_info[1].src_mac)
assert.are.equal('02:58:47:da:4e:aa', links_info[1].dst_mac)
assert.are.equal(26, links_info[1].hard_ifindex)
assert.are.equal(1990, links_info[1].last_seen_msecs)
assert.are.equal("wlan0-mesh_250", links_info[1].iface)
end)
end)
end)

0 comments on commit 3d86203

Please sign in to comment.