diff --git a/lg.py b/lg.py index 8e8bb61..21781a3 100644 --- a/lg.py +++ b/lg.py @@ -721,7 +721,7 @@ def show_route(request_type, hosts, proto): continue if bgpmap: - if app.config['BIRD_HAS_FULL_VIEW']: + if app.config.get('BIRD_HAS_FULL_VIEW', False): detail = build_as_tree_from_full_view(host, proto, res) else: detail[host] = build_as_tree_from_raw_bird_ouput(host, proto, res) diff --git a/toolbox.py b/toolbox.py index 8031226..fad6daa 100644 --- a/toolbox.py +++ b/toolbox.py @@ -20,7 +20,6 @@ ### from dns import resolver, reversename -from toolboxconfig import ASN_ZONE import socket import pickle