Top-of-rack and end-of-row switch validation