'Set the ability to power on/off an instance.'

def set_bootable(self, instance, is_bootable):

    vm_ref = self._get_vm_opaque_ref(instance)
    if is_bootable:
        self._release_bootlock(vm_ref)
    else:
        self._acquire_bootlock(vm_ref)
