def get_nodes(self, kind=SMI_NODEKIND_ANY, statusfilt=None): next = _libsmi.smiGetFirstNode(self, kind) if not next: return yield next while 1: next = _libsmi.smiGetNextNode(next, kind) if not next: break if statusfilt: if next.status == statusfilt: yield next else: yield next
def smiGetNextNode(*args) -> "SmiNode *" : return _libsmi.smiGetNextNode(*args)
def smiGetNextNode(*args) -> "SmiNode *": return _libsmi.smiGetNextNode(*args)