check_ethernet: add fallback to any recently seen neighbor
Jetstream mesh devices do not have a default gateway before
the mesh is established. This was causing the check_ethernet
hook to fail if there was no active SSH connection to the DUT.
This adds a fallback to ping any recently seen neighbor.
TEST=Checked fallback on devices with no default gateway and no
active ssh connection.
Commit-Ready: Laurence Goodby <firstname.lastname@example.org>
Tested-by: Laurence Goodby <email@example.com>
Reviewed-by: Richard Barnette <firstname.lastname@example.org>
Reviewed-by: Grant Grundler <email@example.com>
1 file changed