changing Switch to OFPSwitch and GetSwitch func to Switch