Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Sysrepo Plugin Interfaces


The goal of this project is to provide a method of configuring networking on generic Linux systems using the Sysrepo NETCONF server implementation.

About this component

This repository contains several Sysrepo plugins related to newtork management.

The first, sysrepo-plugin-interfaces is based on the ietf-interfaces YANG module which contains "a collection of YANG definitions for managing network interfaces". More information about the specific YANG module can be found in RFC 7223: A YANG Data Model for Interface Management.

The second, sysrepo-plugin-routing is based on the ietf-routing YANG module which contains "generic components of a routing data model" and ietf-ipv4-unicast-routing and ietf-ipv6-unicast-routing which augment ietf-routing with IPv4 and IPv6 specific data. More information about ietf-routing is available in RFC 8022: A YANG Data Model for Routing Management


Besides the usual C development environment, the following additional dependencies are required:


First clone the repository:

$ git clone
$ git submodule init
$ git submodule update

Next, create a build directory and generate the build recipes using CMake:

$ mkdir build
$ cd build
$ cmake ..

By default both plugins will be built, but either of them can be disabled by setting the appropriate CMake plugin option to OFF. For example, to build only the routing plugin the following command should be executed instead:


Lastly, invoke the build and install using make:

$ make -j$(nproc)

Build artifacts

Plugin will be built as a standalone application and also as a sysrepo-plugind module. For example, for the ietf-interfaces plugin there are two build artifacts:

  • ietf-interfaces-plugin: standalone application
  • sysrepo-plugind module which exposes the plugin init and cleanup callbacks and can be installed by invoking the following command: sysrepo-plugind -P

Sysrepo/YANG requirements

The plugins require several YANG modules to be loaded into the Sysrepo datastore and several features need to be enabled. For the interfaces plugin this can be achieved by invoking the following commands:

$ sysrepoctl -i ./yang/ietf-interfaces@2018-02-20.yang
$ sysrepoctl -i ./yang/iana-if-type@2017-01-19.yang
$ sysrepoctl -i ./yang/ietf-ip@2018-02-22.yang
$ sysrepoctl -i ./yang/ietf-if-extensions@2020-07-29.yang
$ sysrepoctl -i ./yang/ieee802-dot1q-types.yang
$ sysrepoctl -i ./yang/ietf-if-vlan-encapsulation@2020-07-13.yang
$ sysrepoctl --change ietf-interfaces --enable-feature if-mib
$ sysrepoctl --change ietf-if-extensions --enable-feature sub-interfaces

For the routing plugin, the following models have to be installed:

$ sysrepoctl -i ./yang/ietf-interfaces@2018-02-20.yang
$ sysrepoctl -i ./yang/iana-if-type@2017-01-19.yang
$ sysrepoctl -i ./yang/ietf-ip@2018-02-22.yang
$ sysrepoctl -i ./yang/ietf-routing@2018-03-13.yang
$ sysrepoctl -i ./yang/ietf-ipv4-unicast-routing@2018-03-13.yang
$ sysrepoctl -i ./yang/ietf-ipv6-unicast-routing@2018-03-13.yang -s ./yang

Code of Conduct

This project has adopted the Contributor Covenant in version 2.0 as our code of conduct. Please see the details in our All contributors must abide by the code of conduct.

Working Language

We decided to apply English as the primary project language.

Consequently, all content will be made available primarily in English. We also ask all interested people to use English as language to create issues, in their code (comments, documentation etc.) and when you send requests to us. The application itself and all end-user facing content will be made available in other languages as needed.


The full documentation for the Sysrepo interfaces and routing plugins can be found in the documentation directory.

Support and Feedback

The following channels are available for discussions, feedback, and support requests:

Type Channel
Other Requests

How to Contribute

Contribution and feedback is encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines. By participating in this project, you agree to abide by its Code of Conduct at all times.


Our commitment to open source means that we are enabling -in fact encouraging- all interested parties to contribute and become part of its developer community.


Copyright (C) 2021 Deutsche Telekom AG.

Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the License.

You may obtain a copy of the License by reviewing the file LICENSE in the repository.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the LICENSE for the specific language governing permissions and limitations under the License.


No description, website, or topics provided.



Code of conduct

Security policy





No releases published


No packages published