From 0549b361a9f5a9a07444088931de95865d3d2311 Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Fri, 27 Jan 2012 00:22:30 +0100 Subject: [PATCH] Fix adv show route --- lg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lg.py b/lg.py index e3a63cc..71f322c 100755 --- a/lg.py +++ b/lg.py @@ -161,7 +161,7 @@ def traceroute(hosts, proto): @app.route("/adv//") def show_route_filter(hosts, proto): - return show_route("", hosts, proto) + return show_route("adv", hosts, proto) @app.route("/where//") def show_route_where(hosts, proto): @@ -185,7 +185,7 @@ def show_route(req_type, hosts, proto): all = (req_type.endswith("detail") and " all" or "" ) - if not req_type: + if req_type.startswith("adv"): command = "show route " + expression elif req_type.startswith("where"): command = "show route where net ~ [ " + expression + " ]" + all