From a97d0c5875a562a16a9e3cbae03e615c16e47c87 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Thu, 25 Jan 2024 16:47:31 +0100 Subject: lib: set up `frr_libstatedir` This needs to be used for persistent state, which currently is misplaced into `/var/run` / `/run` where it gets deleted across reboots. Signed-off-by: David Lamparter --- tests/topotests/kinds.yaml | 1 + tests/topotests/lib/topogen.py | 1 + 2 files changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/topotests/kinds.yaml b/tests/topotests/kinds.yaml index 127790ed0..5f4b61d4b 100644 --- a/tests/topotests/kinds.yaml +++ b/tests/topotests/kinds.yaml @@ -12,6 +12,7 @@ kinds: - "./%NAME%:/etc/frr" - "%RUNDIR%/var.log.frr:/var/log/frr" - "%RUNDIR%/var.run.frr:/var/run/frr" + - "%RUNDIR%/var.lib.frr:/var/lib/frr" cap-add: - SYS_ADMIN - AUDIT_WRITE diff --git a/tests/topotests/lib/topogen.py b/tests/topotests/lib/topogen.py index 7b06f3d12..155d2d098 100644 --- a/tests/topotests/lib/topogen.py +++ b/tests/topotests/lib/topogen.py @@ -719,6 +719,7 @@ class TopoRouter(TopoGear): "/etc/frr", "/etc/snmp", "/var/run/frr", + "/var/lib/frr", "/var/log", ] -- cgit v1.2.3