Setter method for ldp_targeted_peer, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/ldp/ldp_holder/ldp_targeted_peer (list)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_ldp_targeted_peer is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_ldp_targeted_peer() directly.

def _set_ldp_targeted_peer(self, v, load=False):
    """
    Setter method for ldp_targeted_peer, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/ldp/ldp_holder/ldp_targeted_peer (list)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_ldp_targeted_peer is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_ldp_targeted_peer() directly.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=YANGListType("ldp_targeted_peer_ip",ldp_targeted_peer.ldp_targeted_peer, yang_name="ldp-targeted-peer", rest_name="targeted-peer", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='ldp-targeted-peer-ip', extensions={u'tailf-common': {u'info': u'IP address of the targeted peer', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'cli-suppress-list-no': None, u'callpoint': u'MplsLdpTargetedPeer', u'alt-name': u'targeted-peer'}}), is_container='list', yang_name="ldp-targeted-peer", rest_name="targeted-peer", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'IP address of the targeted peer', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'cli-suppress-list-no': None, u'callpoint': u'MplsLdpTargetedPeer', u'alt-name': u'targeted-peer'}}, namespace='urn:brocade.com:mgmt:brocade-mpls', defining_module='brocade-mpls', yang_type='list', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """ldp_targeted_peer must be of a type compatible with list""",
          'defined-type': "list",
          'generated-type': """YANGDynClass(base=YANGListType("ldp_targeted_peer_ip",ldp_targeted_peer.ldp_targeted_peer, yang_name="ldp-targeted-peer", rest_name="targeted-peer", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='ldp-targeted-peer-ip', extensions={u'tailf-common': {u'info': u'IP address of the targeted peer', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'cli-suppress-list-no': None, u'callpoint': u'MplsLdpTargetedPeer', u'alt-name': u'targeted-peer'}}), is_container='list', yang_name="ldp-targeted-peer", rest_name="targeted-peer", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'IP address of the targeted peer', u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'cli-suppress-list-no': None, u'callpoint': u'MplsLdpTargetedPeer', u'alt-name': u'targeted-peer'}}, namespace='urn:brocade.com:mgmt:brocade-mpls', defining_module='brocade-mpls', yang_type='list', is_config=True)""",
        })

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