def __unicode__(self):
        fs_desc = super(ExperimentFLowSpace, self).__unicode__()
        
        pn = ""
        if self.port_number_s == self.port_number_e:
            pn = ", port number: %d"%self.port_number_s
        elif self.port_number_s > 0 or self.port_number_e < 0xFFFF:
            pn = (self.port_number_s,self.port_number_e)%", port number: %d-%d"
            
        dir = ""
        if self.direction==2:
            dir = ", direction: bidirectional"
        elif self.direction==1:
            dir = ", direction: ingress"
        elif self.direction==0:
            dir = ", direction: egress"
            
        return "dpid: %s, FS: %s%s%s"%(self.dpid,fs_desc,pn,dir)   

#obsolete
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/foam/ethzlegacyoptinstuff/legacyoptin/optsmodels.py/ExperimentFLowSpace.__unicode__/swapped operands of `%`