Do not create another switch from the controllerIp
Use controllerIp from if defined otherwise default to ip
Moved _ip to _id
refactored this to self