def writeCommit(self, name, val, idx, acInfo): rowIsActive = self.__delegate('Commit', name, val, idx, acInfo) if rowIsActive: for mibNode in self._vars.values(): colNode = mibNode.getNode(mibNode.name + name[len(self.name) + 1:]) if not colNode.syntax.hasValue(): raise error.InconsistentValueError(msg='Row consistency check failed for %r' % colNode)
def smiWrite(self, name, value, idx): if value != self: raise error.InconsistentValueError(idx=idx, name=name) value = value + 1 if value > 2147483646: value = 0 return self.clone(value)
def setValue(self, value): if value is not None: if value != self: raise error.InconsistentValueError() value = value + 1 if value > 2147483646: value = 0 return self.clone(self, value)