[sw_api] Initial version of the switch api

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