[Bridge + 8021q] if_get_type Switch API function

* returns the type of the interface as saved in the
"if_data" structure.

Signed-off-by: Claudiu Ghioc <claudiu.ghioc@gmail.com>