spider/cmd/show/newconfiguration.pl
Dirk Koopman c1540ccd79 New improved route finding algorithm
This is what Changes says:

Change the route finding algorithm completely. No more recursion. No more
tree searching. It now gives you answers even on a partial cluster map. Oh
and the answers are correct, instead on completely random.

Also completely remove RouteDB from the equation.
Also change sh/newc to default to node map rather than node+user map.
2008-06-24 19:36:57 +01:00

22 lines
409 B
Perl

#
# show the new style cluster routing tables to the user
#
# Copyright (c) 2001 Dirk Koopman G1TLH
#
#
#
my ($self, $line) = @_;
my @list = map { uc } split /\s+/, $line; # list of callsigns of nodes
my @out;
my $nodes_only = 1;
if (@list && $list[0] =~ /^USE/) {
$nodes_only = 0;
shift @list;
}
push @out, $main::routeroot->config($nodes_only, $self->width, 0, {}, @list);
return (1, @out);