'Reboots, shuts down or powers up the host.'

def host_power_action(self, action):

    if (action in [constants.HOST_POWER_ACTION_SHUTDOWN, constants.HOST_POWER_ACTION_REBOOT]):
        self._hostutils.host_power_action(action)
    elif (action == constants.HOST_POWER_ACTION_STARTUP):
        raise NotImplementedError(_('Host    PowerOn    is    not    supported    by    the    Hyper-V    driver'))
