def getTarget(self, port, label_type, label_value):
        assert label_type in (None, cnt.ETHERNET_VLAN), 'Label must be None or VLAN'
        if label_type == cnt.ETHERNET_VLAN:
            vlan = int(label_value)
            assert 1 <= vlan <= 4095, label_value % 'Invalid label value for vlan: %s'

        ri = self.port_map[port]
        router, interface = ri.split(':')
        return NCSVPNTarget(router, interface, vlan)
dataset/ETHPy150Open NORDUnet/opennsa/opennsa/backends/ncsvpn.py/NCSVPNConnectionManager.getTarget/swapped operands of `%`