def modify_host(name, mod_request)
      begin
        @host.modify_host(name, mod_request)
      rescue => ex
        Util.log_exception(ex, caller_locations(1, 1)[0].label)
        raise ex
      end
    end
def modify_host(name, mod_request)
      begin
        @host.modify_host(name, mod_request)
      rescue => ex
        Util.log_exception(ex, caller_locations(1, 1)[0].label)
        raise ex
      end
    end
Modifies an existing Host.

 ==== Attributes

 * name - Name of the host.
      type name: String
 * mod_request - Objects for host modification request.
      type mod_request: Hash
        mod_request = {
            'newName'=> 'myNewName',         # New name of the host
            'pathOperation'=> 1,             # Refer Hpe3parSdk::HostEditOperation for complete enumeration
            'FCWWNs'=> [],                   # One or more WWN to set for the host.
            'iSCSINames'=> [],               # One or more iSCSI names to set for the host.
            'forcePathRemoval'=> false,      # If True, remove SSN(s) or
                                             # iSCSI(s) even if there are
                                             # VLUNs exported to host
            'persona'=> 1,                   # Refer Hpe3parSdk::HostPersona for complete enumeration.
            'descriptors'=>
                {'location'=> 'earth',       # The host's location
                 'IPAddr'=> '10.10.10.10',   # The host's IP address
                 'os'=> 'linux',             # The operating system running on the host.
                 'model'=> 'ex',             # The host's model
                 'contact'=> 'Smith',        # The host's owner and contact
                 'comment'=> 'Joes box'}     # Additional host information
            'chapOperation'=> 1,             # Refer Hpe3parSdk::HostEditOperation for complete enumeration
            'chapOperationMode'=> TARGET,    # Refer Hpe3parSdk::ChapOperationMode for complete enumeration
            'chapName'=> 'MyChapName',       # The chap name
            'chapSecret'=> 'xyz',            # The chap secret for the host or the target
            'chapSecretHex'=> false,         # If True, the chapSecret is treated as Hex.
            'chapRemoveTargetOnly'=> true    # If True, then remove target chap only
        }

 ==== Raises

 * Hpe3parSdk::HTTPBadRequest
        - INV_INPUT - Missing host name.
 * Hpe3parSdk::HTTPBadRequest
        - INV_INPUT_PARAM_CONFLICT - Both iSCSINames & FCWWNs are specified. (lot of other possibilities).
 * Hpe3parSdk::HTTPBadRequest
        - INV_INPUT_ONE_REQUIRED - iSCSINames or FCWwns missing.
 * Hpe3parSdk::HTTPBadRequest
        - INV_INPUT_ONE_REQUIRED - No path operation specified.
 * Hpe3parSdk::HTTPBadRequest
        - INV_INPUT_BAD_ENUM_VALUE - Invalid enum value.
 * Hpe3parSdk::HTTPBadRequest
        - INV_INPUT_MISSING_REQUIRED - Required fields missing.
 * Hpe3parSdk::HTTPBadRequest
        - INV_INPUT_EXCEEDS_LENGTH - Host descriptor argument length, new host name, or iSCSI name is too long.
 * Hpe3parSdk::HTTPBadRequest
        - INV_INPUT_ILLEGAL_CHAR - Error parsing host or iSCSI name.
 * Hpe3parSdk::HTTPConflict
        - EXISTENT_HOST - New host name is already used.
 * Hpe3parSdk::HTTPNotFound
        - NON_EXISTENT_HOST - Host to be modified does not exist.
 * Hpe3parSdk::HTTPBadRequest
        - INV_INPUT_TOO_MANY_WWN_OR_iSCSI - More than 1024 WWNs or iSCSI names are specified.
 * Hpe3parSdk::HTTPBadRequest
        - INV_INPUT_WRONG_TYPE - Input value is of the wrong type.
 * Hpe3parSdk::HTTPConflict
        - EXISTENT_PATH - WWN or iSCSI name is already claimed by other host.
 * Hpe3parSdk::HTTPBadRequest
        - INV_INPUT_BAD_LENGTH - CHAP hex secret length is not 16 bytes, or chap ASCII secret length is not 12 to 16 characters.
 * Hpe3parSdk::HTTPNotFound
        - NO_INITIATOR_CHAP - Setting target CHAP without initiator CHAP.
 * Hpe3parSdk::HTTPNotFound
        - NON_EXISTENT_CHAP - Remove non-existing CHAP.
 * Hpe3parSdk::HTTPConflict
        - NON_UNIQUE_CHAP_SECRET - CHAP secret is not unique.
 * Hpe3parSdk::HTTPConflict
        - EXPORTED_VLUN - Setting persona with active export; remove a host path on an active export.
 * Hpe3parSdk::HTTPBadRequest
        - NON_EXISTENT_PATH - Remove a non-existing path.
 * Hpe3parSdk::HTTPConflict
        - LUN_HOSTPERSONA_CONFLICT - LUN number and persona capability conflict.
 * Hpe3parSdk::HTTPBadRequest
        - INV_INPUT_DUP_PATH - Duplicate path specified.