From d9f2b8ff36d4b18612005e9a4b61f80f0fa715be Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 4 Jun 2018 19:22:25 +0200 Subject: T682: bugfix 'show dns forwarding statistics' --- src/op_mode/dns_forwarding_statistics.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/op_mode') diff --git a/src/op_mode/dns_forwarding_statistics.py b/src/op_mode/dns_forwarding_statistics.py index aa6ffdf37..b732e0040 100755 --- a/src/op_mode/dns_forwarding_statistics.py +++ b/src/op_mode/dns_forwarding_statistics.py @@ -3,6 +3,8 @@ import subprocess import jinja2 +from vyos.config import Config + PDNS_CMD='/usr/bin/rec_control' OUT_TMPL_SRC = """ @@ -16,7 +18,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) -- cgit v1.2.3