def _set_ruleaction(self, v, load=False):
    """
    Setter method for ruleaction, mapped from YANG variable /rbridge_id/maps/policy/ruleaction (list)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_ruleaction is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_ruleaction() directly.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=YANGListType("policyrule",ruleaction.ruleaction, yang_name="ruleaction", rest_name="rule", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='policyrule', extensions={u'tailf-common': {u'cli-suppress-mode': None, u'alt-name': u'rule', u'cli-compact-syntax': None, u'cli-sequence-commands': None, u'cli-incomplete-command': None, u'callpoint': u'MapsRuleaction'}}), is_container='list', yang_name="ruleaction", rest_name="rule", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-suppress-mode': None, u'alt-name': u'rule', u'cli-compact-syntax': None, u'cli-sequence-commands': None, u'cli-incomplete-command': None, u'callpoint': u'MapsRuleaction'}}, namespace='urn:brocade.com:mgmt:brocade-maps', defining_module='brocade-maps', yang_type='list', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """ruleaction must be of a type compatible with list""",
          'defined-type': "list",
          'generated-type': """YANGDynClass(base=YANGListType("policyrule",ruleaction.ruleaction, yang_name="ruleaction", rest_name="rule", parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='policyrule', extensions={u'tailf-common': {u'cli-suppress-mode': None, u'alt-name': u'rule', u'cli-compact-syntax': None, u'cli-sequence-commands': None, u'cli-incomplete-command': None, u'callpoint': u'MapsRuleaction'}}), is_container='list', yang_name="ruleaction", rest_name="rule", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-suppress-mode': None, u'alt-name': u'rule', u'cli-compact-syntax': None, u'cli-sequence-commands': None, u'cli-incomplete-command': None, u'callpoint': u'MapsRuleaction'}}, namespace='urn:brocade.com:mgmt:brocade-maps', defining_module='brocade-maps', yang_type='list', is_config=True)""",
        })

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