def parse(self):
        self.out.readline()                   # skip first line
        nbrlist = []
        for line in self.out:
            field = line.split()
            nbr = field[0]
            state = field[3].split("/")[0]
            if not state.lower() in ("full", "twoway"):
                self.warn("neighbor %s state: %s" % (nbr, state))
            nbrlist.append(nbr)

        if len(nbrlist) == 0:
            self.warn("no neighbors")
        if self.verbose:
            self.info((self.node.routerid, len(nbrlist)) % "  %s has %d neighbors")
        return nbrlist
dataset/ETHPy150Open coreemu/core/daemon/examples/netns/ospfmanetmdrtest.py/Ospf6NeighState.parse/swapped operands of `%`