summaryrefslogtreecommitdiff
path: root/pysnmp/proto/rfc3411.py
blob: 9d4e080ed65f046beb71164b43a0b7b43a3f1311 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#
# This file is part of pysnmp software.
#
# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pysnmp/license.html
#
from pysnmp.proto import rfc1157
from pysnmp.proto import rfc1905


READ_CLASS_PDUS = set(
    (rfc1157.GetRequestPDU.tagSet,
     rfc1157.GetNextRequestPDU.tagSet,
     rfc1905.GetRequestPDU.tagSet,
     rfc1905.GetNextRequestPDU.tagSet,
     rfc1905.GetBulkRequestPDU.tagSet)
)

WRITE_CLASS_PDUS = set(
    (rfc1157.SetRequestPDU.tagSet,
     rfc1905.SetRequestPDU.tagSet)
)

RESPONSE_CLASS_PDUS = set(
    (rfc1157.GetResponsePDU.tagSet,
     rfc1905.ResponsePDU.tagSet,
     rfc1905.ReportPDU.tagSet)
)

NOTIFICATION_CLASS_PDUS = set(
    (rfc1157.TrapPDU.tagSet,
     rfc1905.SNMPv2TrapPDU.tagSet,
     rfc1905.InformRequestPDU.tagSet)
)

INTERNAL_CLASS_PDUS = set(
    (rfc1905.ReportPDU.tagSet,)
)

CONFIRMED_CLASS_PDUS = set(
    (rfc1157.GetRequestPDU.tagSet,
     rfc1157.GetNextRequestPDU.tagSet,
     rfc1157.SetRequestPDU.tagSet,
     rfc1905.GetRequestPDU.tagSet,
     rfc1905.GetNextRequestPDU.tagSet,
     rfc1905.GetBulkRequestPDU.tagSet,
     rfc1905.SetRequestPDU.tagSet,
     rfc1905.InformRequestPDU.tagSet)
)

UNCONFIRMED_CLASS_PDUS = set(
    (rfc1157.GetResponsePDU.tagSet,
     rfc1905.ResponsePDU.tagSet,
     rfc1157.TrapPDU.tagSet,
     rfc1905.ReportPDU.tagSet,
     rfc1905.SNMPv2TrapPDU.tagSet)
)