Closed timho93 closed 6 years ago
Tim,
The underlying ncclient library keys messages by the message-id
, allowing it to take a response and match it to the original request, making sure the original caller gets the notification. The subscription-id
is part of the rest of the payload, but that is what the consumer needs to get back. Thus, to make the link between the original establish-subscription
request and when push messages start to arrive, keyed by the subscription-id
, the message-id
is used as a temporary key, replaced when the subscription-id
is learned.
Cheers,
Einar
That means that the code runs simply to fast to learn the subscription-id before the user-defined callback function is called or what does that mean ?
Thank you for you help
Crossing messages on separate threads...please see other issue you raised, but yes, I suspect that there may be a race condition here that I haven't previously encountered.
Cheers,
Einar
This is an underlying netconf server issue, not an ncclient
issue. Closing off!
Hey,
i am not sure if this is a bug or false usage but here is my code:
Following Error occurs:
I take a look at the code and printed out some parts. The subsction_listener od YangPushListener holds the callback and errorback like this:
A notification itself holds the subscription id like this:
So the error occuring in callback(self, root, raw) method of YangPushListener:
seems to be a result of the following part:
'urn:uuid:7e68a11e-ecad-4ce4-8255-0483a0ce707e' != 2147483664
Regards Tim