From 3a0acfa0c78cd345eac38f891824f32e30624fd7 Mon Sep 17 00:00:00 2001 From: Ilya Etingof Date: Wed, 30 Nov 2016 00:04:44 +0100 Subject: missing index added to bundled RFC1213::atEntry MIB table --- CHANGES.txt | 1 + pysnmp/smi/mibs/RFC1213-MIB.py | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index fff8eebd..ddca959d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -23,6 +23,7 @@ Github `repo `_ present (e.g. py2exe/cx_freeze environments). - Fix broken 3DES key localization and encryption procedures. - Updated IP address for demo.snmplabs.com in examples. +- Missing index added to bundled RFC1213::atEntry MIB table Revision 4.3.2, released 2016-02-12 ----------------------------------- diff --git a/pysnmp/smi/mibs/RFC1213-MIB.py b/pysnmp/smi/mibs/RFC1213-MIB.py index 21e30eaf..ce6473ad 100644 --- a/pysnmp/smi/mibs/RFC1213-MIB.py +++ b/pysnmp/smi/mibs/RFC1213-MIB.py @@ -19,14 +19,14 @@ Bits, Counter32,) = mibBuilder.importSymbols("SNMPv2-SMI", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "mib-2", "IpAddress", "TimeTicks", "iso", "Gauge32", "MibIdentifier", "Bits", "Counter32") -(DisplayString,) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString") +(DisplayString, PhysAddress) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "PhysAddress") at = MibIdentifier((1, 3, 6, 1, 2, 1, 3)) ip = MibIdentifier((1, 3, 6, 1, 2, 1, 4)) egp = MibIdentifier((1, 3, 6, 1, 2, 1, 8)) -atTable = MibTable((1, 3, 6, 1, 2, 1, 3, 1)).setMaxAccess("readwrite") -atEntry = MibTableRow((1, 3, 6, 1, 2, 1, 3, 1, 1)).setMaxAccess("readwrite") +atTable = MibTable((1, 3, 6, 1, 2, 1, 3, 1)) +atEntry = MibTableRow((1, 3, 6, 1, 2, 1, 3, 1, 1)).setIndexNames((0, "RFC1213-MIB", "atIfIndex"), (0, "RFC1213-MIB", "atNetAddress")) atIfIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 3, 1, 1, 1), Integer32()).setMaxAccess("readwrite") -atPhysAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 3, 1, 1, 2), OctetString()).setMaxAccess("readwrite") +atPhysAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 3, 1, 1, 2), PhysAddress()).setMaxAccess("readwrite") atNetAddress = MibTableColumn((1, 3, 6, 1, 2, 1, 3, 1, 1, 3), IpAddress()).setMaxAccess("readwrite") ipRouteTable = MibTable((1, 3, 6, 1, 2, 1, 4, 21)) ipRouteEntry = MibTableRow((1, 3, 6, 1, 2, 1, 4, 21, 1)).setIndexNames((0, "RFC1213-MIB", "ipRouteDest")) -- cgit v1.2.1