fix test
useless variable
just test ifconfig parsing result

The result of _getInterfaces relies on additional external commands,
such as /usr/sbin/ndd, to compute interface speed, which makes it
unsuitable for testing on Solaris platform.

closes: #2438
Revert "move additional command usage in top-level"

commit #5cae077 is a better solution.