def _set_mux_machine_state(self, v, load=False):
    """
    Setter method for mux_machine_state, mapped from YANG variable /brocade_lag_rpc/get_portchannel_info_by_intf/output/lacp/mux_machine_state (enumeration)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_mux_machine_state is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_mux_machine_state() directly.

    YANG Description: The state of the 'Mux machine'
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'collecting': {'value': 5}, u'generated-mark': {'value': 8}, u'deskew-not-ok': {'value': 12}, u'calculate-deskew': {'value': 9}, u'collecting-distributing': {'value': 7}, u'unknown': {'value': 1}, u'deskew-ok': {'value': 11}, u'attached': {'value': 4}, u'distributing': {'value': 6}, u'waiting': {'value': 3}, u'waiting-remote-deskew': {'value': 10}, u'detached': {'value': 2}},), is_leaf=True, yang_name="mux-machine-state", rest_name="mux-machine-state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lag', defining_module='brocade-lag', yang_type='enumeration', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """mux_machine_state must be of a type compatible with enumeration""",
          'defined-type': "brocade-lag:enumeration",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'collecting': {'value': 5}, u'generated-mark': {'value': 8}, u'deskew-not-ok': {'value': 12}, u'calculate-deskew': {'value': 9}, u'collecting-distributing': {'value': 7}, u'unknown': {'value': 1}, u'deskew-ok': {'value': 11}, u'attached': {'value': 4}, u'distributing': {'value': 6}, u'waiting': {'value': 3}, u'waiting-remote-deskew': {'value': 10}, u'detached': {'value': 2}},), is_leaf=True, yang_name="mux-machine-state", rest_name="mux-machine-state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-lag', defining_module='brocade-lag', yang_type='enumeration', is_config=True)""",
        })

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