Enhance Netconf message handling 74/111474/8
authorYaroslav Lastivka <yaroslav.lastivka@pantheon.tech>
Mon, 22 Apr 2024 08:55:42 +0000 (11:55 +0300)
committerRobert Varga <nite@hq.sk>
Sun, 19 May 2024 15:26:41 +0000 (15:26 +0000)
commitf20f45c3cd2de3aae49a764be04eeaa6aff9cbf8
treeec3a4bf120c2f0f93ae35f17074fa879c66a73e4
parentea3de26a201e58b72ce6b325b9735dc931adb456
Enhance Netconf message handling

Enhance the `onMessage` method in the NetconfServerSession handler to
include detailed response handling and error logging for outgoing
Netconf messages. This update introduces a listener to the
`sendMessage` call, which logs failures to send messages and
confirms successful transmissions. The changes aim to improve
debugging capabilities by providing specific message IDs for
each failed or successful send operation, aiding in better
traceability and error handling in the communication process.

JIRA: NETCONF-1261
Change-Id: I088da6832d3ab267717ee122d53371bf05e8360c
Signed-off-by: Yaroslav Lastivka <yaroslav.lastivka@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
protocol/netconf-server/src/main/java/org/opendaylight/netconf/server/NetconfServerSessionListener.java