def _set_pim(self, v, load=False):
    """
    Setter method for pim, mapped from YANG variable /routing_system/router/pim (list)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_pim is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_pim() directly.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=YANGListType("vrf",pim.pim, yang_name="pim", rest_name="pim", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vrf', extensions={u'tailf-common': {u'info': u'PIM multicast protocol(PIM)', u'cli-run-template-enter': u' router pim$($(vrf)==default-vrf? :vrf $(vrf))\n', u'callpoint': u'PimRtrCfgCallpoint', u'cli-suppress-list-no': None, u'cli-full-command': None, u'cli-full-no': None, u'cli-mode-name': u'config-router-pim-vrf-$(vrf)'}}), is_container='list', yang_name="pim", rest_name="pim", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'PIM multicast protocol(PIM)', u'cli-run-template-enter': u' router pim$($(vrf)==default-vrf? :vrf $(vrf))\n', u'callpoint': u'PimRtrCfgCallpoint', u'cli-suppress-list-no': None, u'cli-full-command': None, u'cli-full-no': None, u'cli-mode-name': u'config-router-pim-vrf-$(vrf)'}}, namespace='urn:brocade.com:mgmt:brocade-pim', defining_module='brocade-pim', yang_type='list', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """pim must be of a type compatible with list""",
          'defined-type': "list",
          'generated-type': """YANGDynClass(base=YANGListType("vrf",pim.pim, yang_name="pim", rest_name="pim", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='vrf', extensions={u'tailf-common': {u'info': u'PIM multicast protocol(PIM)', u'cli-run-template-enter': u' router pim$($(vrf)==default-vrf? :vrf $(vrf))\n', u'callpoint': u'PimRtrCfgCallpoint', u'cli-suppress-list-no': None, u'cli-full-command': None, u'cli-full-no': None, u'cli-mode-name': u'config-router-pim-vrf-$(vrf)'}}), is_container='list', yang_name="pim", rest_name="pim", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'PIM multicast protocol(PIM)', u'cli-run-template-enter': u' router pim$($(vrf)==default-vrf? :vrf $(vrf))\n', u'callpoint': u'PimRtrCfgCallpoint', u'cli-suppress-list-no': None, u'cli-full-command': None, u'cli-full-no': None, u'cli-mode-name': u'config-router-pim-vrf-$(vrf)'}}, namespace='urn:brocade.com:mgmt:brocade-pim', defining_module='brocade-pim', yang_type='list', is_config=True)""",
        })

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