replace portmapping FNV1-128 by FNV1-64 + Base64 05/90605/13
authorguillaume.lambert <guillaume.lambert@orange.com>
Tue, 23 Jun 2020 14:14:31 +0000 (16:14 +0200)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Wed, 24 Jun 2020 07:02:30 +0000 (07:02 +0000)
commita276255479f5ba8a3969b0645d001cb593982afe
treef4470be1b790606bd9cc7dc19371eee49fd8f0a8
parent0e0c2618e4c7e429649cd897e08af7ad86200c16
replace portmapping FNV1-128 by FNV1-64 + Base64

FNV1 128bit hash produces 16 bytes results but they cannot easily be
represented as a UTF-8 readable string of 16 characters as required
by SAPI/DAPI OpenROADM specification.
Base64 conversion allows to fix this but generates an overhead.
By using FNV1 64bit hash + Base64, we can guarantee the results
will not exceed 16 characters (usually around 13).

Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I559b5439f83cffc619a1db4e29b9d78c8401ed06
common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingVersion121.java
common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingVersion221.java
tests/transportpce_tests/1.2.1/test_portmapping.py
tests/transportpce_tests/1.2.1/test_renderer_service_path_nominal.py
tests/transportpce_tests/2.2.1/test_otn_renderer.py
tests/transportpce_tests/2.2.1/test_portmapping.py
tests/transportpce_tests/2.2.1/test_renderer_service_path_nominal.py