summaryrefslogtreecommitdiff
path: root/src/op_mode/dns_forwarding_statistics.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-06-05 20:21:37 +0200
committerDaniil Baturin <daniil@baturin.org>2018-06-05 20:21:37 +0200
commit2a3a7fc621b7bfe0b707a708b61065fc0a1284a3 (patch)
tree8257d79beeaf07aba81ef0d3869b51379b497638 /src/op_mode/dns_forwarding_statistics.py
parent9aec42029aff0d81c9f27a6d6df6eae401446c76 (diff)
parentef8f08812efbc85a8f4d53e3770c5bd0047e9d89 (diff)
downloadvyos-1x-2a3a7fc621b7bfe0b707a708b61065fc0a1284a3.tar.gz
vyos-1x-2a3a7fc621b7bfe0b707a708b61065fc0a1284a3.zip
Merge branch 'current' of github.com:vyos/vyos-1x into current
Diffstat (limited to 'src/op_mode/dns_forwarding_statistics.py')
-rwxr-xr-xsrc/op_mode/dns_forwarding_statistics.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/op_mode/dns_forwarding_statistics.py b/src/op_mode/dns_forwarding_statistics.py
index aa6ffdf37..f626244a8 100755
--- a/src/op_mode/dns_forwarding_statistics.py
+++ b/src/op_mode/dns_forwarding_statistics.py
@@ -2,6 +2,9 @@
import subprocess
import jinja2
+import sys
+
+from vyos.config import Config
PDNS_CMD='/usr/bin/rec_control'
@@ -16,7 +19,7 @@ Cache size: {{ cache_size }} kbytes
if __name__ == '__main__':
# Do nothing if service is not configured
- c = vyos.config.Config()
+ c = Config()
if not c.exists_effective('service dns forwarding'):
print("DNS forwarding is not configured")
sys.exit(0)