summaryrefslogtreecommitdiff
path: root/src/conf_mode/http-api.py
diff options
context:
space:
mode:
authorThomas Mangin <thomas.mangin@exa.net.uk>2020-05-29 06:37:00 +0100
committerThomas Mangin <thomas.mangin@exa.net.uk>2020-05-29 06:37:00 +0100
commit5f4335042cf40bf4bf18294706cce0b3a2fd5907 (patch)
tree260f4c2be93f2f59846982533cd47051d7ea5ec8 /src/conf_mode/http-api.py
parent073b2a75f19d3af942e78ae44e2d96162648f844 (diff)
downloadvyos-1x-5f4335042cf40bf4bf18294706cce0b3a2fd5907.tar.gz
vyos-1x-5f4335042cf40bf4bf18294706cce0b3a2fd5907.zip
airbag: T2088: explicit enabling of the feature
airbag must now be explicitly installed. the patch also allow to fully disables the installation of the logging code at setup (and not just installing and doing nothing)
Diffstat (limited to 'src/conf_mode/http-api.py')
-rwxr-xr-xsrc/conf_mode/http-api.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/http-api.py b/src/conf_mode/http-api.py
index 3b8a67ef6..b8a084a40 100755
--- a/src/conf_mode/http-api.py
+++ b/src/conf_mode/http-api.py
@@ -27,6 +27,9 @@ from vyos import ConfigError
from vyos.util import cmd
from vyos.util import call
+from vyos import airbag
+airbag.enable()
+
config_file = '/etc/vyos/http-api.conf'
vyos_conf_scripts_dir=vyos.defaults.directories['conf_mode']