How to select the CUSTOM datastore type when adding a module using netopeer-manager?

93 views
Skip to first unread message

sbab...@gmail.com

unread,
Mar 23, 2015, 4:08:57 AM3/23/15
to neto...@googlegroups.com
Hi Radek,

I could not find any option available to select the CUSTOM type datastore when adding a module using netopeer-manager.

Also, CUSTOM type is not handled in module_enable function in cfgnetopeer-transapi.c.

Please help me to add a module with CUSTOM datastore in multi level server.

Thanks,
Babu

Radek Krejčí

unread,
Mar 23, 2015, 4:33:02 AM3/23/15
to sbab...@gmail.com, neto...@googlegroups.com
Hi Babu,

custom datastores are libnetconf feature, but, currently, this type of datastore is not supported by the netopeer-server.

Regards,
Radek


Dne 23.3.2015 v 09:08 sbab...@gmail.com napsal(a):

sbab...@gmail.com

unread,
Mar 23, 2015, 6:33:32 AM3/23/15
to neto...@googlegroups.com, sbab...@gmail.com
Hi Radek,

Thanks for the response.

Is this not supported by netopeer-manager or i can edit the server initilazation code to register CUSTOM callbacks for a model using ncds_custom_set_data?

Is CUSTOM type not supported in single-level server also?

Regards,
Babu

Radek Krejčí

unread,
Mar 23, 2015, 7:35:52 AM3/23/15
to sbab...@gmail.com, neto...@googlegroups.com
Hi Babu,

netopeer-server manages transAPI modules with their datastores dynamically and the code does not support assigning custom datastore callbacks now. It is possible to add this functionality into the netopeer-server code, but it is not as simple as adding a few lines of code with calling appropriate libnetconf functions (well, maybe for your specific purposes, but such a patch would not be accepted to the netopeer project).

Neither single-server support this feature, however, the code is much more simple and datastores are set statically, so it is much easier to add this functionality there - but I'm actually going to remove the single layer server from the project, not to extend it with a new functionality.

For both cases, you can inspire in [1].

If this is a killer feature for you, I think we are able to add it into netopeer-server. However, due to other works we currently have, it may takes several weeks.

Regards,
Radek

[1] - https://github.com/openvswitch/of-config/blob/master/server/server.c#L239


Dne 23.3.2015 v 11:33 sbab...@gmail.com napsal(a):

sbab...@gmail.com

unread,
Mar 24, 2015, 3:53:59 AM3/24/15
to neto...@googlegroups.com, sbab...@gmail.com

Hi Radek,

Thanks again for the details.

I will try adding code for custom type model registration and check the functionality.
Reply all
Reply to author
Forward
0 new messages