[moblab] Fix issue with network interface detection.
find_network_interfaces_by_ip_addr can be called twice if the WAN is
slow to get a IP address.
The first call has the side effect of setting the interface for the LAN to
be the first interface.
On each call to find_network_interfaces_by_ip_addr ensure that the WAN
and LAN interfaces are initialized to empty.
TEST=local moblab testing
Commit-Ready: Keith Haddow <email@example.com>
Tested-by: Keith Haddow <firstname.lastname@example.org>
Reviewed-by: Matt Mallett <email@example.com>
1 file changed