Example #1
0
	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
Example #2
0
 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
Example #3
0
def smiGetNextNode(*args) -> "SmiNode *" :
  return _libsmi.smiGetNextNode(*args)
Example #4
0
def smiGetNextNode(*args) -> "SmiNode *":
    return _libsmi.smiGetNextNode(*args)