diff options
author | elie <elie> | 2015-05-31 19:18:10 +0000 |
---|---|---|
committer | elie <elie> | 2015-05-31 19:18:10 +0000 |
commit | 96fabc3d0d8049d9e1f9a95c46a3cfe7de53f033 (patch) | |
tree | eb850e362452c8357b2ca6bedf48cfad934dae6a /pysnmp | |
parent | a24058b2562e8abc91f1c61e83148e6d67ca975a (diff) | |
download | pysnmp-96fabc3d0d8049d9e1f9a95c46a3cfe7de53f033.tar.gz |
alias Null to Unspecified symbol for convenience
Diffstat (limited to 'pysnmp')
-rw-r--r-- | pysnmp/proto/rfc1905.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pysnmp/proto/rfc1905.py b/pysnmp/proto/rfc1905.py index 30964e0..e77912f 100644 --- a/pysnmp/proto/rfc1905.py +++ b/pysnmp/proto/rfc1905.py @@ -6,6 +6,9 @@ max_bindings = rfc1902.Integer(2147483647) # Take SNMP exception values out of BindValue structure for convenience +UnSpecified = univ.Null +unSpecified = UnSpecified() + class NoSuchObject(univ.Null): tagSet = univ.Null.tagSet.tagImplicitly( tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0x00) @@ -34,7 +37,7 @@ endOfMibView = EndOfMibView() class _BindValue(univ.Choice): componentType = namedtype.NamedTypes( namedtype.NamedType('value', rfc1902.ObjectSyntax()), - namedtype.NamedType('unSpecified', univ.Null()), + namedtype.NamedType('unSpecified', unSpecified), namedtype.NamedType('noSuchObject', noSuchObject), namedtype.NamedType('noSuchInstance', noSuchInstance), namedtype.NamedType('endOfMibView', endOfMibView) |