diff options
author | elie <elie> | 2015-05-31 19:18:10 +0000 |
---|---|---|
committer | elie <elie> | 2015-05-31 19:18:10 +0000 |
commit | adc3d01f414ce9f531a2ae6fa45f9e180a294479 (patch) | |
tree | 60941510800c2cf02ac197bf561403a0b663bdf3 /pysnmp/proto/rfc1905.py | |
parent | c76c7c3dfb6b4f82a17db3a2c9c959a37f38d034 (diff) | |
download | pysnmp-git-adc3d01f414ce9f531a2ae6fa45f9e180a294479.tar.gz |
alias Null to Unspecified symbol for convenience
Diffstat (limited to 'pysnmp/proto/rfc1905.py')
-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 30964e0c..e77912fc 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) |