netapi: add the net_dev class (v2)

It's more readable than a tuple

v2: fix the ovz driver
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>