added api to get name of switch by mac