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

def _set_expire(self, v, load=False):
    """
    Setter method for expire, mapped from YANG variable /username/expire (date)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_expire is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_expire() directly.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'((19(0[2-9]|[1-9][0-9])|20([012][0-9]|3[0-7]))-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]))|never', 'length': [u'0 .. 10']}), default=unicode("never"), is_leaf=True, yang_name="expire", rest_name="expire", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Date until when the password will remain valid after being updated\n(default=never)', u'cli-suppress-no': None}}, namespace='urn:brocade.com:mgmt:brocade-aaa', defining_module='brocade-aaa', yang_type='date', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """expire must be of a type compatible with date""",
          'defined-type': "brocade-aaa:date",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'((19(0[2-9]|[1-9][0-9])|20([012][0-9]|3[0-7]))-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]))|never', 'length': [u'0 .. 10']}), default=unicode("never"), is_leaf=True, yang_name="expire", rest_name="expire", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Date until when the password will remain valid after being updated\n(default=never)', u'cli-suppress-no': None}}, namespace='urn:brocade.com:mgmt:brocade-aaa', defining_module='brocade-aaa', yang_type='date', is_config=True)""",
        })

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