Implemented net device type detection based on sysfs.

It uses detection implemented in sysconfig to avoid code duplication.
See /etc/sysconfig/network/scripts/function:get_iface_type