diff options
author | Christian Poessinger <christian@poessinger.com> | 2018-06-04 19:22:25 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2018-06-04 19:22:25 +0200 |
commit | d9f2b8ff36d4b18612005e9a4b61f80f0fa715be (patch) | |
tree | 6b9de85fc0eb16579514f3ec8d7c86718d97f4c8 /src/op_mode/dns_forwarding_statistics.py | |
parent | 28db29e42fca939f8157041cbedc52378ce3622e (diff) | |
download | vyos-1x-d9f2b8ff36d4b18612005e9a4b61f80f0fa715be.tar.gz vyos-1x-d9f2b8ff36d4b18612005e9a4b61f80f0fa715be.zip |
T682: bugfix 'show dns forwarding statistics'
Diffstat (limited to 'src/op_mode/dns_forwarding_statistics.py')
-rwxr-xr-x | src/op_mode/dns_forwarding_statistics.py | 4 |
1 files changed, 3 insertions, 1 deletions
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) |