A stacked switch includes two or more individual network switches connected to each other in a ring or daisy chain topology over stacking links, and at least one port on two or more of the individual switches comprising the stacked switch is a member of a LAG configured on the stacked switch. To facilitate the creation of such a route, some embodiments adaptively define the shape of interconnect-line ends on a particular layer based on the routing directions available on the particular layer. The detachable drive end mechanism includes a detachable drive end and a collar which engages the retaining structure.