Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] Fix failing test for interfaces
Browse files Browse the repository at this point in the history
devkapilbansal committed May 11, 2021
1 parent 48bac07 commit 395c251
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion interfaces.lua
Original file line number Diff line number Diff line change
@@ -3,6 +3,9 @@ utils = require('utils')
nixio = require('nixio')
ubus_lib = require('ubus')
ubus = ubus_lib.connect()
uci = require('uci')

uci_cursor = uci.cursor()
if not ubus then
error('Failed to connect to ubusd')
end
@@ -81,7 +84,7 @@ function interface_functions.new_address_array(address, interface, family)
mask = address['mask'],
proto = proto,
family = family,
gateway = find_default_gateway(interface.route)
gateway = interface_functions.find_default_gateway(interface.route)
}
return new_address
end

0 comments on commit 395c251

Please sign in to comment.