allow the switch id to be a mac or an ip address