Handle notification reception on port state change 43/95543/9
authorGilles Thouenon <gilles.thouenon@orange.com>
Sat, 6 Mar 2021 14:32:34 +0000 (15:32 +0100)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Fri, 9 Apr 2021 19:17:34 +0000 (19:17 +0000)
commitbb4b275b90fad3b9c03d6eda2c657ff7eefdeaca
treeddc426e8d0f971905d8bbd1358b687d3e8969dba
parenta506290d8abacdebd23a8b3dc1e671ee7601e7af
Handle notification reception on port state change

- implement reception of a changeNotification on DeviceListener221 when
a device port state change
- rename DeviceListener to DeviceListener121 and align its
implementation on the DeviceListener221 one
- add a new DeviceListener710 with the same implementation of other
device listeners
- refactor all the NetconfTopologyListener class to remove technical
debts after extension to DeviceListener221 and DeviceListener710
- refactor NetconfTopologyListenerTest UT to be aligned with the new
implementation

JIRA: TRNSPRTPCE-422
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I7af3073071e47383dbf8629d261c7d07a8113e91
networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/NetConfTopologyListener.java
networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/listeners/DeviceListener.java [deleted file]
networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/listeners/DeviceListener121.java [new file with mode: 0644]
networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/listeners/DeviceListener221.java
networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/listeners/DeviceListener710.java [new file with mode: 0644]
networkmodel/src/main/resources/OSGI-INF/blueprint/networkmodel-blueprint.xml
networkmodel/src/test/java/org/opendaylight/transportpce/networkmodel/NetConfTopologyListenerTest.java