def getNetworkPort(self, port_id):
        for network_id, (network,_) in self.networks.items():
            try:
                port = network.getPort(port_id)
                return network_id, port
            except error.TopologyError:
                continue
        else:
            raise error.TopologyError(port_id % 'Cannot find port with id %s in topology')
dataset/ETHPy150Open NORDUnet/opennsa/opennsa/topology/nml.py/Topology.getNetworkPort/swapped operands of `%`