diff options
author | elie <elie> | 2010-02-05 14:42:37 +0000 |
---|---|---|
committer | elie <elie> | 2010-02-05 14:42:37 +0000 |
commit | e83e84937a40a96a9b1f0e24aa4ba22b8119adb2 (patch) | |
tree | b27126318fe232b14f4fe1651f1f5ea6920d79b6 | |
parent | e0e314ce1c351686d14f000675a83254b13697c7 (diff) | |
download | pysnmp-e83e84937a40a96a9b1f0e24aa4ba22b8119adb2.tar.gz |
fix to tree walk that contains identical leading parts of indices
-rw-r--r-- | pysnmp/smi/mibs/SNMPv2-SMI.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pysnmp/smi/mibs/SNMPv2-SMI.py b/pysnmp/smi/mibs/SNMPv2-SMI.py index a9d76b8..bcbd0eb 100644 --- a/pysnmp/smi/mibs/SNMPv2-SMI.py +++ b/pysnmp/smi/mibs/SNMPv2-SMI.py @@ -516,6 +516,13 @@ class MibTableColumn(MibScalar): self.__createdInstances = {}; self.__destroyedInstances = {} self.__rowOpWanted = {} + # No branches here, terminal OIDs only + def getBranch(self, name, idx): + if len(self.name) < len(name): + if self._vars.has_key(name): + return self._vars[name] + raise error.NoSuchObjectError(name=name, idx=idx) + def getNode(self, name, idx=None): try: return MibScalar.getNode(self, name, idx=None) |