Update portmapping with switching-pool from notif 77/96077/3
authorGilles Thouenon <gilles.thouenon@orange.com>
Fri, 7 May 2021 08:41:18 +0000 (10:41 +0200)
committerBalagangadhar Bathula <bb4341@att.com>
Tue, 3 Aug 2021 13:18:10 +0000 (09:18 -0400)
commit034ebeebb1579d4e2a558f5b731371c9ccf59000
treedc32beeba965a93c7aa055e119afe5c9cd5c08fb
parentaa8158bd53b49ee57aab4b025ad18d666478a58d
Update portmapping with switching-pool from notif

Update the switching-pool-lcp list of portmapping from a
change-notification received from a 7.1 muxponder device. Manage such a
7.1 device notification to create, or update if object already exists,
the switching-pool-lcp container abstracting the device
odu-switching-pools one.
- add new updatePortMappingWithOduSwitchingPools method in PortMapping
interface
- implement this method in PortMappingImpl and PortMappingVersion710
classes
- keep the existing building of switching-pool-lcp in
createXpdrPortMapping method in case existing odu-switching-pools would
exist at the initial device connection
- manage reception of device notification whose target is
odu-switching-pools and port-list in DeviceListener710 class

JIRA: TRNSPRTPCE-405
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: Ieb7dd5f2a301feb4543c96c3502007012e98db57
common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMapping.java
common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingImpl.java
common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingVersion710.java
networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/listeners/DeviceListener710.java