bugfix: do not require BIRD_HAS_FULL_VIEW in config

This commit is contained in:
Steffen Vogel 2015-04-04 17:57:24 +02:00
parent 376a29ea08
commit 4762588a01

2
lg.py
View file

@ -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)