From 820e3860efdad3e59347d6345db8a04460ac8586 Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Sun, 27 May 2012 14:52:51 +0200 Subject: [PATCH] remove temporaly as name --- lg.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lg.py b/lg.py index db99164..6e89670 100755 --- a/lg.py +++ b/lg.py @@ -259,7 +259,8 @@ def show_route_for_detail(hosts, proto): ASNAME_CACHE = {} def get_as_name(_as): - if True or not ASNAME_CACHE.has_key(_as): + return "AS%s" % _as + if not ASNAME_CACHE.has_key(_as): whois_answer = whois_command("as%s" % _as) as_name = re.search('as-name: (.*)', whois_answer) if as_name: @@ -289,7 +290,7 @@ def show_bgpmap(data): if _as == previous_as: continue if not nodes.has_key(_as): - nodes[_as] = pydot.Node(_as, style="filled", fillcolor=(first and "#F5A9A9" or "white")) + nodes[_as] = pydot.Node(_as, label=_as, style="filled", fillcolor=(first and "#F5A9A9" or "white")) graph.add_node(nodes[_as]) edge_tuple = (nodes[previous_as], nodes[_as])