Prevent test failures when there are non Ethernet devices on the system.
authorThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Wed, 18 Nov 2015 18:38:28 +0000 (16:38 -0200)
committerBen Pfaff <blp@ovn.org>
Mon, 23 Nov 2015 18:18:28 +0000 (10:18 -0800)
commitc9697f354ef651bcb851c9fcdae783219661b530
tree5ea502ead02df1c7be73f234e0257b6509bd2328
parentcbe0336312038f5862a69abf294a49082203cdb0
Prevent test failures when there are non Ethernet devices on the system.

When there are PtP TUN devices on the system or SIT devices, tests will fail
because of a warning that it was not possible to get their Ethernet addresses.
That call comes from the route code adding tunnel ports.

Make that warning an informational message and filter that out during tests.

Also, return EINVAL when trying to get those interface Ethernet addresses, which
will prevent them from being added to the tunnel ports pool and will properly
fail in other places as well.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/netdev-linux.c
tests/ofproto-macros.at