summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelie <elie>2015-06-04 06:11:25 +0000
committerelie <elie>2015-06-04 06:11:25 +0000
commitc0cbd64438fb23f0d8458244909a1f0e8634dd6d (patch)
tree102df8a6dc9cf36476b92d4510932171602c80d3
parent51d5ff0ad3135542e47b53b3e8c5ae843c7a478f (diff)
downloadpysnmp-c0cbd64438fb23f0d8458244909a1f0e8634dd6d.tar.gz
use @mib@ placeholder instead of <mib> at pysmi
-rw-r--r--examples/smi/mib-lookup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/smi/mib-lookup.py b/examples/smi/mib-lookup.py
index 12fcfb5..1c83afa 100644
--- a/examples/smi/mib-lookup.py
+++ b/examples/smi/mib-lookup.py
@@ -14,7 +14,7 @@ mibVar = rfc1902.ObjectIdentity('IF-MIB', 'ifInOctets', 1)
# create pysnmp MIBs on demand from ASN.1 sources downloaded from
# a web site.
try:
- mibVar.addMibCompiler('http://mibs.snmplabs.com/asn1/<mib>')
+ mibVar.addMibCompiler('http://mibs.snmplabs.com/asn1/@mib@')
except error.SmiError:
print('WARNING: not using MIB compiler (PySMI not installed)')