def __str__(self):
        if self.vlan:
            return '<JunosEXTarget %s#%i>' % (self.port, self.vlan)
        else:
            return '<JunosEXTarget %s>' % self.port
dataset/ETHPy150Open NORDUnet/opennsa/opennsa/backends/juniperex.py/JunosEXTarget.__str__/original