diff options
author | Ilya Etingof <etingof@gmail.com> | 2019-02-17 11:58:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-17 11:58:32 +0100 |
commit | 5ac020f1fc7dfa8b42cabe3023d0e94fdc634dd2 (patch) | |
tree | 4850ae0ad0cac7fc622a00393c3d8f299c6956a2 /pysnmp/smi/mibs/RFC1158-MIB.py | |
parent | 7a8838eeaf2a94a4ee8d309f2091a4fde13e5afc (diff) | |
download | pysnmp-git-5ac020f1fc7dfa8b42cabe3023d0e94fdc634dd2.tar.gz |
PEP-8 included MIB modules (#243)
The base Pythonized MIBs being shipped with pysnmp have been rebuilt
with the latest pysmi mainly for the purpose of making them
PEP-8 compliant.
Diffstat (limited to 'pysnmp/smi/mibs/RFC1158-MIB.py')
-rw-r--r-- | pysnmp/smi/mibs/RFC1158-MIB.py | 49 |
1 files changed, 39 insertions, 10 deletions
diff --git a/pysnmp/smi/mibs/RFC1158-MIB.py b/pysnmp/smi/mibs/RFC1158-MIB.py index ef5c2c16..6267f357 100644 --- a/pysnmp/smi/mibs/RFC1158-MIB.py +++ b/pysnmp/smi/mibs/RFC1158-MIB.py @@ -4,18 +4,47 @@ # Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pysnmp/license.html # -# PySNMP MIB module RFC1158-MIB (http://snmplabs.com/pysnmp) # ASN.1 source http://mibs.snmplabs.com:80/asn1/RFC1158-MIB -# Produced by pysmi-0.1.3 at Mon Apr 17 12:12:07 2017 -# On host grommit.local platform Darwin version 16.4.0 by user ilya -# Using Python version 3.4.2 (v3.4.2:ab2c023a9432, Oct 5 2014, 20:42:22) +# Produced by pysmi-0.4.0 at Thu Feb 14 23:20:17 2019 # # It is a stripped version of MIB that contains only symbols that is # unique to SMIv1 and have no analogues in SMIv2 # -Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, iso, Gauge32, MibIdentifier, Bits, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "iso", "Gauge32", "MibIdentifier", "Bits","Counter32") -snmpInBadTypes = MibScalar((1, 3, 6, 1, 2, 1, 11, 7), Counter32()).setMaxAccess("readonly") -if mibBuilder.loadTexts: snmpInBadTypes.setStatus('mandatory') -snmpOutReadOnlys = MibScalar((1, 3, 6, 1, 2, 1, 11, 23), Counter32()).setMaxAccess("readonly") -if mibBuilder.loadTexts: snmpOutReadOnlys.setStatus('mandatory') -mibBuilder.exportSymbols("RFC1158-MIB", snmpOutReadOnlys=snmpOutReadOnlys, snmpInBadTypes=snmpInBadTypes) + +if 'mibBuilder' not in globals(): + import sys + + sys.stderr.write(__doc__) + sys.exit(1) + +(Counter32, + MibScalar) = mibBuilder.importSymbols( + "SNMPv2-SMI", + "Counter32", + "MibScalar") + +_SnmpInBadTypes_Type = Counter32 +_SnmpInBadTypes_Object = MibScalar +snmpInBadTypes = _SnmpInBadTypes_Object( + (1, 3, 6, 1, 2, 1, 11, 7), + _SnmpInBadTypes_Type() +) +snmpInBadTypes.setMaxAccess("read-only") +if mibBuilder.loadTexts: + snmpInBadTypes.setStatus("mandatory") + +_SnmpOutReadOnlys_Type = Counter32 +_SnmpOutReadOnlys_Object = MibScalar +snmpOutReadOnlys = _SnmpOutReadOnlys_Object( + (1, 3, 6, 1, 2, 1, 11, 23), + _SnmpOutReadOnlys_Type() +) +snmpOutReadOnlys.setMaxAccess("read-only") +if mibBuilder.loadTexts: + snmpOutReadOnlys.setStatus("mandatory") + +mibBuilder.exportSymbols( + "RFC1158-MIB", + **{"snmpInBadTypes": snmpInBadTypes, + "snmpOutReadOnlys": snmpOutReadOnlys} +) |