+def reboot_simple(nodeid, values, verbose, dryrun):
+ rb_ret = ""
+ try:
+ # Find the index of the given nodeid; use the same index in the ports list
+ port = values['ports'][values['node_ids'].index(nodeid)]
+ object = eval('%s(values, verbose)' % values['model'])
+ rb_ret = object.reboot(port, dryrun)
+ # TODO: how to handle the weird, georgetown pcus, the drac faults, and ilo faults?
+ except ExceptionPort, err:
+ rb_ret = str(err)
+ except NameError, err:
+ rb_ret = str(err)
+
+ return rb_ret
+