The diagram shows racks 1, 2, 8, 9, and 18. Racks 1, 2, and 8 are cabled the same way as they are when connecting up to 8 racks.
Racks 9 through 18 are cabled as follows:
The spine switches are disconnected.
Each leaf switch connects to one of the empty ports in each of the spine switches in racks 1 through 8.