def get_tunnel_name_full(cls, network_type, local_ip, remote_ip):
    network_type = network_type[:3]
    remote_ip_hex = cls.get_ip_in_hex(remote_ip)
    if not remote_ip_hex:
        return None

    # Remove length of network_type and two dashes
    hashlen = (n_const.DEVICE_NAME_MAX_LEN - 2 - len(network_type)) // 2
    remote_ip_hex = encodeutils.to_utf8(remote_ip_hex)
    remote_ip_hash = hashlib.sha1(remote_ip_hex).hexdigest()[:hashlen]

    local_ip_hex = cls.get_ip_in_hex(local_ip)
    local_ip_hex = encodeutils.to_utf8(local_ip_hex)
    source_ip_hash = hashlib.sha1(local_ip_hex).hexdigest()[:hashlen]

    return '%s-%s-%s' % (network_type, source_ip_hash, remote_ip_hash)
dataset/ETHPy150Open openstack/neutron/neutron/tests/common/agents/ovs_agent.py/get_tunnel_name_full/swapped operands of `-`