Propagate eventTime during notification transformation 83/105683/3
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 25 Apr 2023 21:13:16 +0000 (23:13 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 25 Apr 2023 21:38:02 +0000 (23:38 +0200)
commit1ad7ad47f032df11ca7b88ded7e2fd3e29eeae0c
treedc4cbdfcdce3336645ae4ab2f6f0fc3677cb8cf0
parent6beaa562530fb037e60e67d6a4a4f348cb9a6607
Propagate eventTime during notification transformation

Binding Notification objects expose the time when the event was
generated through an optional EventInstantAware interface. Recognize
when a Notification carries this annotation and propagate it correctly.

JIRA: NETCONF-1001
Change-Id: I06ce94ffbe11bafeedb60aaa28765e151de53b3f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/mdsal-netconf-notification/src/main/java/org/opendaylight/netconf/mdsal/notification/impl/NotificationsTransformUtil.java
netconf/mdsal-netconf-notification/src/test/java/org/opendaylight/netconf/mdsal/notification/impl/NotificationsTransformUtilTest.java