Setter method for tlv_type, mapped from YANG variable /protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/mep/cfm_mep_sub_commands/tlv_type (ccm-tlv-type)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_tlv_type is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_tlv_type() directly.

def _set_tlv_type(self, v, load=False):
    """
    Setter method for tlv_type, mapped from YANG variable /protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/mep/cfm_mep_sub_commands/tlv_type (ccm-tlv-type)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_tlv_type is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_tlv_type() 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'port-status-tlv': {'value': 1}},), is_leaf=True, yang_name="tlv-type", rest_name="tlv-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-full-command': None, u'info': u'set TLV', u'cli-full-no': None, u'callpoint': u'setDot1agTlvType'}}, namespace='urn:brocade.com:mgmt:brocade-dot1ag', defining_module='brocade-dot1ag', yang_type='ccm-tlv-type', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """tlv_type must be of a type compatible with ccm-tlv-type""",
          'defined-type': "brocade-dot1ag:ccm-tlv-type",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'port-status-tlv': {'value': 1}},), is_leaf=True, yang_name="tlv-type", rest_name="tlv-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-full-command': None, u'info': u'set TLV', u'cli-full-no': None, u'callpoint': u'setDot1agTlvType'}}, namespace='urn:brocade.com:mgmt:brocade-dot1ag', defining_module='brocade-dot1ag', yang_type='ccm-tlv-type', is_config=True)""",
        })

    self.__tlv_type = t
    if hasattr(self, '_set'):
      self._set()