def _set_priv_password(self, v, load=False):
    """
    Setter method for priv_password, mapped from YANG variable /rbridge_id/snmp_server/user/priv_password (string)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_priv_password is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_priv_password() directly.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=unicode, default=unicode(""), is_leaf=True, yang_name="priv-password", rest_name="priv-password", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Privacy password associated with username', u'suppress-echo': u'true', u'cli-suppress-no': None}}, namespace='urn:brocade.com:mgmt:brocade-snmp', defining_module='brocade-snmp', yang_type='string', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """priv_password must be of a type compatible with string""",
          'defined-type': "string",
          'generated-type': """YANGDynClass(base=unicode, default=unicode(""), is_leaf=True, yang_name="priv-password", rest_name="priv-password", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Privacy password associated with username', u'suppress-echo': u'true', u'cli-suppress-no': None}}, namespace='urn:brocade.com:mgmt:brocade-snmp', defining_module='brocade-snmp', yang_type='string', is_config=True)""",
        })

    self.__priv_password = t
    if hasattr(self, '_set'):
      self._set()
def _set_priv_password ( self , v , load = False ) : if hasattr ( v , "_utype" ) : v = v . _utype ( v ) try : t = YANGDynClass ( v , base = unicode , default = unicode ( "" ) , is_leaf = True , yang_name = "priv-password" , rest_name = "priv-password" , parent = self , path_helper = self . _path_helper , extmethods = self . _extmethods , register_paths = True , extensions = { u'tailf-common' : { u'info' : u'Privacy password associated with username' , u'suppress-echo' : u'true' , u'cli-suppress-no' : None } } , namespace = 'urn:brocade.com:mgmt:brocade-snmp' , defining_module = 'brocade-snmp' , yang_type = 'string' , is_config = True ) except ( TypeError , ValueError ) : raise ValueError ( { 'error-string' : """priv_password must be of a type compatible with string""" , 'defined-type' : "string" , 'generated-type' : """YANGDynClass(base=unicode, default=unicode(""), is_leaf=True, yang_name="priv-password", rest_name="priv-password", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Privacy password associated with username', u'suppress-echo': u'true', u'cli-suppress-no': None}}, namespace='urn:brocade.com:mgmt:brocade-snmp', defining_module='brocade-snmp', yang_type='string', is_config=True)""" , } ) self . __priv_password = t if hasattr ( self , '_set' ) : self . _set ( )
Setter method for priv_password, mapped from YANG variable /rbridge_id/snmp_server/user/priv_password (string)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_priv_password is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_priv_password() directly.