print "Block Booting: ENABLED" else: print "Block Booting: SUSPENDED." sys.exit(0) if opts.pg_list: print_pg_info(None) sys.exit(0) if opts.blockinfo: if sys_type == 'bgq': print_block(system.get_blocks([{'name':part,'node_card_list':'*', 'subblock_parent':'*','midplane_list':'*','node_list':'*', 'scheduled':'*', 'funcitonal':'*', 'queue':'*','parents':'*','children':'*','reserved_until':'*', 'reserved_by':'*','used_by':'*','freeing':'*','block_type':'*', 'corner_node':'*', 'extents':'*', 'cleanup_pending':'*', 'state':'*', 'size':'*','draining':'*','backfill_time':'*','wire_list':'*', 'wiring_conflict_list':'*', 'midplane_geometry':'*', 'node_geometry':'*', 'passthrough_blocks':'*', 'passthrough_midplane_list':'*'} for part in parts])) elif sys_type == 'bgp': print_block(system.get_partitions([{'name':part,'node_card_list':'*', 'wire_list':'*','switch_list':'*','scheduled':'*', 'funcitonal':'*', 'queue':'*','parents':'*','children':'*','reserved_until':'*', 'reserved_by':'*','used_by':'*','freeing':'*','block_type':'*', 'cleanup_pending':'*', 'state':'*', 'wiring_conflicts':'*', 'size':'*','draining':'*','backfill_time':'*'} for part in parts])) sys.exit(0) if opts.clean_block:
print_block( system.get_blocks([{ 'name': part, 'node_card_list': '*', 'subblock_parent': '*', 'midplane_list': '*', 'node_list': '*', 'scheduled': '*', 'funcitonal': '*', 'queue': '*', 'parents': '*', 'children': '*', 'reserved_until': '*', 'reserved_by': '*', 'used_by': '*', 'freeing': '*', 'block_type': '*', 'corner_node': '*', 'extents': '*', 'cleanup_pending': '*', 'state': '*', 'size': '*', 'draining': '*', 'backfill_time': '*', 'wire_list': '*', 'wiring_conflict_list': '*', 'midplane_geometry': '*', 'node_geometry': '*', 'passthrough_blocks': '*', 'passthrough_midplane_list': '*' } for part in parts])) elif sys_type == 'bgp':