Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

NETCONF server

Requirements

Install

libyang

Follow libyang instructions.

libnetconf2

Follow libnetconf2 instructions

sysrepo

Follow sysrepo instructions.

Netopeer2

Compile and install the server

$ mkdir build; cd build
$ cmake ..
$ make
# make install

Server configuration

To learn how to enable configuration and various server options with examples look into the configuration directory, specifically README.

Starting the server

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

Connecting to the server

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.