Sorry for missing your request, costales. I have upgraded to Ubuntu 17.04 since posting this bug.
Here is what you were looking for:
$ ls /sys/calss/net/* ls: cannot access '/sys/calss/net/*': No such file or directory
And then
$ basename -a /sys/class/net/* enp0s31f4 lo wlp3s1
Sorry for missing your request, costales.
I have upgraded to Ubuntu 17.04 since posting this bug.
Here is what you were looking for:
$ ls /sys/calss/net/*
ls: cannot access '/sys/calss/net/*': No such file or directory
And then
$ basename -a /sys/class/net/*
enp0s31f4
lo
wlp3s1