libnetconf2 icon indicating copy to clipboard operation
libnetconf2 copied to clipboard

libnetconf2 usage

Open Rohit2387 opened this issue 5 years ago • 3 comments

Hi,

is there any example code available to start with simple Server implementation with get-config without need of storing in DB instead it will be in memory?

Br Rohit

Rohit2387 avatar Aug 14 '20 09:08 Rohit2387

Hi, this is not possible, libnetconf2 includes only NETCONF RPC processing but no datastore. sysrepo is (the only to my knowledge) an implementation of a YANG datastore and netopeer2 simply connects these 2 libraries into a working application.

michalvasko avatar Aug 14 '20 10:08 michalvasko

Hi,

yes i dont want data store just parsing and listening for incoming netconf rpc. Is there any example API usage ? for example : netconf_api_start_server netconf_api_install_certificate netconf_parse_rpc... netconf_send_rpc_repsonse?

Br Rohit

Rohit2387 avatar Sep 09 '20 10:09 Rohit2387

Hi, no, unfortunately there are no examples, but all the API functions should be well-documented. Also, you can look into netopeer2 code for a complex example.

michalvasko avatar Sep 09 '20 10:09 michalvasko