From 9bf6cb3386637090191ec01fd2153c37bb538250 Mon Sep 17 00:00:00 2001 From: Thomas Liske Date: Fri, 16 Feb 2018 23:58:40 +0100 Subject: [PATCH] While creating the group name the part should selected using 'firstlast'. --- ospfcli2dot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ospfcli2dot b/ospfcli2dot index c861d6a..1d9129a 100755 --- a/ospfcli2dot +++ b/ospfcli2dot @@ -224,7 +224,7 @@ if(len(separator) > 0): firstlast = -1 for r in routers: if (r.hostname != r.routerid): - areas.add(r.hostname.split(separator)[0]) + areas.add(r.hostname.split(separator)[firstlast]) filename = input("Enter output filename: ") with open(filename, 'w') as outfile: