summaryrefslogtreecommitdiff
path: root/pysnmp/proto/rfc3411.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysnmp/proto/rfc3411.py')
-rw-r--r--pysnmp/proto/rfc3411.py82
1 files changed, 41 insertions, 41 deletions
diff --git a/pysnmp/proto/rfc3411.py b/pysnmp/proto/rfc3411.py
index 3c0fd645..c804eb4f 100644
--- a/pysnmp/proto/rfc3411.py
+++ b/pysnmp/proto/rfc3411.py
@@ -6,50 +6,50 @@
#
from pysnmp.proto import rfc1157, rfc1905
-READ_CLASS_PDUS = {
- rfc1157.GetRequestPDU.tagSet,
- rfc1157.GetNextRequestPDU.tagSet,
- rfc1905.GetRequestPDU.tagSet,
- rfc1905.GetNextRequestPDU.tagSet,
- rfc1905.GetBulkRequestPDU.tagSet
-}
+READ_CLASS_PDUS = set(
+ (rfc1157.GetRequestPDU.tagSet,
+ rfc1157.GetNextRequestPDU.tagSet,
+ rfc1905.GetRequestPDU.tagSet,
+ rfc1905.GetNextRequestPDU.tagSet,
+ rfc1905.GetBulkRequestPDU.tagSet)
+)
-WRITE_CLASS_PDUS = {
- rfc1157.SetRequestPDU.tagSet,
- rfc1905.SetRequestPDU.tagSet
-}
+WRITE_CLASS_PDUS = set(
+ (rfc1157.SetRequestPDU.tagSet,
+ rfc1905.SetRequestPDU.tagSet)
+)
-RESPONSE_CLASS_PDUS = {
- rfc1157.GetResponsePDU.tagSet,
- rfc1905.ResponsePDU.tagSet,
- rfc1905.ReportPDU.tagSet
-}
+RESPONSE_CLASS_PDUS = set(
+ (rfc1157.GetResponsePDU.tagSet,
+ rfc1905.ResponsePDU.tagSet,
+ rfc1905.ReportPDU.tagSet)
+)
-NOTIFICATION_CLASS_PDUS = {
- rfc1157.TrapPDU.tagSet,
- rfc1905.SNMPv2TrapPDU.tagSet,
- rfc1905.InformRequestPDU.tagSet
-}
+NOTIFICATION_CLASS_PDUS = set(
+ (rfc1157.TrapPDU.tagSet,
+ rfc1905.SNMPv2TrapPDU.tagSet,
+ rfc1905.InformRequestPDU.tagSet)
+)
-INTERNAL_CLASS_PDUS = {
- rfc1905.ReportPDU.tagSet
-}
+INTERNAL_CLASS_PDUS = set(
+ (rfc1905.ReportPDU.tagSet,)
+)
-CONFIRMED_CLASS_PDUS = {
- rfc1157.GetRequestPDU.tagSet,
- rfc1157.GetNextRequestPDU.tagSet,
- rfc1157.SetRequestPDU.tagSet,
- rfc1905.GetRequestPDU.tagSet,
- rfc1905.GetNextRequestPDU.tagSet,
- rfc1905.GetBulkRequestPDU.tagSet,
- rfc1905.SetRequestPDU.tagSet,
- rfc1905.InformRequestPDU.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 = {
- rfc1157.GetResponsePDU.tagSet,
- rfc1905.ResponsePDU.tagSet,
- rfc1157.TrapPDU.tagSet,
- rfc1905.ReportPDU.tagSet,
- rfc1905.SNMPv2TrapPDU.tagSet
-}
+UNCONFIRMED_CLASS_PDUS = set(
+ (rfc1157.GetResponsePDU.tagSet,
+ rfc1905.ResponsePDU.tagSet,
+ rfc1157.TrapPDU.tagSet,
+ rfc1905.ReportPDU.tagSet,
+ rfc1905.SNMPv2TrapPDU.tagSet)
+)