NETCONF server
Follow libyang instructions.
Follow libnetconf2 instructions
Follow sysrepo instructions.
$ mkdir build; cd build
$ cmake ..
$ make
# make install
To learn how to enable configuration and various server options with examples look into the configuration directory, specifically README.
Before starting Netopeer2 server, there must be running sysrepod:
$ sysrepod
Netopeer2 server can be started by executing the following command:
$ netopeer2-server
The daemon accepts several arguments for specifying log verbosity level or for debugging. You can display them by executing netopeer2-server -h:
$ netopeer2-server -h
Usage: netopeer2-server [-dhV] [-v level]
-d debug mode (do not daemonize and print
verbose messages to stderr instead of syslog)
-h display help
-V show program version
-v level verbose output level:
0 - errors
1 - errors and warnings
2 - errors, warnings and verbose messages
-c category[,category]* verbose debug level, print only these debug message categories
categories: DICT, YANG, YIN, XPATH, DIFF, MSG, EDIT_CONFIG, SSH, SYSREPO
After installation, server has a default startup configuration which enables SSH connections on all the interfaces on the designated NETCONF SSH port 830. To connect to the server on localhost the Netopeer2 CLI can be used:
$ netopeer2-cli
> connect
Local system users are used for authentication.