[sw_api] Switch operation fixed

Signed-off-by: Mihaela Martinas <martinas.mihaela21@gmail.com>