agent: Remove bogus check from list_interfaces() unit test

The unit test for list_interfaces() checks that the hardware address
returned for each interface has non-zero length.  However, that need not be
the case.  Point-to-point devices, such as ppp, or tun devices in certain
configurations may not have a hardware address, which is represented as
a zero length address here.

This happens on my machine with a tun0 device created by OpenVPN.

fixes #1377

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
David Gibson 2021-02-11 15:09:00 +11:00 committed by Peng Tao
parent 7c888b34be
commit 3c618a61d6

1028
src/agent/src/netlink.rs Normal file

File diff suppressed because it is too large Load Diff