From c14b1762d92dde6f6af45f1a2b4c7d447fb812c7 Mon Sep 17 00:00:00 2001 From: Andre Kantek Date: Fri, 13 Jun 2025 08:30:12 -0300 Subject: [PATCH] Adding L3 routing protocol modules loading config file To support virtual routers the kernel needs a collection of modules that provide advanced L3 capabilities This change creates the new l3-routing-modules-config package to have the list in /etc/modules-load.d/ and available on a fresh install Test Plan: [PASS] do a fresh install and verify modules availability in the kernel with lsmod Story: 2011455 Task: 52407 Change-Id: Ia0fc953602b4495b1bb004f990814907084e761c Signed-off-by: Andre Kantek --- debian_iso_image.inc | 3 +++ debian_pkg_dirs | 1 + .../debian/deb_folder/changelog | 5 ++++ .../debian/deb_folder/control | 13 +++++++++ .../debian/deb_folder/copyright | 27 +++++++++++++++++++ .../l3-routing-modules-config.install | 1 + .../debian/deb_folder/postinst | 8 ++++++ .../debian/deb_folder/rules | 5 ++++ .../debian/deb_folder/source/format | 1 + .../debian/meta_data.yaml | 9 +++++++ .../source-debian/l3-routing-modules.conf | 11 ++++++++ 11 files changed, 84 insertions(+) create mode 100644 l3-routing-modules-config/debian/deb_folder/changelog create mode 100644 l3-routing-modules-config/debian/deb_folder/control create mode 100644 l3-routing-modules-config/debian/deb_folder/copyright create mode 100644 l3-routing-modules-config/debian/deb_folder/l3-routing-modules-config.install create mode 100644 l3-routing-modules-config/debian/deb_folder/postinst create mode 100644 l3-routing-modules-config/debian/deb_folder/rules create mode 100644 l3-routing-modules-config/debian/deb_folder/source/format create mode 100644 l3-routing-modules-config/debian/meta_data.yaml create mode 100644 l3-routing-modules-config/source-debian/l3-routing-modules.conf diff --git a/debian_iso_image.inc b/debian_iso_image.inc index f008c79..63a8e23 100644 --- a/debian_iso_image.inc +++ b/debian_iso_image.inc @@ -36,6 +36,9 @@ iptables-config #iscsi-initiator-utils-config iscsi-initiator-utils-config +#l3-routing-modules-config +l3-routing-modules-config + #luks-config luks-config diff --git a/debian_pkg_dirs b/debian_pkg_dirs index 654b77d..d8fb2bc 100644 --- a/debian_pkg_dirs +++ b/debian_pkg_dirs @@ -32,3 +32,4 @@ sudo-config syslog-ng-config systemd-config tuned-config +l3-routing-modules-config diff --git a/l3-routing-modules-config/debian/deb_folder/changelog b/l3-routing-modules-config/debian/deb_folder/changelog new file mode 100644 index 0000000..7d575d5 --- /dev/null +++ b/l3-routing-modules-config/debian/deb_folder/changelog @@ -0,0 +1,5 @@ +l3-routing-modules-config (1.0-1) unstable; urgency=medium + + * Initial release + + -- Andre Kantek Wed, 12 Jun 2025 08:50:58 -0300 diff --git a/l3-routing-modules-config/debian/deb_folder/control b/l3-routing-modules-config/debian/deb_folder/control new file mode 100644 index 0000000..a905ce7 --- /dev/null +++ b/l3-routing-modules-config/debian/deb_folder/control @@ -0,0 +1,13 @@ +Source: l3-routing-modules-config +Section: admin +Priority: optional +Maintainer: StarlingX Developers +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.4.1 +Homepage: https://www.starlingx.io + +Package: l3-routing-modules-config +Architecture: any +Depends: ${misc:Depends} +Description: StarlingX configuration files - l3-routing-modules-config + Package of l3-routing-modules-config to system folder. diff --git a/l3-routing-modules-config/debian/deb_folder/copyright b/l3-routing-modules-config/debian/deb_folder/copyright new file mode 100644 index 0000000..71a6390 --- /dev/null +++ b/l3-routing-modules-config/debian/deb_folder/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: l3-routing-modules-config +Source: https://opendev.org/starlingx/config-files + +Files: * +Copyright: (c) 2013-2025 Wind River Systems, Inc +License: Apache-2 + +Files: debian/* +Copyright: 2021 Wind River Systems, Inc +License: Apache-2 + +License: Apache-2 + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + https://www.apache.org/licenses/LICENSE-2.0 + . + 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. + . + On Debian-based systems the full text of the Apache version 2.0 license + can be found in `/usr/share/common-licenses/Apache-2.0'. \ No newline at end of file diff --git a/l3-routing-modules-config/debian/deb_folder/l3-routing-modules-config.install b/l3-routing-modules-config/debian/deb_folder/l3-routing-modules-config.install new file mode 100644 index 0000000..4b17a3f --- /dev/null +++ b/l3-routing-modules-config/debian/deb_folder/l3-routing-modules-config.install @@ -0,0 +1 @@ +l3-routing-modules.conf usr/share/starlingx diff --git a/l3-routing-modules-config/debian/deb_folder/postinst b/l3-routing-modules-config/debian/deb_folder/postinst new file mode 100644 index 0000000..6cdced4 --- /dev/null +++ b/l3-routing-modules-config/debian/deb_folder/postinst @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +cp -f /usr/share/starlingx/l3-routing-modules.conf /etc/modules-load.d/ +chmod 600 /etc/modules-load.d/l3-routing-modules.conf + +#DEBHELPER# diff --git a/l3-routing-modules-config/debian/deb_folder/rules b/l3-routing-modules-config/debian/deb_folder/rules new file mode 100644 index 0000000..ed58acc --- /dev/null +++ b/l3-routing-modules-config/debian/deb_folder/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f +#export DH_VERBOSE = 1 + +%: + dh $@ diff --git a/l3-routing-modules-config/debian/deb_folder/source/format b/l3-routing-modules-config/debian/deb_folder/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/l3-routing-modules-config/debian/deb_folder/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/l3-routing-modules-config/debian/meta_data.yaml b/l3-routing-modules-config/debian/meta_data.yaml new file mode 100644 index 0000000..533c46a --- /dev/null +++ b/l3-routing-modules-config/debian/meta_data.yaml @@ -0,0 +1,9 @@ +--- +debname: l3-routing-modules-config +debver: 1.0-1 +src_path: source-debian +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true + SRC_GITREVCOUNT: + SRC_BASE_SRCREV: 86721aef23eadf4a69ed2ad8e5884f488533134e diff --git a/l3-routing-modules-config/source-debian/l3-routing-modules.conf b/l3-routing-modules-config/source-debian/l3-routing-modules.conf new file mode 100644 index 0000000..0de5c02 --- /dev/null +++ b/l3-routing-modules-config/source-debian/l3-routing-modules.conf @@ -0,0 +1,11 @@ +tun +fou +fou6 +ipip +ip_tunnel +ip6_tunnel +mpls_gso +mpls_router +mpls_iptunnel +vrf +vxlan