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: