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

    YANG Description: The state of the 'Receive Machine'

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

    YANG Description: The state of the 'Receive 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'port-disabled': {'value': 4}, u'unknown': {'value': 1}, u'lacp-disabled': {'value': 5}, u'invalid': {'value': 2}, u'current': {'value': 8}, u'defaulted': {'value': 7}, u'initialize': {'value': 3}, u'expired': {'value': 6}},), is_leaf=True, yang_name="receive-machine-state", rest_name="receive-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': """receive_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'port-disabled': {'value': 4}, u'unknown': {'value': 1}, u'lacp-disabled': {'value': 5}, u'invalid': {'value': 2}, u'current': {'value': 8}, u'defaulted': {'value': 7}, u'initialize': {'value': 3}, u'expired': {'value': 6}},), is_leaf=True, yang_name="receive-machine-state", rest_name="receive-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.__receive_machine_state = t
    if hasattr(self, '_set'):
      self._set()