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

    YANG Description: partner brcd trunk state
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'deskew-not-ok': {'value': 3}, u'deskew-ok': {'value': 2}, u'port-attached': {'value': 4}, u'marker-generated': {'value': 0}, u'deskew-calculation-completed': {'value': 1}},), is_leaf=True, yang_name="partner-brcd-state", rest_name="partner-brcd-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='brcd-trunk-states', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """partner_brcd_state must be of a type compatible with brcd-trunk-states""",
          'defined-type': "brocade-lag:brcd-trunk-states",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'deskew-not-ok': {'value': 3}, u'deskew-ok': {'value': 2}, u'port-attached': {'value': 4}, u'marker-generated': {'value': 0}, u'deskew-calculation-completed': {'value': 1}},), is_leaf=True, yang_name="partner-brcd-state", rest_name="partner-brcd-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='brcd-trunk-states', is_config=True)""",
        })

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