Show
Ignore:
Timestamp:
05/18/08 12:49:50 (4 years ago)
Author:
Ted Faber <faber@…>
Children:
ad5639c6bf5190c89314874d131d0ab87bce0078
Parents:
f3691ff3ae25d3b83c09aa21905fb9320e79cad2
git-committer:
Ted Faber <faber@isi.edu> / 2008-05-18T19:49:50Z+0000
Message:

splitter asks with node information

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • fedkit/splitter.pl

    rf3691ff r387408b  
    572572        chomp; 
    573573 
    574         my $tb = $_;            # Current testbed 
     574        my $tb;         # Current testbed 
     575        my @nodes;      # Current testbed node requests 
     576 
     577        /([^|]+)\|?(.*)/ && do { 
     578            my $n; 
     579 
     580            ($tb , $n) = ($1, $2); 
     581            @nodes = split(/\|/, $n); 
     582        }; 
     583 
    575584        # If this testbed has not had its access parameters read from fedd, try 
    576585        # to read them, if we have a way to talk to fedd 
     
    585594            my $cmd = "$fedd_client -t " .  
    586595                $tbparams->{$tb}->{'uri'} .  " -T $ENV{HOME}/cacert.pem ". 
    587                 "-l $tb $proj | /usr/bin/tee fedd.$tb "; 
     596                "-l $tb $proj" . (@nodes ? " -n " : " ") . 
     597                join(" -n ", @nodes) . "| /usr/bin/tee fedd.$tb "; 
    588598            print "$cmd\n" if $verbose; 
    589599