Setter method for rpvst, mapped from YANG variable /protocol/spanning_tree/rpvst (container)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_rpvst is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_rpvst() directly.

def _set_rpvst(self, v, load=False):
    """
    Setter method for rpvst, mapped from YANG variable /protocol/spanning_tree/rpvst (container)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_rpvst is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_rpvst() directly.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=rpvst.rpvst, is_container='container', presence=True, yang_name="rpvst", rest_name="rpvst", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-full-command': None, u'cli-add-mode': None, u'callpoint': u'rpvst-config', u'info': u'Rapid PVST spanning tree', u'display-when': u'not ((/protocol/spanning-tree/stp) or (/protocol/spanning-tree/rstp) or (/protocol/spanning-tree/mstp) or (/protocol/spanning-tree/pvst))'}}, namespace='urn:brocade.com:mgmt:brocade-xstp', defining_module='brocade-xstp', yang_type='container', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """rpvst must be of a type compatible with container""",
          'defined-type': "container",
          'generated-type': """YANGDynClass(base=rpvst.rpvst, is_container='container', presence=True, yang_name="rpvst", rest_name="rpvst", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-full-command': None, u'cli-add-mode': None, u'callpoint': u'rpvst-config', u'info': u'Rapid PVST spanning tree', u'display-when': u'not ((/protocol/spanning-tree/stp) or (/protocol/spanning-tree/rstp) or (/protocol/spanning-tree/mstp) or (/protocol/spanning-tree/pvst))'}}, namespace='urn:brocade.com:mgmt:brocade-xstp', defining_module='brocade-xstp', yang_type='container', is_config=True)""",
        })

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