Setter method for ma_type, mapped from YANG variable /cfm_state/cfm_detail/domain/ma/ma_type (ma-types)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_ma_type is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_ma_type() directly.

    YANG Description: Bridge Domain or VLAN MA

def _set_ma_type(self, v, load=False):
    """
    Setter method for ma_type, mapped from YANG variable /cfm_state/cfm_detail/domain/ma/ma_type (ma-types)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_ma_type is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_ma_type() directly.

    YANG Description: Bridge Domain or VLAN MA
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'ma-bridge-domain-type': {'value': 1}, u'ma-vlan-type': {'value': 0}, u'ma-vll-type': {'value': 2}},), is_leaf=True, yang_name="ma-type", rest_name="ma-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-dot1ag-operational', defining_module='brocade-dot1ag-operational', yang_type='ma-types', is_config=False)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """ma_type must be of a type compatible with ma-types""",
          'defined-type': "brocade-dot1ag-operational:ma-types",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'ma-bridge-domain-type': {'value': 1}, u'ma-vlan-type': {'value': 0}, u'ma-vll-type': {'value': 2}},), is_leaf=True, yang_name="ma-type", rest_name="ma-type", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-dot1ag-operational', defining_module='brocade-dot1ag-operational', yang_type='ma-types', is_config=False)""",
        })

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