-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[netopeer-server] transapi development: not a single callback found for the configuration change #148
Comments
Hi, Regards, |
Here is a snapshot of my datastore.xml:
Here is the struct definition inside proxyconf.c:
|
Hi Michal, Here is the file paths_file:
Here is the yang data model:
|
Hi, Regards, |
Here is netopeer-server -v 5 output at startup:
|
Even if I simplify the data model to have only 10 nodes (no child for node10), the problem remains the same: not a single callback can be found :( |
I never encountered such a problem with transapi version 5. |
Hm, perhaps the generated file is wrong because the paths file has invalid namespace prefix? You defined |
I don't think it comes from the ns. I have changed prefix and ns on the fly while posting here, but in my own files, everything's consistent. |
Hi, Regards, |
Code, prefix etc. displays my company name. which I want to avoid to divulge. |
Hi Michal, I have slightly modified the yang data model. Here is the new one:
Here is the paths_file:
Here is the output at startup (netopeer-server -v 5):
I have also created a function called by transapi_init() which parses each line of the proxy configuration and builds the xml tree in memory. The resulting output is as follows:
To summarize: Best, |
Hi, Regards, |
Hi, Best, |
Hello,
I have developed many transAPI modules in the past, but recently I have encountered a really annoying problem that I cannot solve.
Each time I enable my transAPI, netopeer-server displays:
Model "proxy-conf" transAPI: there was not a single callback found for the configuration change.
My callbacks are correctly defined in proxy-conf.c.
I am able to parse a file proxy.conf when the transAPI is loaded, and to append the content of the file inside a xml tree buffer (for further get/edit). I can use edit-config on the running datastore, but the modifications must also be applied to proxy.conf which only works IF the callbacks are called.
I have regenerated hundred times my transAPI with lnctools and reinstalled netopeer-server from scratch. Nothing worked.
I'm using transapi version 6 with libnetconf 0.10.
I urgently need some help.
Thanks.
The text was updated successfully, but these errors were encountered: