addSwitchTableEntry first check if the switch already exist.