code: def _set_user_password(self, v, load=False):
      
      if hasattr(v, "_utype"):
        v = v._utype(v)
      try:
        t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode, restriction_dict={'length': [u'1..40']}), is_leaf=True, yang_name="user-password", rest_name="password", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Password of the user', u'alt-name': u'password'}}, namespace='urn:brocade.com:mgmt:brocade-aaa', defining_module='brocade-aaa', yang_type='user-passwd', is_config=True)
      except (TypeError, ValueError):
        raise ValueError({
            'error-string': """user_password must be of a type compatible with user-passwd""",
            'defined-type': "brocade-aaa:user-passwd",
            'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_dict={'length': [u'1..40']}), is_leaf=True, yang_name="user-password", rest_name="password", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Password of the user', u'alt-name': u'password'}}, namespace='urn:brocade.com:mgmt:brocade-aaa', defining_module='brocade-aaa', yang_type='user-passwd', is_config=True)""",
          })
  
      self.__user_password = t
      if hasattr(self, '_set'):
        self._set()
docs: Setter method for user_password, mapped from YANG variable /username/user_password (user-passwd)
      If this variable is read-only (config: false) in the
      source YANG file, then _set_user_password is considered as a private
      method. Backends looking to populate this variable should
      do so via calling thisObj._set_user_password() directly.