Setter method for transmitted_stp_type, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_mst_detail/output/cist/port/transmitted_stp_type (stp-type)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_transmitted_stp_type is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_transmitted_stp_type() directly.

    YANG Description: Transmitted (tx) stp type

def _set_transmitted_stp_type(self, v, load=False):
    """
    Setter method for transmitted_stp_type, mapped from YANG variable /brocade_xstp_ext_rpc/get_stp_mst_detail/output/cist/port/transmitted_stp_type (stp-type)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_transmitted_stp_type is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_transmitted_stp_type() directly.

    YANG Description: Transmitted (tx) stp type
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'none': {'value': 1}, u'rstp': {'value': 3}, u'mstp': {'value': 4}, u'rpvstp': {'value': 6}, u'pvstp': {'value': 5}, u'stp': {'value': 2}},), is_leaf=True, yang_name="transmitted-stp-type", rest_name="transmitted-stp-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-xstp-ext', defining_module='brocade-xstp-ext', yang_type='stp-type', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """transmitted_stp_type must be of a type compatible with stp-type""",
          'defined-type': "brocade-xstp-ext:stp-type",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'none': {'value': 1}, u'rstp': {'value': 3}, u'mstp': {'value': 4}, u'rpvstp': {'value': 6}, u'pvstp': {'value': 5}, u'stp': {'value': 2}},), is_leaf=True, yang_name="transmitted-stp-type", rest_name="transmitted-stp-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-xstp-ext', defining_module='brocade-xstp-ext', yang_type='stp-type', is_config=True)""",
        })

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