#!/bin/ksh # # This file and its contents are supplied under the terms of the # Common Development and Distribution License ("CDDL"), version 1.0. # You may only use this file in accordance with the terms of version # 1.0 of the CDDL. # # A full copy of the text of the CDDL should have accompanied this # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # # Copyright (c) 2017, Joyent, Inc. # # # Generate the topology map for an expanderless system with 3 bays. HBAs # are in slots 1, 3, and 5. # function do_node { cat < EOF } cat < EOF enclosure=1 bay=0 slot=0 devctl0='/devices/pci@0,0/pci8086,6f04@2/pci15d9,808@0:devctl' while (( slot <= 7 )); do do_node $bay "Front Disk $bay" "$devctl0" $enclosure $slot (( bay = bay + 1 )) (( slot = slot + 1 )) done slot=0 devctl0='/devices/pci@0,0/pci8086,6f08@3/pci15d9,808@0:devctl' while (( slot <= 7 )); do do_node $bay "Front Disk $bay" "$devctl0" $enclosure $slot (( bay = bay + 1 )) (( slot = slot + 1 )) done slot=0 devctl0='/devices/pci@78,0/pci8086,6f02@1/pci15d9,808@0:devctl' while (( slot <= 7 )); do do_node $bay "Front Disk $bay" "$devctl0" $enclosure $slot (( bay = bay + 1 )) (( slot = slot + 1 )) done cat < EOF