Propagate eventTime during notification transformation 87/105687/1
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 22:59:00 +0000 (00:59 +0200)
commit6338139f1c7eab6c794d4bbebee3b8ae33a3a4ed
tree5fa80707915fd1b4dd041d10f72d188203e9c91f
parent1d81d58e0a48d2641bd0873b98c092cb03d262da
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>
(cherry picked from commit 1ad7ad47f032df11ca7b88ded7e2fd3e29eeae0c)
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