Keep AvailFreqMaps when netconf session restores 53/99853/2
authorJonas Mårtensson <jonas.martensson@ri.se>
Fri, 4 Feb 2022 10:28:20 +0000 (11:28 +0100)
committerBalagangadhar Bathula <bb4341@att.com>
Thu, 24 Feb 2022 21:13:14 +0000 (16:13 -0500)
commit80ef252ab7e7152dde093a2dad240180be409861
treed043d35fd71742ab1cb52651abbea753ce64f66a
parentadb06a99e0b2db024b5d28cabee4b77f6de59b6d
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