Skip to content

Commit f5ad6bc

Browse files
authored
Merge pull request #1415 from kernelkit/add-yang-check
Add yang check
2 parents 1698ad6 + b3e158f commit f5ad6bc

29 files changed

Lines changed: 442 additions & 119 deletions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.claude
33
.gdb_history
44
.claude
5+
AGENTS.md
56
/.backup
67
/.ccache
78
/dl
@@ -11,4 +12,3 @@
1112
/test/.log
1213
/local.mk
1314
/test/spec/Readme.adoc
14-

package/finit/finit.hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# From https://github.com/troglobit/finit/releases/
2-
sha256 7f8b5a49149b17670d93e41a9b146c5633e035aa00087b8c945def8387cdecbd finit-4.16-rc1.tar.gz
2+
sha256 f0894cd8b79ce030fdc656600208ddb0b994364f86ebad066de2e005e5e18a35 finit-4.16.tar.gz
33

44
# Locally calculated
55
sha256 868cb6c5414933a48db11186042cfe65c87480d326734bc6cf0e4b19b4a2e52a LICENSE

package/finit/finit.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
################################################################################
66

7-
FINIT_VERSION = 4.16-rc1
7+
FINIT_VERSION = 4.16
88
FINIT_SITE = https://github.com/troglobit/finit/releases/download/$(FINIT_VERSION)
99
FINIT_LICENSE = MIT
1010
FINIT_LICENSE_FILES = LICENSE

patches/sysrepo/4.2.10/0001-sysrepo-plugind-add-support-for-running-in-foregroun.patch

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
From efe7706fd7397c2feb384afea00ee97e74287df0 Mon Sep 17 00:00:00 2001
22
From: Joachim Wiberg <troglobit@gmail.com>
33
Date: Tue, 28 Mar 2023 10:37:53 +0200
4-
Subject: [PATCH 1/9] sysrepo-plugind: add support for running in foreground
4+
Subject: [PATCH 01/10] sysrepo-plugind: add support for running in foreground
55
with syslog
6+
MIME-Version: 1.0
7+
Content-Type: text/plain; charset=UTF-8
8+
Content-Transfer-Encoding: 8bit
69
Organization: Wires
710

811
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
12+
Signed-off-by: Mattias Walström <lazzer@gmail.com>
913
---
1014
src/executables/sysrepo-plugind.c | 10 +++++++++-
1115
1 file changed, 9 insertions(+), 1 deletion(-)

patches/sysrepo/4.2.10/0002-Allow-SR_EV_DONE-to-return-any-error-to-sysrepocfg.patch

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
From 11b9938206cf2bafc456bb22e14c7f85a604760c Mon Sep 17 00:00:00 2001
22
From: Joachim Wiberg <troglobit@gmail.com>
33
Date: Tue, 7 May 2024 15:41:53 +0200
4-
Subject: [PATCH 2/9] Allow SR_EV_DONE to return any error to sysrepocfg
4+
Subject: [PATCH 02/10] Allow SR_EV_DONE to return any error to sysrepocfg
5+
MIME-Version: 1.0
6+
Content-Type: text/plain; charset=UTF-8
7+
Content-Transfer-Encoding: 8bit
58
Organization: Wires
69

710
Importing a system configuration with sysrepocfg the model callbacks do
@@ -17,6 +20,7 @@ This patch is a clumsy way of forcing the (first) error to bubble up to
1720
the surface and cause a non-zero exit code from sysrepocfg.
1821

1922
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
23+
Signed-off-by: Mattias Walström <lazzer@gmail.com>
2024
---
2125
src/shm_sub.c | 40 +++++++++++++++++++++++++++++++---------
2226
src/shm_sub.h | 2 +-

patches/sysrepo/4.2.10/0003-Allow-to-copy-from-factory-default.patch

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
From 9e0267d4f20733b2a26df6d0ee0bc4019db8b13f Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= <lazzer@gmail.com>
33
Date: Wed, 8 May 2024 17:00:50 +0200
4-
Subject: [PATCH 3/9] Allow to copy from factory default
4+
Subject: [PATCH 03/10] Allow to copy from factory default
5+
MIME-Version: 1.0
6+
Content-Type: text/plain; charset=UTF-8
7+
Content-Transfer-Encoding: 8bit
58
Organization: Wires
69

7-
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
10+
Signed-off-by: Mattias Walström <lazzer@gmail.com>
811
---
912
src/sysrepo.c | 2 +-
1013
1 file changed, 1 insertion(+), 1 deletion(-)

patches/sysrepo/4.2.10/0004-Add-z-switch-to-sysrepoctl-to-install-factory-config.patch

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
From e0c899ba266b959544d7cc08c917cebba7ac91c7 Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= <lazzer@gmail.com>
33
Date: Mon, 6 May 2024 14:49:32 +0200
4-
Subject: [PATCH 4/9] Add -z switch to sysrepoctl to install factory config
4+
Subject: [PATCH 04/10] Add -z switch to sysrepoctl to install factory config
55
from a json file
6+
MIME-Version: 1.0
7+
Content-Type: text/plain; charset=UTF-8
8+
Content-Transfer-Encoding: 8bit
69
Organization: Wires
710

811
This to be able to load the yang modules during build time instead on boot.
912

10-
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
13+
Signed-off-by: Mattias Walström <lazzer@gmail.com>
1114
---
1215
src/executables/sysrepoctl.c | 20 +++++++++++++--
1316
src/lyd_mods.h | 7 ++++++

patches/sysrepo/4.2.10/0005-Introduce-new-log-level-SEC-for-audit-trails.patch

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
From c7602dc8eabb941e0a163208aaf4de92dd5ef526 Mon Sep 17 00:00:00 2001
22
From: Joachim Wiberg <troglobit@gmail.com>
33
Date: Wed, 21 Aug 2024 16:00:35 +0200
4-
Subject: [PATCH 5/9] Introduce new log level [SEC] for audit trails
4+
Subject: [PATCH 05/10] Introduce new log level [SEC] for audit trails
5+
MIME-Version: 1.0
6+
Content-Type: text/plain; charset=UTF-8
7+
Content-Transfer-Encoding: 8bit
58
Organization: Wires
69

710
This adds a new log level for security and audit trail related log
@@ -19,6 +22,7 @@ system log daemon, dropping any [SEVERITY] prefix. Also, \n is most
1922
often dropped by log daemons.
2023

2124
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
25+
Signed-off-by: Mattias Walström <lazzer@gmail.com>
2226
---
2327
src/log.c | 18 +++++++++++++++++-
2428
src/log.h | 1 +

patches/sysrepo/4.2.10/0006-Add-audit-trail-for-high-priority-system-changes.patch

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
From a86dfdd4a5cb74c1f8c90c8d5aea6f5505c1b88c Mon Sep 17 00:00:00 2001
22
From: Joachim Wiberg <troglobit@gmail.com>
33
Date: Wed, 21 Aug 2024 16:04:43 +0200
4-
Subject: [PATCH 6/9] Add audit trail for high priority system changes
4+
Subject: [PATCH 06/10] Add audit trail for high priority system changes
5+
MIME-Version: 1.0
6+
Content-Type: text/plain; charset=UTF-8
7+
Content-Transfer-Encoding: 8bit
58
Organization: Wires
69

710
Committing a change to running, copying to a datastore, or calling an
@@ -13,6 +16,7 @@ is when the system actually activates the changes. Copying to startup
1316
or other datastores is handled separately.
1417

1518
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
19+
Signed-off-by: Mattias Walström <lazzer@gmail.com>
1620
---
1721
src/sysrepo.c | 12 ++++++++++++
1822
1 file changed, 12 insertions(+)

patches/sysrepo/4.2.10/0007-On-error-in-sr_shmsub_listen_thread-exit-process.patch

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
From dbf08c67d8f17bdf98466b18fd72a230269e5d46 Mon Sep 17 00:00:00 2001
22
From: Joachim Wiberg <troglobit@gmail.com>
33
Date: Fri, 23 Aug 2024 12:22:06 +0200
4-
Subject: [PATCH 7/9] On error in sr_shmsub_listen_thread(), exit process
4+
Subject: [PATCH 07/10] On error in sr_shmsub_listen_thread(), exit process
5+
MIME-Version: 1.0
6+
Content-Type: text/plain; charset=UTF-8
7+
Content-Transfer-Encoding: 8bit
58
Organization: Wires
69

710
If processing callback events in, e.g., sysrepo-plugind, make sure to
811
log the error and exit(1) the entire process so the system can decide
912
to handle the problem. For example, restart all dependent services.
1013

1114
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
15+
Signed-off-by: Mattias Walström <lazzer@gmail.com>
1216
---
1317
src/shm_sub.c | 2 ++
1418
1 file changed, 2 insertions(+)

0 commit comments

Comments
 (0)