def newifindex(self):
        self.lock.acquire()
        try:
            while self.ifindex in self._netif:
                self.ifindex += 1
            ifindex = self.ifindex
            self.ifindex += 1
            return ifindex
        finally:
            self.lock.release()
dataset/ETHPy150Open coreemu/core/daemon/core/phys/pnodes.py/PhysicalNode.newifindex/original