From 1f91b6d7b5a454cf954bc28b15264e1995d29191 Mon Sep 17 00:00:00 2001 From: Mateo Cindric Date: Wed, 14 Dec 2022 14:28:12 +0000 Subject: [PATCH] Include license info in all C source and header files --- src/interfaces/src/main.c | 12 ++ src/interfaces/src/plugin.c | 12 ++ src/interfaces/src/plugin.h | 12 ++ .../src/plugin/api/interfaces/change.c | 12 ++ .../src/plugin/api/interfaces/change.h | 12 ++ .../src/plugin/api/interfaces/check.c | 12 ++ .../src/plugin/api/interfaces/check.h | 12 ++ .../interface/carrier-delay/change.c | 12 ++ .../interface/carrier-delay/change.h | 12 ++ .../plugin/api/interfaces/interface/change.c | 12 ++ .../plugin/api/interfaces/interface/change.h | 12 ++ .../interfaces/interface/dampening/change.c | 12 ++ .../interfaces/interface/dampening/change.h | 12 ++ .../dot1q-vlan/outer-tag/change.c | 12 ++ .../dot1q-vlan/outer-tag/change.h | 12 ++ .../dot1q-vlan/second-tag/change.c | 12 ++ .../dot1q-vlan/second-tag/change.h | 12 ++ .../interface/ipv4/address/change.c | 12 ++ .../interface/ipv4/address/change.h | 12 ++ .../interfaces/interface/ipv4/address/load.c | 12 ++ .../interfaces/interface/ipv4/address/load.h | 12 ++ .../api/interfaces/interface/ipv4/change.c | 12 ++ .../api/interfaces/interface/ipv4/change.h | 12 ++ .../api/interfaces/interface/ipv4/load.c | 12 ++ .../api/interfaces/interface/ipv4/load.h | 12 ++ .../interface/ipv4/neighbor/change.c | 12 ++ .../interface/ipv4/neighbor/change.h | 12 ++ .../interfaces/interface/ipv4/neighbor/load.c | 12 ++ .../interfaces/interface/ipv4/neighbor/load.h | 12 ++ .../interface/ipv6/address/change.c | 12 ++ .../interface/ipv6/address/change.h | 12 ++ .../interfaces/interface/ipv6/address/load.c | 12 ++ .../interfaces/interface/ipv6/address/load.h | 12 ++ .../interface/ipv6/autoconf/change.c | 12 ++ .../interface/ipv6/autoconf/change.h | 12 ++ .../api/interfaces/interface/ipv6/change.c | 12 ++ .../api/interfaces/interface/ipv6/change.h | 12 ++ .../api/interfaces/interface/ipv6/load.c | 12 ++ .../api/interfaces/interface/ipv6/load.h | 12 ++ .../interface/ipv6/neighbor/change.c | 12 ++ .../interface/ipv6/neighbor/change.h | 12 ++ .../interfaces/interface/ipv6/neighbor/load.c | 12 ++ .../interfaces/interface/ipv6/neighbor/load.h | 12 ++ .../plugin/api/interfaces/interface/load.c | 12 ++ .../plugin/api/interfaces/interface/load.h | 12 ++ .../src/plugin/api/interfaces/load.c | 12 ++ .../src/plugin/api/interfaces/load.h | 12 ++ .../src/plugin/api/interfaces/read.c | 62 ++++++---- .../src/plugin/api/interfaces/read.h | 14 ++- .../src/plugin/api/interfaces/store.c | 117 ++++++++++-------- .../src/plugin/api/interfaces/store.h | 12 ++ src/interfaces/src/plugin/common.h | 12 ++ src/interfaces/src/plugin/context.h | 12 ++ .../src/plugin/data/interfaces/interface.c | 12 ++ .../src/plugin/data/interfaces/interface.h | 12 ++ .../plugin/data/interfaces/interface/ipv4.c | 12 ++ .../plugin/data/interfaces/interface/ipv4.h | 12 ++ .../data/interfaces/interface/ipv4/address.c | 12 ++ .../data/interfaces/interface/ipv4/address.h | 12 ++ .../data/interfaces/interface/ipv4/neighbor.c | 27 ++-- .../data/interfaces/interface/ipv4/neighbor.h | 14 ++- .../plugin/data/interfaces/interface/ipv6.c | 12 ++ .../plugin/data/interfaces/interface/ipv6.h | 12 ++ .../data/interfaces/interface/ipv6/address.c | 31 +++-- .../data/interfaces/interface/ipv6/address.h | 14 ++- .../data/interfaces/interface/ipv6/neighbor.c | 27 ++-- .../data/interfaces/interface/ipv6/neighbor.h | 14 ++- .../data/interfaces/interface/linked_list.h | 12 ++ .../plugin/data/interfaces/interface_state.c | 12 ++ .../plugin/data/interfaces/interface_state.h | 12 ++ src/interfaces/src/plugin/ly_tree.c | 12 ++ src/interfaces/src/plugin/ly_tree.h | 12 ++ src/interfaces/src/plugin/running/load.c | 12 ++ src/interfaces/src/plugin/running/load.h | 12 ++ src/interfaces/src/plugin/running/store.c | 12 ++ src/interfaces/src/plugin/running/store.h | 12 ++ src/interfaces/src/plugin/startup/load.c | 12 ++ src/interfaces/src/plugin/startup/load.h | 12 ++ src/interfaces/src/plugin/startup/store.c | 12 ++ src/interfaces/src/plugin/startup/store.h | 12 ++ .../src/plugin/subscription/change.c | 12 ++ .../src/plugin/subscription/change.h | 12 ++ .../src/plugin/subscription/operational.c | 12 ++ .../src/plugin/subscription/operational.h | 12 ++ src/interfaces/src/plugin/subscription/rpc.c | 12 ++ src/interfaces/src/plugin/subscription/rpc.h | 12 ++ src/interfaces/src/plugin/types.h | 12 ++ 87 files changed, 1151 insertions(+), 105 deletions(-) diff --git a/src/interfaces/src/main.c b/src/interfaces/src/main.c index 00236085..fe03630f 100644 --- a/src/interfaces/src/main.c +++ b/src/interfaces/src/main.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include #include #include diff --git a/src/interfaces/src/plugin.c b/src/interfaces/src/plugin.c index dc621716..58064257 100644 --- a/src/interfaces/src/plugin.c +++ b/src/interfaces/src/plugin.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "plugin.h" #include "netlink/cache.h" #include "netlink/route/link.h" diff --git a/src/interfaces/src/plugin.h b/src/interfaces/src/plugin.h index 72b7bc91..20ee9b93 100644 --- a/src/interfaces/src/plugin.h +++ b/src/interfaces/src/plugin.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_H #define INTERFACES_PLUGIN_H diff --git a/src/interfaces/src/plugin/api/interfaces/change.c b/src/interfaces/src/plugin/api/interfaces/change.c index fc8fa98b..5b984e70 100644 --- a/src/interfaces/src/plugin/api/interfaces/change.c +++ b/src/interfaces/src/plugin/api/interfaces/change.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "change.h" #include "netlink/route/addr.h" #include "plugin/common.h" diff --git a/src/interfaces/src/plugin/api/interfaces/change.h b/src/interfaces/src/plugin/api/interfaces/change.h index c8e4247e..48167167 100644 --- a/src/interfaces/src/plugin/api/interfaces/change.h +++ b/src/interfaces/src/plugin/api/interfaces/change.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_CHANGE_H #define INTERFACES_PLUGIN_API_INTERFACES_CHANGE_H diff --git a/src/interfaces/src/plugin/api/interfaces/check.c b/src/interfaces/src/plugin/api/interfaces/check.c index 2f9c62c6..8861b36a 100644 --- a/src/interfaces/src/plugin/api/interfaces/check.c +++ b/src/interfaces/src/plugin/api/interfaces/check.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "check.h" #include "plugin/api/interfaces/load.h" #include "plugin/common.h" diff --git a/src/interfaces/src/plugin/api/interfaces/check.h b/src/interfaces/src/plugin/api/interfaces/check.h index 4d8fc646..d013befe 100644 --- a/src/interfaces/src/plugin/api/interfaces/check.h +++ b/src/interfaces/src/plugin/api/interfaces/check.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_CHECK_H #define INTERFACES_PLUGIN_API_INTERFACES_CHECK_H diff --git a/src/interfaces/src/plugin/api/interfaces/interface/carrier-delay/change.c b/src/interfaces/src/plugin/api/interfaces/interface/carrier-delay/change.c index 240ffa3c..a2042a61 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/carrier-delay/change.c +++ b/src/interfaces/src/plugin/api/interfaces/interface/carrier-delay/change.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "change.h" #include "plugin/common.h" diff --git a/src/interfaces/src/plugin/api/interfaces/interface/carrier-delay/change.h b/src/interfaces/src/plugin/api/interfaces/interface/carrier-delay/change.h index 94faedb6..6026f108 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/carrier-delay/change.h +++ b/src/interfaces/src/plugin/api/interfaces/interface/carrier-delay/change.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_CARRIER_DELAY_CHANGE_H #define INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_CARRIER_DELAY_CHANGE_H diff --git a/src/interfaces/src/plugin/api/interfaces/interface/change.c b/src/interfaces/src/plugin/api/interfaces/interface/change.c index c35ffa1f..fe6c7c14 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/change.c +++ b/src/interfaces/src/plugin/api/interfaces/interface/change.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "change.h" #include "netlink/errno.h" #include "netlink/route/link.h" diff --git a/src/interfaces/src/plugin/api/interfaces/interface/change.h b/src/interfaces/src/plugin/api/interfaces/interface/change.h index 531a0a4c..88710967 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/change.h +++ b/src/interfaces/src/plugin/api/interfaces/interface/change.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_CHANGE_H #define INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_CHANGE_H diff --git a/src/interfaces/src/plugin/api/interfaces/interface/dampening/change.c b/src/interfaces/src/plugin/api/interfaces/interface/dampening/change.c index 0ef5e8d6..e11c4657 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/dampening/change.c +++ b/src/interfaces/src/plugin/api/interfaces/interface/dampening/change.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "change.h" #include "plugin/common.h" diff --git a/src/interfaces/src/plugin/api/interfaces/interface/dampening/change.h b/src/interfaces/src/plugin/api/interfaces/interface/dampening/change.h index 22e7a76b..edafc5f5 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/dampening/change.h +++ b/src/interfaces/src/plugin/api/interfaces/interface/dampening/change.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_DAMPENING_CHANGE_H #define INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_DAMPENING_CHANGE_H diff --git a/src/interfaces/src/plugin/api/interfaces/interface/encapsulation/dot1q-vlan/outer-tag/change.c b/src/interfaces/src/plugin/api/interfaces/interface/encapsulation/dot1q-vlan/outer-tag/change.c index bc8aecf0..fd2d14ac 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/encapsulation/dot1q-vlan/outer-tag/change.c +++ b/src/interfaces/src/plugin/api/interfaces/interface/encapsulation/dot1q-vlan/outer-tag/change.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "change.h" #include "plugin/common.h" diff --git a/src/interfaces/src/plugin/api/interfaces/interface/encapsulation/dot1q-vlan/outer-tag/change.h b/src/interfaces/src/plugin/api/interfaces/interface/encapsulation/dot1q-vlan/outer-tag/change.h index 7966fa9f..030cc967 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/encapsulation/dot1q-vlan/outer-tag/change.h +++ b/src/interfaces/src/plugin/api/interfaces/interface/encapsulation/dot1q-vlan/outer-tag/change.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_ENCAPSULATION_DOT1Q_VLAN_OUTER_TAG_CHANGE_H #define INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_ENCAPSULATION_DOT1Q_VLAN_OUTER_TAG_CHANGE_H diff --git a/src/interfaces/src/plugin/api/interfaces/interface/encapsulation/dot1q-vlan/second-tag/change.c b/src/interfaces/src/plugin/api/interfaces/interface/encapsulation/dot1q-vlan/second-tag/change.c index 5562ac57..4d466fa2 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/encapsulation/dot1q-vlan/second-tag/change.c +++ b/src/interfaces/src/plugin/api/interfaces/interface/encapsulation/dot1q-vlan/second-tag/change.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "change.h" #include "plugin/common.h" diff --git a/src/interfaces/src/plugin/api/interfaces/interface/encapsulation/dot1q-vlan/second-tag/change.h b/src/interfaces/src/plugin/api/interfaces/interface/encapsulation/dot1q-vlan/second-tag/change.h index 57be5706..3a3c72a0 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/encapsulation/dot1q-vlan/second-tag/change.h +++ b/src/interfaces/src/plugin/api/interfaces/interface/encapsulation/dot1q-vlan/second-tag/change.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_ENCAPSULATION_DOT1Q_VLAN_SECOND_TAG_CHANGE_H #define INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_ENCAPSULATION_DOT1Q_VLAN_SECOND_TAG_CHANGE_H diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/address/change.c b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/address/change.c index 9db2ad73..a43d7379 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/address/change.c +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/address/change.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "change.h" #include "plugin/common.h" #include "plugin/context.h" diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/address/change.h b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/address/change.h index a4c807af..da7bebda 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/address/change.h +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/address/change.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV4_ADDRESS_CHANGE_H #define INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV4_ADDRESS_CHANGE_H diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/address/load.c b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/address/load.c index 95985878..0dd8bb37 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/address/load.c +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/address/load.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "load.h" #include "netlink/addr.h" #include "netlink/route/addr.h" diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/address/load.h b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/address/load.h index 84288cea..ba7ef67f 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/address/load.h +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/address/load.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV4_ADDRESS_LOAD_H #define INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV4_ADDRESS_LOAD_H diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/change.c b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/change.c index 5fda0cfe..53462c98 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/change.c +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/change.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "change.h" #include "libyang/tree_data.h" #include "netlink/cache.h" diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/change.h b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/change.h index 016e4c0f..3bc5131e 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/change.h +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/change.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV4_CHANGE_H #define INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV4_CHANGE_H diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/load.c b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/load.c index dbecfd2c..e61171f0 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/load.c +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/load.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "load.h" #include "netlink/route/addr.h" #include "netlink/route/link.h" diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/load.h b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/load.h index d8bbd4b2..91e1452c 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/load.h +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/load.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV4_LOAD_H #define INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV4_LOAD_H diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/neighbor/change.c b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/neighbor/change.c index b32722d3..e1f25967 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/neighbor/change.c +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/neighbor/change.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "change.h" #include "netlink/addr.h" #include "plugin/common.h" diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/neighbor/change.h b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/neighbor/change.h index 96fc4108..4c3bb7fc 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/neighbor/change.h +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/neighbor/change.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV4_NEIGHBOR_CHANGE_H #define INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV4_NEIGHBOR_CHANGE_H diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/neighbor/load.c b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/neighbor/load.c index 63540792..605109c5 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/neighbor/load.c +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/neighbor/load.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "load.h" #include "netlink/route/neighbour.h" #include "plugin/data/interfaces/interface/ipv4/neighbor.h" diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/neighbor/load.h b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/neighbor/load.h index 74dc942e..745ce412 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv4/neighbor/load.h +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv4/neighbor/load.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV4_NEIGHBOR_LOAD_H #define INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV4_NEIGHBOR_LOAD_H diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/address/change.c b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/address/change.c index 25456806..d2d6c7d2 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/address/change.c +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/address/change.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "change.h" #include "plugin/common.h" #include "plugin/context.h" diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/address/change.h b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/address/change.h index 884a1701..933d0b6e 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/address/change.h +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/address/change.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV6_ADDRESS_CHANGE_H #define INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV6_ADDRESS_CHANGE_H diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/address/load.c b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/address/load.c index 1dda97ff..eb72b816 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/address/load.c +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/address/load.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "load.h" #include "netlink/addr.h" #include "netlink/route/addr.h" diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/address/load.h b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/address/load.h index 140245fe..36e2e3e7 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/address/load.h +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/address/load.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV6_ADDRESS_LOAD_H #define INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV6_ADDRESS_LOAD_H diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/autoconf/change.c b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/autoconf/change.c index 3414625b..e18b2cbb 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/autoconf/change.c +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/autoconf/change.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "change.h" #include "plugin/common.h" diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/autoconf/change.h b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/autoconf/change.h index 080ad2ba..3931ffc9 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/autoconf/change.h +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/autoconf/change.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV6_AUTOCONF_CHANGE_H #define INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV6_AUTOCONF_CHANGE_H diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/change.c b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/change.c index 9fd99278..cfd250dd 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/change.c +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/change.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "change.h" #include "plugin/common.h" diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/change.h b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/change.h index a594cb14..1aaecb83 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/change.h +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/change.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV6_CHANGE_H #define INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV6_CHANGE_H diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/load.c b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/load.c index a204546e..10bca4c2 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/load.c +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/load.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "load.h" #include "netlink/route/link.h" #include "plugin/api/interfaces/interface/ipv6/address/load.h" diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/load.h b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/load.h index b92e7343..e57f4533 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/load.h +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/load.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV6_LOAD_H #define INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV6_LOAD_H diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/neighbor/change.c b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/neighbor/change.c index 9850f038..915f77db 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/neighbor/change.c +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/neighbor/change.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "change.h" #include "plugin/common.h" #include "plugin/context.h" diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/neighbor/change.h b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/neighbor/change.h index ac15a9ab..41701d09 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/neighbor/change.h +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/neighbor/change.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV6_NEIGHBOR_CHANGE_H #define INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV6_NEIGHBOR_CHANGE_H diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/neighbor/load.c b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/neighbor/load.c index 1301f6f8..e2a975f7 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/neighbor/load.c +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/neighbor/load.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "load.h" #include "netlink/route/neighbour.h" #include "plugin/data/interfaces/interface/ipv6/neighbor.h" diff --git a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/neighbor/load.h b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/neighbor/load.h index eb3aaa6b..097ed994 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/ipv6/neighbor/load.h +++ b/src/interfaces/src/plugin/api/interfaces/interface/ipv6/neighbor/load.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV6_NEIGHBOR_LOAD_H #define INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_IPV6_NEIGHBOR_LOAD_H diff --git a/src/interfaces/src/plugin/api/interfaces/interface/load.c b/src/interfaces/src/plugin/api/interfaces/interface/load.c index d45c38c7..c9ae7e5e 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/load.c +++ b/src/interfaces/src/plugin/api/interfaces/interface/load.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "load.h" #include "plugin/common.h" #include "plugin/data/interfaces/interface.h" diff --git a/src/interfaces/src/plugin/api/interfaces/interface/load.h b/src/interfaces/src/plugin/api/interfaces/interface/load.h index 0920c2af..d3b314f9 100644 --- a/src/interfaces/src/plugin/api/interfaces/interface/load.h +++ b/src/interfaces/src/plugin/api/interfaces/interface/load.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_LOAD_H #define INTERFACES_PLUGIN_API_INTERFACES_INTERFACE_LOAD_H diff --git a/src/interfaces/src/plugin/api/interfaces/load.c b/src/interfaces/src/plugin/api/interfaces/load.c index 2eb825de..05ac1ac9 100644 --- a/src/interfaces/src/plugin/api/interfaces/load.c +++ b/src/interfaces/src/plugin/api/interfaces/load.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "load.h" #include "interface/ipv4/load.h" #include "interface/ipv6/load.h" diff --git a/src/interfaces/src/plugin/api/interfaces/load.h b/src/interfaces/src/plugin/api/interfaces/load.h index b3103459..76e4dc98 100644 --- a/src/interfaces/src/plugin/api/interfaces/load.h +++ b/src/interfaces/src/plugin/api/interfaces/load.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_LOAD_H #define INTERFACES_PLUGIN_API_INTERFACES_LOAD_H diff --git a/src/interfaces/src/plugin/api/interfaces/read.c b/src/interfaces/src/plugin/api/interfaces/read.c index 91af20de..5f0e7d4a 100644 --- a/src/interfaces/src/plugin/api/interfaces/read.c +++ b/src/interfaces/src/plugin/api/interfaces/read.c @@ -1,42 +1,54 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "plugin/common.h" #include "srpc/common.h" #include -int read_from_proc_file(const char *dir_path, char *interface, const char *fn, int *val) +int read_from_proc_file(const char* dir_path, char* interface, const char* fn, int* val) { - int error = 0; - char tmp_buffer[PATH_MAX]; - FILE *fptr = NULL; - char tmp_val[2] = {0}; + int error = 0; + char tmp_buffer[PATH_MAX]; + FILE* fptr = NULL; + char tmp_val[2] = { 0 }; - error = snprintf(tmp_buffer, sizeof(tmp_buffer), "%s/%s/%s", dir_path, interface, fn); - if (error < 0) { - // snprintf error - SRPLG_LOG_ERR(PLUGIN_NAME, "snprintf failed"); - goto out; - } + error = snprintf(tmp_buffer, sizeof(tmp_buffer), "%s/%s/%s", dir_path, interface, fn); + if (error < 0) { + // snprintf error + SRPLG_LOG_ERR(PLUGIN_NAME, "snprintf failed"); + goto out; + } - // snprintf returns return the number of bytes that are written - // reset error to 0 - error = 0; + // snprintf returns return the number of bytes that are written + // reset error to 0 + error = 0; - fptr = fopen((const char *) tmp_buffer, "r"); + fptr = fopen((const char*)tmp_buffer, "r"); - if (fptr != NULL) { - fgets(tmp_val, sizeof(tmp_val), fptr); + if (fptr != NULL) { + fgets(tmp_val, sizeof(tmp_val), fptr); - *val = atoi(tmp_val); + *val = atoi(tmp_val); - fclose(fptr); - } else { - SRPLG_LOG_ERR(PLUGIN_NAME, "failed to open %s: %s", tmp_buffer, strerror(errno)); - error = -1; - goto out; - } + fclose(fptr); + } else { + SRPLG_LOG_ERR(PLUGIN_NAME, "failed to open %s: %s", tmp_buffer, strerror(errno)); + error = -1; + goto out; + } out: - return error; + return error; } int read_from_sys_file(const char* dir_path, char* interface, int* val) diff --git a/src/interfaces/src/plugin/api/interfaces/read.h b/src/interfaces/src/plugin/api/interfaces/read.h index 5ea196aa..cfb84d42 100644 --- a/src/interfaces/src/plugin/api/interfaces/read.h +++ b/src/interfaces/src/plugin/api/interfaces/read.h @@ -1,7 +1,19 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef READ_H #define READ_H -int read_from_proc_file(const char *dir_path, char *interface, const char *fn, int *val); +int read_from_proc_file(const char* dir_path, char* interface, const char* fn, int* val); int read_from_sys_file(const char* dir_path, char* interface, int* val); diff --git a/src/interfaces/src/plugin/api/interfaces/store.c b/src/interfaces/src/plugin/api/interfaces/store.c index 2bfceba1..7a68cb98 100644 --- a/src/interfaces/src/plugin/api/interfaces/store.c +++ b/src/interfaces/src/plugin/api/interfaces/store.c @@ -1,40 +1,52 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "store.h" +#include "/usr/include/linux/if.h" #include "netlink/addr.h" #include "netlink/cache.h" +#include "netlink/errno.h" #include "netlink/object.h" #include "netlink/route/addr.h" +#include "netlink/route/link.h" #include "netlink/socket.h" +#include "plugin/common.h" +#include "plugin/context.h" #include "plugin/data/interfaces/interface/ipv4/address.h" +#include "plugin/types.h" #include "src/utlist.h" #include "srpc/common.h" -#include "utlist.h" +#include "sysrepo/xpath.h" #include "uthash.h" -#include "plugin/types.h" -#include -#include "plugin/common.h" -#include "plugin/context.h" +#include "utlist.h" #include -#include "sysrepo/xpath.h" -#include "netlink/errno.h" -#include "netlink/route/link.h" -#include "/usr/include/linux/if.h" +#include int interfaces_store_interface(interfaces_ctx_t* ctx, const interfaces_interface_hash_element_t* if_hash) { int error = 0; uint8_t if_status, prefix_length; uint32_t mtu; - char *if_type = NULL; - char *if_type_libnl = NULL; + char* if_type = NULL; + char* if_type_libnl = NULL; const interfaces_interface_hash_element_t *i = NULL, *tmp = NULL; - interfaces_interface_ipv4_address_element_t *ipv4_iter = NULL; - interfaces_interface_ipv6_address_element_t *ipv6_iter = NULL; - struct nl_sock *sk = NULL; + interfaces_interface_ipv4_address_element_t* ipv4_iter = NULL; + interfaces_interface_ipv6_address_element_t* ipv6_iter = NULL; + struct nl_sock* sk = NULL; struct nl_addr* local_addr = NULL; struct nl_cache* link_cache = NULL; struct rtnl_link* new_link = NULL; - struct rtnl_addr *link_ipv4_addr = NULL; - struct rtnl_addr *link_ipv6_addr = NULL; + struct rtnl_addr* link_ipv4_addr = NULL; + struct rtnl_addr* link_ipv6_addr = NULL; // setup nl socket SRPC_SAFE_CALL_PTR(sk, nl_socket_alloc(), error_out); @@ -45,32 +57,33 @@ int interfaces_store_interface(interfaces_ctx_t* ctx, const interfaces_interface // allocate link cache SRPC_SAFE_CALL_ERR(error, rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache), error_out); - HASH_ITER (hh, if_hash, i, tmp) { + HASH_ITER(hh, if_hash, i, tmp) + { if_type = i->interface.type; if_status = i->interface.enabled; mtu = i->interface.ipv4.mtu < i->interface.ipv6.mtu ? i->interface.ipv4.mtu : i->interface.ipv6.mtu; - + // create a new link SRPC_SAFE_CALL_PTR(new_link, rtnl_link_alloc(), error_out); - - //determine link type + + // determine link type if (strcmp(if_type, "iana-if-type:ethernetCsmacd") == 0) { - if_type_libnl = "veth"; - // !! ADDS 2 INTERFACES (one without ip addresses) - } else if (strcmp(if_type, "iana-if-type:softwareLoopback") == 0) { - if_type_libnl = "vcan"; - //!! vcan INSTEAD OF lo - } else if (strcmp(if_type, "iana-if-type:l2vlan") == 0) { - if_type_libnl = "vlan"; - //!! doesn't work - } else if (strcmp(if_type, "iana-if-type:other") == 0) { - if_type_libnl = "dummy"; + if_type_libnl = "veth"; + // !! ADDS 2 INTERFACES (one without ip addresses) + } else if (strcmp(if_type, "iana-if-type:softwareLoopback") == 0) { + if_type_libnl = "vcan"; + //!! vcan INSTEAD OF lo + } else if (strcmp(if_type, "iana-if-type:l2vlan") == 0) { + if_type_libnl = "vlan"; + //!! doesn't work + } else if (strcmp(if_type, "iana-if-type:other") == 0) { + if_type_libnl = "dummy"; } // set link type SRPC_SAFE_CALL_ERR(error, rtnl_link_set_type(new_link, if_type_libnl), error_out); - // setup link name + // setup link name rtnl_link_set_name(new_link, i->interface.name); // initialize desired link status @@ -95,31 +108,32 @@ int interfaces_store_interface(interfaces_ctx_t* ctx, const interfaces_interface // get updated new_link SRPC_SAFE_CALL_PTR(new_link, rtnl_link_get_by_name(link_cache, i->interface.name), error_out); - LL_FOREACH (i->interface.ipv4.address, ipv4_iter) { + LL_FOREACH(i->interface.ipv4.address, ipv4_iter) + { link_ipv4_addr = rtnl_addr_alloc(); - //parse local ipv4 address + // parse local ipv4 address SRPC_SAFE_CALL_ERR(error, nl_addr_parse(ipv4_iter->address.ip, AF_INET, &local_addr), error_out); // get ipv4 prefix length by using prefix-length or netmask switch (ipv4_iter->address.subnet_type) { - case interfaces_interface_ipv4_address_subnet_none: - SRPLG_LOG_ERR(PLUGIN_NAME, "Unable to get prefix-length/netmask for address %s", ipv4_iter->address.ip); - break; - case interfaces_interface_ipv4_address_subnet_prefix_length: - prefix_length = ipv4_iter->address.subnet.prefix_length; - break; - case interfaces_interface_ipv4_address_subnet_netmask: - interfaces_interface_ipv4_address_netmask2prefix(ipv4_iter->address.subnet.netmask, &prefix_length); - break; - default: - SRPLG_LOG_ERR(PLUGIN_NAME, "Unable to get prefix-length/netmask for address %s", ipv4_iter->address.ip); + case interfaces_interface_ipv4_address_subnet_none: + SRPLG_LOG_ERR(PLUGIN_NAME, "Unable to get prefix-length/netmask for address %s", ipv4_iter->address.ip); + break; + case interfaces_interface_ipv4_address_subnet_prefix_length: + prefix_length = ipv4_iter->address.subnet.prefix_length; + break; + case interfaces_interface_ipv4_address_subnet_netmask: + interfaces_interface_ipv4_address_netmask2prefix(ipv4_iter->address.subnet.netmask, &prefix_length); + break; + default: + SRPLG_LOG_ERR(PLUGIN_NAME, "Unable to get prefix-length/netmask for address %s", ipv4_iter->address.ip); } - + // set ipv4 prefix length nl_addr_set_prefixlen(local_addr, prefix_length); - //set to route address + // set to route address SRPC_SAFE_CALL_ERR(error, rtnl_addr_set_local(link_ipv4_addr, local_addr), error_out); // set interface @@ -132,8 +146,8 @@ int interfaces_store_interface(interfaces_ctx_t* ctx, const interfaces_interface rtnl_addr_put(link_ipv4_addr); } - - LL_FOREACH (i->interface.ipv6.address, ipv6_iter) { + LL_FOREACH(i->interface.ipv6.address, ipv6_iter) + { link_ipv6_addr = rtnl_addr_alloc(); // parse local ipv6 address @@ -142,21 +156,20 @@ int interfaces_store_interface(interfaces_ctx_t* ctx, const interfaces_interface // set ipv6 prefix length nl_addr_set_prefixlen(local_addr, ipv6_iter->address.prefix_length); - //set to route address + // set to route address SRPC_SAFE_CALL_ERR(error, rtnl_addr_set_local(link_ipv6_addr, local_addr), error_out); // set interface rtnl_addr_set_ifindex(link_ipv6_addr, rtnl_link_get_ifindex(new_link)); - //add ipv6 address + // add ipv6 address SRPC_SAFE_CALL_ERR(error, rtnl_addr_add(sk, link_ipv6_addr, 0), error_out); nl_addr_put(local_addr); rtnl_addr_put(link_ipv6_addr); } - } - + goto out; error_out: diff --git a/src/interfaces/src/plugin/api/interfaces/store.h b/src/interfaces/src/plugin/api/interfaces/store.h index ced145b6..e3fe22df 100644 --- a/src/interfaces/src/plugin/api/interfaces/store.h +++ b/src/interfaces/src/plugin/api/interfaces/store.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_API_INTERFACES_STORE_H #define INTERFACES_PLUGIN_API_INTERFACES_STORE_H diff --git a/src/interfaces/src/plugin/common.h b/src/interfaces/src/plugin/common.h index cf58aa40..7f1c18d7 100644 --- a/src/interfaces/src/plugin/common.h +++ b/src/interfaces/src/plugin/common.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_COMMON_H #define INTERFACES_PLUGIN_COMMON_H diff --git a/src/interfaces/src/plugin/context.h b/src/interfaces/src/plugin/context.h index f9fe3e41..5b224fee 100644 --- a/src/interfaces/src/plugin/context.h +++ b/src/interfaces/src/plugin/context.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_CONTEXT_H #define INTERFACES_PLUGIN_CONTEXT_H diff --git a/src/interfaces/src/plugin/data/interfaces/interface.c b/src/interfaces/src/plugin/data/interfaces/interface.c index efb46763..1ed94f33 100644 --- a/src/interfaces/src/plugin/data/interfaces/interface.c +++ b/src/interfaces/src/plugin/data/interfaces/interface.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "interface.h" #include "interface/ipv4.h" #include "libyang/log.h" diff --git a/src/interfaces/src/plugin/data/interfaces/interface.h b/src/interfaces/src/plugin/data/interfaces/interface.h index eda09843..013d7296 100644 --- a/src/interfaces/src/plugin/data/interfaces/interface.h +++ b/src/interfaces/src/plugin/data/interfaces/interface.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_H #define INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_H diff --git a/src/interfaces/src/plugin/data/interfaces/interface/ipv4.c b/src/interfaces/src/plugin/data/interfaces/interface/ipv4.c index cbb7e4dd..61cfe1ff 100644 --- a/src/interfaces/src/plugin/data/interfaces/interface/ipv4.c +++ b/src/interfaces/src/plugin/data/interfaces/interface/ipv4.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "ipv4.h" int interfaces_interface_hash_element_ipv4_set_enabled(interfaces_interface_ipv4_t* ipv4, uint8_t enabled) diff --git a/src/interfaces/src/plugin/data/interfaces/interface/ipv4.h b/src/interfaces/src/plugin/data/interfaces/interface/ipv4.h index 61fb3f4a..59d269e6 100644 --- a/src/interfaces/src/plugin/data/interfaces/interface/ipv4.h +++ b/src/interfaces/src/plugin/data/interfaces/interface/ipv4.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_IPV4_H #define INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_IPV4_H diff --git a/src/interfaces/src/plugin/data/interfaces/interface/ipv4/address.c b/src/interfaces/src/plugin/data/interfaces/interface/ipv4/address.c index ca810c2f..136d7083 100644 --- a/src/interfaces/src/plugin/data/interfaces/interface/ipv4/address.c +++ b/src/interfaces/src/plugin/data/interfaces/interface/ipv4/address.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "address.h" #include "plugin/types.h" #include "src/utlist.h" diff --git a/src/interfaces/src/plugin/data/interfaces/interface/ipv4/address.h b/src/interfaces/src/plugin/data/interfaces/interface/ipv4/address.h index 057cd8a0..e0ba6259 100644 --- a/src/interfaces/src/plugin/data/interfaces/interface/ipv4/address.h +++ b/src/interfaces/src/plugin/data/interfaces/interface/ipv4/address.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_IPV4_ADDRESS_H #define INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_IPV4_ADDRESS_H diff --git a/src/interfaces/src/plugin/data/interfaces/interface/ipv4/neighbor.c b/src/interfaces/src/plugin/data/interfaces/interface/ipv4/neighbor.c index 0d251b9c..dca5306b 100644 --- a/src/interfaces/src/plugin/data/interfaces/interface/ipv4/neighbor.c +++ b/src/interfaces/src/plugin/data/interfaces/interface/ipv4/neighbor.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "neighbor.h" #include "src/utlist.h" @@ -55,20 +67,21 @@ void interfaces_interface_ipv4_neighbor_element_free(interfaces_interface_ipv4_n /* set (deepcopy) an IPv4 neighbor list */ int interfaces_interface_ipv4_neighbor_element_set(interfaces_interface_ipv4_neighbor_element_t** src, - interfaces_interface_ipv4_neighbor_element_t **dst) + interfaces_interface_ipv4_neighbor_element_t** dst) { - interfaces_interface_ipv4_neighbor_element_t *src_iter = NULL; - interfaces_interface_ipv4_neighbor_element_t *new_elem = NULL; + interfaces_interface_ipv4_neighbor_element_t* src_iter = NULL; + interfaces_interface_ipv4_neighbor_element_t* new_elem = NULL; - LL_FOREACH(*src, src_iter) { + LL_FOREACH(*src, src_iter) + { new_elem = interfaces_interface_ipv4_neighbor_element_new(); interfaces_interface_ipv4_neighbor_element_set_ip(&new_elem, src_iter->neighbor.ip); - interfaces_interface_ipv4_neighbor_element_set_link_layer_address(&new_elem, - src_iter->neighbor.link_layer_address); + interfaces_interface_ipv4_neighbor_element_set_link_layer_address(&new_elem, + src_iter->neighbor.link_layer_address); interfaces_interface_ipv4_neighbor_add_element(dst, new_elem); } - + return 0; } diff --git a/src/interfaces/src/plugin/data/interfaces/interface/ipv4/neighbor.h b/src/interfaces/src/plugin/data/interfaces/interface/ipv4/neighbor.h index 1616958f..8a634974 100644 --- a/src/interfaces/src/plugin/data/interfaces/interface/ipv4/neighbor.h +++ b/src/interfaces/src/plugin/data/interfaces/interface/ipv4/neighbor.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_IPV4_NEIGHBOR_H #define INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_IPV4_NEIGHBOR_H @@ -22,6 +34,6 @@ interfaces_interface_ipv4_neighbor_element_t* interfaces_interface_ipv4_neighbor void interfaces_interface_ipv4_neighbor_element_free(interfaces_interface_ipv4_neighbor_element_t** el); int interfaces_interface_ipv4_neighbor_element_set_ip(interfaces_interface_ipv4_neighbor_element_t** el, const char* ip); int interfaces_interface_ipv4_neighbor_element_set_link_layer_address(interfaces_interface_ipv4_neighbor_element_t** el, const char* link_layer_address); -int interfaces_interface_ipv4_neighbor_element_set(interfaces_interface_ipv4_neighbor_element_t** src, interfaces_interface_ipv4_neighbor_element_t **dst); +int interfaces_interface_ipv4_neighbor_element_set(interfaces_interface_ipv4_neighbor_element_t** src, interfaces_interface_ipv4_neighbor_element_t** dst); #endif // INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_IPV4_NEIGHBOR_H diff --git a/src/interfaces/src/plugin/data/interfaces/interface/ipv6.c b/src/interfaces/src/plugin/data/interfaces/interface/ipv6.c index 36dbbbe1..dac85393 100644 --- a/src/interfaces/src/plugin/data/interfaces/interface/ipv6.c +++ b/src/interfaces/src/plugin/data/interfaces/interface/ipv6.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "ipv6.h" int interfaces_interface_hash_element_ipv6_set_enabled(interfaces_interface_ipv6_t* ipv6, uint8_t enabled) diff --git a/src/interfaces/src/plugin/data/interfaces/interface/ipv6.h b/src/interfaces/src/plugin/data/interfaces/interface/ipv6.h index 302671af..06957a5d 100644 --- a/src/interfaces/src/plugin/data/interfaces/interface/ipv6.h +++ b/src/interfaces/src/plugin/data/interfaces/interface/ipv6.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_IPV6_H #define INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_IPV6_H diff --git a/src/interfaces/src/plugin/data/interfaces/interface/ipv6/address.c b/src/interfaces/src/plugin/data/interfaces/interface/ipv6/address.c index d7dc4a97..5140af26 100644 --- a/src/interfaces/src/plugin/data/interfaces/interface/ipv6/address.c +++ b/src/interfaces/src/plugin/data/interfaces/interface/ipv6/address.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "address.h" #include "plugin/types.h" #include "src/utlist.h" @@ -38,26 +50,25 @@ interfaces_interface_ipv6_address_element_t* interfaces_interface_ipv6_address_e return new_element; } -int interfaces_interface_ipv6_address_element_set(interfaces_interface_ipv6_address_element_t** src, - interfaces_interface_ipv6_address_element_t **dst) +int interfaces_interface_ipv6_address_element_set(interfaces_interface_ipv6_address_element_t** src, + interfaces_interface_ipv6_address_element_t** dst) { - interfaces_interface_ipv6_address_element_t *src_iter = NULL; - interfaces_interface_ipv6_address_element_t *new_elem = NULL; + interfaces_interface_ipv6_address_element_t* src_iter = NULL; + interfaces_interface_ipv6_address_element_t* new_elem = NULL; - LL_FOREACH(*src, src_iter) { + LL_FOREACH(*src, src_iter) + { new_elem = interfaces_interface_ipv6_address_element_new(); interfaces_interface_ipv6_address_element_set_ip(&new_elem, src_iter->address.ip); - interfaces_interface_ipv6_address_element_set_prefix_length(&new_elem, - src_iter->address.prefix_length); + interfaces_interface_ipv6_address_element_set_prefix_length(&new_elem, + src_iter->address.prefix_length); interfaces_interface_ipv6_address_add_element(dst, new_elem); } - + return 0; - } - void interfaces_interface_ipv6_address_element_free(interfaces_interface_ipv6_address_element_t** el) { if (*el) { diff --git a/src/interfaces/src/plugin/data/interfaces/interface/ipv6/address.h b/src/interfaces/src/plugin/data/interfaces/interface/ipv6/address.h index 13761fb0..f86011dc 100644 --- a/src/interfaces/src/plugin/data/interfaces/interface/ipv6/address.h +++ b/src/interfaces/src/plugin/data/interfaces/interface/ipv6/address.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_IPV6_ADDRESS_H #define INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_IPV6_ADDRESS_H @@ -22,6 +34,6 @@ interfaces_interface_ipv6_address_element_t* interfaces_interface_ipv6_address_e void interfaces_interface_ipv6_address_element_free(interfaces_interface_ipv6_address_element_t** el); int interfaces_interface_ipv6_address_element_set_ip(interfaces_interface_ipv6_address_element_t** el, const char* ip); int interfaces_interface_ipv6_address_element_set_prefix_length(interfaces_interface_ipv6_address_element_t** el, uint8_t prefix_length); -int interfaces_interface_ipv6_address_element_set(interfaces_interface_ipv6_address_element_t** src, interfaces_interface_ipv6_address_element_t **dst); +int interfaces_interface_ipv6_address_element_set(interfaces_interface_ipv6_address_element_t** src, interfaces_interface_ipv6_address_element_t** dst); #endif // INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_IPV6_ADDRESS_H diff --git a/src/interfaces/src/plugin/data/interfaces/interface/ipv6/neighbor.c b/src/interfaces/src/plugin/data/interfaces/interface/ipv6/neighbor.c index a702abe4..eb1de8b7 100644 --- a/src/interfaces/src/plugin/data/interfaces/interface/ipv6/neighbor.c +++ b/src/interfaces/src/plugin/data/interfaces/interface/ipv6/neighbor.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "neighbor.h" #include "src/utlist.h" @@ -83,19 +95,20 @@ int interfaces_interface_ipv6_neighbor_element_set_link_layer_address(interfaces /* set (deepcopy) an ipv6 neighbor list */ int interfaces_interface_ipv6_neighbor_element_set(interfaces_interface_ipv6_neighbor_element_t** src, - interfaces_interface_ipv6_neighbor_element_t **dst) + interfaces_interface_ipv6_neighbor_element_t** dst) { - interfaces_interface_ipv6_neighbor_element_t *src_iter = NULL; - interfaces_interface_ipv6_neighbor_element_t *new_elem = NULL; + interfaces_interface_ipv6_neighbor_element_t* src_iter = NULL; + interfaces_interface_ipv6_neighbor_element_t* new_elem = NULL; - LL_FOREACH(*src, src_iter) { + LL_FOREACH(*src, src_iter) + { new_elem = interfaces_interface_ipv6_neighbor_element_new(); interfaces_interface_ipv6_neighbor_element_set_ip(&new_elem, src_iter->neighbor.ip); - interfaces_interface_ipv6_neighbor_element_set_link_layer_address(&new_elem, - src_iter->neighbor.link_layer_address); + interfaces_interface_ipv6_neighbor_element_set_link_layer_address(&new_elem, + src_iter->neighbor.link_layer_address); interfaces_interface_ipv6_neighbor_add_element(dst, new_elem); } - + return 0; } diff --git a/src/interfaces/src/plugin/data/interfaces/interface/ipv6/neighbor.h b/src/interfaces/src/plugin/data/interfaces/interface/ipv6/neighbor.h index 467e8012..3e0f5c35 100644 --- a/src/interfaces/src/plugin/data/interfaces/interface/ipv6/neighbor.h +++ b/src/interfaces/src/plugin/data/interfaces/interface/ipv6/neighbor.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_IPV6_NEIGHBOR_H #define INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_IPV6_NEIGHBOR_H @@ -22,6 +34,6 @@ interfaces_interface_ipv6_neighbor_element_t* interfaces_interface_ipv6_neighbor void interfaces_interface_ipv6_neighbor_element_free(interfaces_interface_ipv6_neighbor_element_t** el); int interfaces_interface_ipv6_neighbor_element_set_ip(interfaces_interface_ipv6_neighbor_element_t** el, const char* ip); int interfaces_interface_ipv6_neighbor_element_set_link_layer_address(interfaces_interface_ipv6_neighbor_element_t** el, const char* link_layer_address); -int interfaces_interface_ipv6_neighbor_element_set(interfaces_interface_ipv6_neighbor_element_t** src, interfaces_interface_ipv6_neighbor_element_t **dst); +int interfaces_interface_ipv6_neighbor_element_set(interfaces_interface_ipv6_neighbor_element_t** src, interfaces_interface_ipv6_neighbor_element_t** dst); #endif // INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_IPV6_NEIGHBOR_H diff --git a/src/interfaces/src/plugin/data/interfaces/interface/linked_list.h b/src/interfaces/src/plugin/data/interfaces/interface/linked_list.h index 853345f0..cc9dadef 100644 --- a/src/interfaces/src/plugin/data/interfaces/interface/linked_list.h +++ b/src/interfaces/src/plugin/data/interfaces/interface/linked_list.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_LIST_H #define INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_LIST_H diff --git a/src/interfaces/src/plugin/data/interfaces/interface_state.c b/src/interfaces/src/plugin/data/interfaces/interface_state.c index 426dff94..e9f4c9bb 100644 --- a/src/interfaces/src/plugin/data/interfaces/interface_state.c +++ b/src/interfaces/src/plugin/data/interfaces/interface_state.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "interface_state.h" #include "src/uthash.h" #include diff --git a/src/interfaces/src/plugin/data/interfaces/interface_state.h b/src/interfaces/src/plugin/data/interfaces/interface_state.h index 8ee785e7..495009ff 100644 --- a/src/interfaces/src/plugin/data/interfaces/interface_state.h +++ b/src/interfaces/src/plugin/data/interfaces/interface_state.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_STATE_H #define INTERFACES_PLUGIN_DATA_INTERFACES_INTERFACE_STATE_H diff --git a/src/interfaces/src/plugin/ly_tree.c b/src/interfaces/src/plugin/ly_tree.c index dd02ec48..7145bb3f 100644 --- a/src/interfaces/src/plugin/ly_tree.c +++ b/src/interfaces/src/plugin/ly_tree.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "ly_tree.h" #include "common.h" diff --git a/src/interfaces/src/plugin/ly_tree.h b/src/interfaces/src/plugin/ly_tree.h index 8e47b513..e8cf9bfe 100644 --- a/src/interfaces/src/plugin/ly_tree.h +++ b/src/interfaces/src/plugin/ly_tree.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_LY_TREE_H #define INTERFACES_PLUGIN_LY_TREE_H diff --git a/src/interfaces/src/plugin/running/load.c b/src/interfaces/src/plugin/running/load.c index 986b1966..4f4a8692 100644 --- a/src/interfaces/src/plugin/running/load.c +++ b/src/interfaces/src/plugin/running/load.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "load.h" #include "libyang/printer_data.h" #include "plugin/common.h" diff --git a/src/interfaces/src/plugin/running/load.h b/src/interfaces/src/plugin/running/load.h index b17d10aa..8e376c22 100644 --- a/src/interfaces/src/plugin/running/load.h +++ b/src/interfaces/src/plugin/running/load.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_RUNNING_LOAD_H #define INTERFACES_PLUGIN_RUNNING_LOAD_H diff --git a/src/interfaces/src/plugin/running/store.c b/src/interfaces/src/plugin/running/store.c index 45e69cd0..b4c8d7c7 100644 --- a/src/interfaces/src/plugin/running/store.c +++ b/src/interfaces/src/plugin/running/store.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "store.h" #include "plugin/common.h" diff --git a/src/interfaces/src/plugin/running/store.h b/src/interfaces/src/plugin/running/store.h index a2a9cece..ce77e492 100644 --- a/src/interfaces/src/plugin/running/store.h +++ b/src/interfaces/src/plugin/running/store.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_RUNNING_STORE_H #define INTERFACES_PLUGIN_RUNNING_STORE_H diff --git a/src/interfaces/src/plugin/startup/load.c b/src/interfaces/src/plugin/startup/load.c index ede59c6c..f35271fb 100644 --- a/src/interfaces/src/plugin/startup/load.c +++ b/src/interfaces/src/plugin/startup/load.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "load.h" #include "libyang/printer_data.h" #include "plugin/common.h" diff --git a/src/interfaces/src/plugin/startup/load.h b/src/interfaces/src/plugin/startup/load.h index 89f3a89c..c0ab00d1 100644 --- a/src/interfaces/src/plugin/startup/load.h +++ b/src/interfaces/src/plugin/startup/load.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_STARTUP_LOAD_H #define INTERFACES_PLUGIN_STARTUP_LOAD_H diff --git a/src/interfaces/src/plugin/startup/store.c b/src/interfaces/src/plugin/startup/store.c index 4dc91851..027112b0 100644 --- a/src/interfaces/src/plugin/startup/store.c +++ b/src/interfaces/src/plugin/startup/store.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "store.h" #include "plugin/common.h" diff --git a/src/interfaces/src/plugin/startup/store.h b/src/interfaces/src/plugin/startup/store.h index 7e5a9a65..40188015 100644 --- a/src/interfaces/src/plugin/startup/store.h +++ b/src/interfaces/src/plugin/startup/store.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_STARTUP_STORE_H #define INTERFACES_PLUGIN_STARTUP_STORE_H diff --git a/src/interfaces/src/plugin/subscription/change.c b/src/interfaces/src/plugin/subscription/change.c index f3312256..bddd1726 100644 --- a/src/interfaces/src/plugin/subscription/change.c +++ b/src/interfaces/src/plugin/subscription/change.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "change.h" #include "plugin/common.h" #include "plugin/context.h" diff --git a/src/interfaces/src/plugin/subscription/change.h b/src/interfaces/src/plugin/subscription/change.h index bfefa610..e8ede741 100644 --- a/src/interfaces/src/plugin/subscription/change.h +++ b/src/interfaces/src/plugin/subscription/change.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_SUBSCRIPTION_CHANGE_H #define INTERFACES_PLUGIN_SUBSCRIPTION_CHANGE_H diff --git a/src/interfaces/src/plugin/subscription/operational.c b/src/interfaces/src/plugin/subscription/operational.c index 843b1f04..81092fdf 100644 --- a/src/interfaces/src/plugin/subscription/operational.c +++ b/src/interfaces/src/plugin/subscription/operational.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "operational.h" #include "libyang/context.h" #include "libyang/tree_data.h" diff --git a/src/interfaces/src/plugin/subscription/operational.h b/src/interfaces/src/plugin/subscription/operational.h index 6b395434..80b6822e 100644 --- a/src/interfaces/src/plugin/subscription/operational.h +++ b/src/interfaces/src/plugin/subscription/operational.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_SUBSCRIPTION_OPERATIONAL_H #define INTERFACES_PLUGIN_SUBSCRIPTION_OPERATIONAL_H diff --git a/src/interfaces/src/plugin/subscription/rpc.c b/src/interfaces/src/plugin/subscription/rpc.c index 03645e83..f75bcdaf 100644 --- a/src/interfaces/src/plugin/subscription/rpc.c +++ b/src/interfaces/src/plugin/subscription/rpc.c @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #include "rpc.h" #include "plugin/common.h" #include "plugin/context.h" diff --git a/src/interfaces/src/plugin/subscription/rpc.h b/src/interfaces/src/plugin/subscription/rpc.h index 6afecbaa..55ec209c 100644 --- a/src/interfaces/src/plugin/subscription/rpc.h +++ b/src/interfaces/src/plugin/subscription/rpc.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_SUBSCRIPTION_RPC_H #define INTERFACES_PLUGIN_SUBSCRIPTION_RPC_H diff --git a/src/interfaces/src/plugin/types.h b/src/interfaces/src/plugin/types.h index a9c9ef75..b31f099a 100644 --- a/src/interfaces/src/plugin/types.h +++ b/src/interfaces/src/plugin/types.h @@ -1,3 +1,15 @@ +/* + * telekom / sysrepo-plugin-system + * + * This program is made available under the terms of the + * BSD 3-Clause license which is available at + * https://opensource.org/licenses/BSD-3-Clause + * + * SPDX-FileCopyrightText: 2022 Deutsche Telekom AG + * SPDX-FileContributor: Sartura Ltd. + * + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef INTERFACES_PLUGIN_TYPES_H #define INTERFACES_PLUGIN_TYPES_H