def _set_pvst(self, v, load=False):
    """
    Setter method for pvst, mapped from YANG variable /protocol/spanning_tree/pvst (container)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_pvst is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_pvst() directly.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=pvst.pvst, is_container='container', presence=True, yang_name="pvst", rest_name="pvst", 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'pvst-config', u'info': u'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/rpvst))'}}, namespace='urn:brocade.com:mgmt:brocade-xstp', defining_module='brocade-xstp', yang_type='container', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """pvst must be of a type compatible with container""",
          'defined-type': "container",
          'generated-type': """YANGDynClass(base=pvst.pvst, is_container='container', presence=True, yang_name="pvst", rest_name="pvst", 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'pvst-config', u'info': u'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/rpvst))'}}, namespace='urn:brocade.com:mgmt:brocade-xstp', defining_module='brocade-xstp', yang_type='container', is_config=True)""",
        })

    self.__pvst = t
    if hasattr(self, '_set'):
      self._set()
Setter method for pvst, mapped from YANG variable /protocol/spanning_tree/pvst (container)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_pvst is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_pvst() directly.