Keep AvailFreqMaps when netconf session restores 99/99599/3
authorJonas Mårtensson <jonas.martensson@ri.se>
Fri, 4 Feb 2022 10:28:20 +0000 (11:28 +0100)
committerGilles Thouenon <gilles.thouenon@orange.com>
Wed, 23 Feb 2022 10:15:53 +0000 (10:15 +0000)
commit080d5a9e6e52a60909077b015fdb0753071d3b6a
tree3280758ab6da30c23e8dee412da48a00ea588507
parent23715aae995140fc24ff8d05162f52fba42278f2
Keep AvailFreqMaps when netconf session restores

When the netconf session with a ROADM went down and then it came up
again, the node was re-created in the openroadm topology, resetting the
available frequencies bitmaps for both degrees and SRGs. This meant
that the PCE could allocate already used spectrum for new services,
disrupting existing services.

When creating a new node, first check if it already exists in the
portmapping, and if so, don't initialize available frequencies.

JIRA: TRNSPRTPCE-594
Signed-off-by: Jonas Mårtensson <jonas.martensson@ri.se>
Change-Id: I62f581ed4247b594b14f7c3769e4053b5f23116b
networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/service/NetworkModelServiceImpl.java
networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/util/OpenRoadmTopology.java