Closed Krisscut closed 10 months ago
Yes, nothing to prevent the data being mixed since the notifications are received and printed in a separate thread. Consider it a CLI limitation.
Ok thanks, that's good to know ! Maybe something that could be put somewhere on the documentation in case next users are wondering about it as well.
The main purpose of the CLI is for simple interactive NETCONF sessions. On the off-chance this happens to you, it should be fine, not so much when using it in a script and expecting exact output/automated processing.
Yes I plan to move to ncclient or something like that in the future, but you know how it is, sometime you have to live with legacy code until the time to refactor comes. 😶
Version: netopeer2-2.1.62
Hi,
I noticed in a automated test a weird behavior, I assume it comes from netopeer2-cli. In one occasion, netopeer2-cli displayed a notification right at the same time as it received the result from a get rpc
It's worth noting the automation is done through pexpect on top of the netopeer2-cli. In the meantime, this test was modified to have 2 instances of netopeer2-cli to separate the "command session" from the "notification session" but I wanted to share this usecase.