o
    B]T                     @   s  G d d de ZG dd deZedZG dd deZedZG dd	 d	eZedZG d
d deZedZ	G dd deZ
e
dZG dd deZedZG dd deZedZG dd deZedZG dd deZedZG dd deZedZG dd  d eZed!ZG d"d# d#eZed$ZG d%d& d&eZed'ZG d(d) d)eZed*ZG d+d, d,eZed-ZG d.d/ d/eZ e d0Z!G d1d2 d2eZ"e"d3Z#G d4d5 d5eZ$e$d6Z%G d7d8 d8eZ&e&d9Z'G d:d; d;eZ(e(d<Z)G d=d> d>eZ*e*d?Z+G d@dA dAeZ,e,dBZ-G dCdD dDeZ.e.dEZ/G dFdG dGeZ0e0dHZ1G dIdJ dJeZ2e2dKZ3G dLdM dMeZ4e4dNZ5G dOdP dPeZ6e6Z7e6dQZ8G dRdS dSeZ9e9dTZ:G dUdV dVeZ;e;dWZ<G dXdY dYeZ=e=dZZ>G d[d\ d\eZ?e?d]Z@G d^d_ d_eZAeAd`ZBG dadb dbeZCeCdcZDG ddde deeZEeEdfZFG dgdh dheZGeGdiZHG djdk dkeZIeIdlZJG dmdn dneZKeK ZLG dodp dpeZMeMdqZNG drds dseZOeOdtZPduS )vc                   @   sR   e Zd ZdZdddZdd Zdd Zd	d
 Zdd Zdd Z	dd Z
dd ZdS )ErrorIndicationzSNMPv3 error-indication valuesNc                 C   s:   | j jd  | j jdd    | _| _|r|| _d S d S )N       )	__class____name__lower_ErrorIndication__value_ErrorIndication__descr)selfZdescr r
   5/usr/lib/python3/dist-packages/pysnmp/proto/errind.py__init__   s   (
zErrorIndication.__init__c                 C   s
   | j |kS Nr   r	   otherr
   r
   r   __eq__      
zErrorIndication.__eq__c                 C   s
   | j |kS r   r   r   r
   r
   r   __ne__   r   zErrorIndication.__ne__c                 C   s
   | j |k S r   r   r   r
   r
   r   __lt__   r   zErrorIndication.__lt__c                 C   s
   | j |kS r   r   r   r
   r
   r   __le__   r   zErrorIndication.__le__c                 C   s
   | j |kS r   r   r   r
   r
   r   __gt__   r   zErrorIndication.__gt__c                 C   s
   | j |kS r   r   r   r
   r
   r   __ge__    r   zErrorIndication.__ge__c                 C   s   | j S r   )r   )r	   r
   r
   r   __str__#   s   zErrorIndication.__str__r   )r   
__module____qualname____doc__r   r   r   r   r   r   r   r   r
   r
   r
   r   r   	   s    
r   c                   @      e Zd ZdS )SerializationErrorNr   r   r   r
   r
   r
   r   r   )       r   z SNMP message serialization errorc                   @   r   )DeserializationErrorNr   r
   r
   r
   r   r    /   r   r    z"SNMP message deserialization errorc                   @   r   )
ParseErrorNr   r
   r
   r
   r   r!   5   r   r!   c                   @   r   )UnsupportedMsgProcessingModelNr   r
   r
   r
   r   r"   ;   r   r"   z4Unknown SNMP message processing model ID encounteredc                   @   r   )UnknownPDUHandlerNr   r
   r
   r
   r   r#   A   r   r#   zUnhandled PDU type encounteredc                   @   r   )UnsupportedPDUtypeNr   r
   r
   r
   r   r$   G   r   r$   z%Unsupported SNMP PDU type encounteredc                   @   r   )RequestTimedOutNr   r
   r
   r
   r   r%   M   r   r%   z(No SNMP response received before timeoutc                   @   r   )EmptyResponseNr   r
   r
   r
   r   r&   S   r   r&   zEmpty SNMP response messagec                   @   r   )NonReportableNr   r
   r
   r
   r   r'   Y   r   r'   z#Report PDU generation not attemptedc                   @   r   )DataMismatchNr   r
   r
   r
   r   r(   _   r   r(   z+SNMP request/response parameters mismatchedc                   @   r   )EngineIDMismatchNr   r
   r
   r
   r   r)   e   r   r)   z#SNMP engine ID mismatch encounteredc                   @   r   )UnknownEngineIDNr   r
   r
   r
   r   r*   k   r   r*   z"Unknown SNMP engine ID encounteredc                   @   r   )TooBigNr   r
   r
   r
   r   r+   q   r   r+   zSNMP message will be too bigc                   @   r   )LoopTerminatedNr   r
   r
   r
   r   r,   w   r   r,   z&Infinite SNMP entities talk terminatedc                   @   r   )
InvalidMsgNr   r
   r
   r
   r   r-   }   r   r-   z2Invalid SNMP message header parameters encounteredc                   @   r   )UnknownCommunityNameNr   r
   r
   r
   r   r.      r   r.   z'Unknown SNMP community name encounteredc                   @   r   )NoEncryptionNr   r
   r
   r
   r   r/      r   r/   z!No encryption services configuredc                   @   r   )EncryptionErrorNr   r
   r
   r
   r   r0      r   r0   z Ciphering services not availablec                   @   r   )DecryptionErrorNr   r
   r
   r
   r   r1      r   r1   z8Ciphering services not available or ciphertext is brokenc                   @   r   )NoAuthenticationNr   r
   r
   r
   r   r2      r   r2   z%No authentication services configuredc                   @   r   )AuthenticationErrorNr   r
   r
   r
   r   r3      r   r3   z2Ciphering services not available or bad parametersc                   @   r   )AuthenticationFailureNr   r
   r
   r
   r   r4      r   r4   zAuthenticator mismatchedc                   @   r   )UnsupportedAuthProtocolNr   r
   r
   r
   r   r5      r   r5   z'Authentication protocol is not supprtedc                   @   r   )UnsupportedPrivProtocolNr   r
   r
   r
   r   r6      r   r6   z Privacy protocol is not supprtedc                   @   r   )UnknownSecurityNameNr   r
   r
   r
   r   r7      r   r7   z&Unknown SNMP security name encounteredc                   @   r   )UnsupportedSecurityModelNr   r
   r
   r
   r   r8      r   r8   zUnsupported SNMP security modelc                   @   r   )UnsupportedSecurityLevelNr   r
   r
   r
   r   r9      r   r9   zUnsupported SNMP security levelc                   @   r   )NotInTimeWindowNr   r
   r
   r
   r   r:      r   r:   z6SNMP message timing parameters not in windows of trustc                   @   r   )UnknownUserNameNr   r
   r
   r
   r   r;      r   r;   zUnknown USM userc                   @   r   )WrongDigestNr   r
   r
   r
   r   r<      r   r<   zWrong SNMP PDU digestc                   @   r   )ReportPduReceivedNr   r
   r
   r
   r   r=      r   r=   z!Remote SNMP engine reported errorc                   @   r   )
NoSuchViewNr   r
   r
   r
   r   r>      r   r>   z!No such MIB view currently existsc                   @   r   )NoAccessEntryNr   r
   r
   r
   r   r?      r   r?   zAccess to MIB node deninedc                   @   r   )NoGroupNameNr   r
   r
   r
   r   r@      r   r@   zNo such VACM group configuredc                   @   r   )NoSuchContextNr   r
   r
   r
   r   rA      r   rA   zSNMP context now foundc                   @   r   )	NotInViewNr   r
   r
   r
   r   rB     r   rB   z Requested OID is out of MIB viewc                   @   r   )AccessAllowedNr   r
   r
   r
   r   rC     r   rC   c                   @   r   )
OtherErrorNr   r
   r
   r
   r   rD     r   rD   z&Unspecified SNMP engine error occurredc                   @   r   )OidNotIncreasingNr   r
   r
   r
   r   rE     r   rE   zOID not increasingN)Q	Exceptionr   r   ZserializationErrorr    ZdeserializationErrorr!   Z
parseErrorr"   ZunsupportedMsgProcessingModelr#   ZunknownPDUHandlerr$   ZunsupportedPDUtyper%   ZrequestTimedOutr&   ZemptyResponser'   ZnonReportabler(   ZdataMismatchr)   ZengineIDMismatchr*   ZunknownEngineIDr+   ZtooBigr,   ZloopTerminatedr-   Z
invalidMsgr.   ZunknownCommunityNamer/   ZnoEncryptionr0   ZencryptionErrorr1   ZdecryptionErrorr2   ZnoAuthenticationr3   ZauthenticationErrorr4   ZauthenticationFailurer5   ZunsupportedAuthProtocolr6   ZunsupportedPrivProtocolr7   ZunknownSecurityNamer8   ZunsupportedSecurityModelr9   ZUnsupportedSecLevelZunsupportedSecurityLevelr:   ZnotInTimeWindowr;   ZunknownUserNamer<   ZwrongDigestr=   ZreportPduReceivedr>   Z
noSuchViewr?   ZnoAccessEntryr@   ZnoGroupNamerA   ZnoSuchContextrB   Z	notInViewrC   ZaccessAllowedrD   Z
otherErrorrE   ZoidNotIncreasingr
   r
   r
   r   <module>   s    