Smart managed switches