diff options
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) |