vswitchd: Refactor iface_refresh_type() into iface_get_type().