def _set_route_profiletype(self, v, load=False):
    """
    Setter method for route_profiletype, mapped from YANG variable /hardware/profile/route/predefined/route_profiletype (route-profile-subtype)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_route_profiletype is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_route_profiletype() directly.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'default': {'value': 0}, u'route-enhance': {'value': 1}},), is_leaf=True, yang_name="route_profiletype", rest_name="route_profiletype", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-drop-node-name': None, u'cli-suppress-no': None}}, namespace='urn:brocade.com:mgmt:brocade-hardware', defining_module='brocade-hardware', yang_type='route-profile-subtype', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """route_profiletype must be of a type compatible with route-profile-subtype""",
          'defined-type': "brocade-hardware:route-profile-subtype",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'default': {'value': 0}, u'route-enhance': {'value': 1}},), is_leaf=True, yang_name="route_profiletype", rest_name="route_profiletype", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-drop-node-name': None, u'cli-suppress-no': None}}, namespace='urn:brocade.com:mgmt:brocade-hardware', defining_module='brocade-hardware', yang_type='route-profile-subtype', is_config=True)""",
        })

    self.__route_profiletype = t
    if hasattr(self, '_set'):
      self._set()
Setter method for route_profiletype, mapped from YANG variable /hardware/profile/route/predefined/route_profiletype (route-profile-subtype)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_route_profiletype is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_route_profiletype() directly.