summaryrefslogtreecommitdiff
path: root/python/vyos/frrender.py
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 /python/vyos/frrender.py
parente11a6b7abb719b0e698ae2e02647f450671c6fb1 (diff)
downloadveeos-1x-1666e3d99b8de700c880f09ce6ad5ea8bc7f4568.tar.gz
veeos-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 'python/vyos/frrender.py')
-rw-r--r--python/vyos/frrender.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/frrender.py b/python/vyos/frrender.py
index 015596a8f..2069930a9 100644
--- a/python/vyos/frrender.py
+++ b/python/vyos/frrender.py
@@ -19,13 +19,13 @@ Library used to interface with FRRs mgmtd introduced in version 10.0
import os
+from vyos.defaults import frr_debug_enable
from vyos.utils.file import write_file
from vyos.utils.process import rc_cmd
from vyos.template import render_to_string
from vyos import ConfigError
-DEBUG_ON = os.path.exists('/tmp/vyos.frr.debug')
-DEBUG_ON = True
+DEBUG_ON = os.path.exists(frr_debug_enable)
def debug(message):
if not DEBUG_ON: