summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-12-08 15:41:53 +0100
committerChristian Breunig <christian@breunig.cc>2024-12-16 22:24:50 +0100
commit1666e3d99b8de700c880f09ce6ad5ea8bc7f4568 (patch)
tree84e5cf392f8c2c03d5edcb194a50151d99cf9d19 /src
parente11a6b7abb719b0e698ae2e02647f450671c6fb1 (diff)
downloadvyos-1x-1666e3d99b8de700c880f09ce6ad5ea8bc7f4568.tar.gz
vyos-1x-1666e3d99b8de700c880f09ce6ad5ea8bc7f4568.zip
frr: T6746: add default entry for config debug file
A lot of services have dynamic debug capabilities which will be turned on by creating a file in /tmp. These scripts have the path hardcoded and sometimes accross multiple places (bad). This commit introduces vyos.defaults.frr_debug_enable to get the path for the debug file from a single location.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/init/vyos-router3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/init/vyos-router b/src/init/vyos-router
index e2e964656..00136309b 100755
--- a/src/init/vyos-router
+++ b/src/init/vyos-router
@@ -474,9 +474,10 @@ start ()
# enable some debugging before loading the configuration
if grep -q vyos-debug /proc/cmdline; then
log_action_begin_msg "Enable runtime debugging options"
+ FRR_DEBUG=$(python3 -c "from vyos.defaults import frr_debug_enable; print(frr_debug_enable)")
+ touch $FRR_DEBUG
touch /tmp/vyos.container.debug
touch /tmp/vyos.ifconfig.debug
- touch /tmp/vyos.frr.debug
touch /tmp/vyos.container.debug
touch /tmp/vyos.smoketest.debug
fi