X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fnewconfiguration.pl;fp=cmd%2Fshow%2Fnewconfiguration.pl;h=a2599b88d69ebc0a53eb56dc10d6fd96d3d2c7ad;hb=b67b50de92dbf61ce939b42f7c74e30dc58eba41;hp=0000000000000000000000000000000000000000;hpb=c33a59698b9c2a7c319200620765d37706e12c5f;p=spider.git diff --git a/cmd/show/newconfiguration.pl b/cmd/show/newconfiguration.pl new file mode 100644 index 00000000..a2599b88 --- /dev/null +++ b/cmd/show/newconfiguration.pl @@ -0,0 +1,21 @@ +# +# show the new style cluster routing tables to the user +# +# Copyright (c) 2001 Dirk Koopman G1TLH +# +# $Id$ +# + +my ($self, $line) = @_; +my @list = map { uc } split /\s+/, $line; # list of callsigns of nodes +my @out; +my $nodes_only; + +if (@list && $list[0] =~ /^NOD/) { + $nodes_only++; + shift @list; +} + +push @out, $main::routeroot->config($nodes_only, 0, @list); +return (1, @out); +