implemented the "act_like_switch" method,
also the ruls insertion.

Change-Id: I35cd514454864c5092d96bf767c44ad4f7216751
Signed-off-by: Elad Hayun <elad.hayun@gmail.com>