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-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:
- sysrepo-plugins-common library
First clone the repository:
$ git clone https://github.com/telekom/sysrepo-plugin-interfaces $ 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
For example, to build only the routing plugin the following command should be executed instead:
$ cmake -DINTERFACES_PLUGIN=OFF ..
Lastly, invoke the build and install using
$ make -j$(nproc)
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-plugindmodule which exposes the plugin init and cleanup callbacks and can be installed by invoking the following command:
sysrepo-plugind -P libsrplg-ietf-interfaces.so
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 ./email@example.com $ sysrepoctl -i ./firstname.lastname@example.org $ sysrepoctl -i ./email@example.com $ sysrepoctl -i ./firstname.lastname@example.org $ sysrepoctl -i ./yang/ieee802-dot1q-types.yang $ sysrepoctl -i ./email@example.com $ 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 ./firstname.lastname@example.org $ sysrepoctl -i ./email@example.com $ sysrepoctl -i ./firstname.lastname@example.org $ sysrepoctl -i ./email@example.com $ sysrepoctl -i ./firstname.lastname@example.org $ sysrepoctl -i ./email@example.com -s ./yang
Code of Conduct
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:
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.