fix the issue that lsslp put in the SLP request messages into the "stana" files working with lsslp -z flag
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15527 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -90,7 +90,7 @@ sub dodiscover {
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    my $printinfo = join(",", @printip);  
 | 
			
		||||
    send_message($args{reqcallback}, 0, "Sending SLP request on interfaces: $printinfo ...") if ($args{reqcallback});
 | 
			
		||||
    send_message($args{reqcallback}, 0, "Sending SLP request on interfaces: $printinfo ...") if ($args{reqcallback} and !$args{nomsg} );
 | 
			
		||||
	foreach my $srvtype (@srvtypes) {
 | 
			
		||||
		send_service_request_single(%args,ifacemap=>$interfaces,SrvType=>$srvtype);
 | 
			
		||||
	}
 | 
			
		||||
@@ -170,12 +170,12 @@ sub dodiscover {
 | 
			
		||||
            $interval = time() -  $startinterval;
 | 
			
		||||
            if ($args{Time} and $args{Count}) {
 | 
			
		||||
                if ($rspcount >= $args{Count} or $interval >= $args{Time}) {
 | 
			
		||||
                    send_message($args{reqcallback}, 0, "Received $rspcount1 responses.") if ($args{reqcallback});
 | 
			
		||||
                    send_message($args{reqcallback}, 0, "Received $rspcount1 responses.") if ($args{reqcallback}  and !$args{nomsg});
 | 
			
		||||
                    last;
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            if ($sendcount > $retrytime and $rspcount1 == 0) {
 | 
			
		||||
                send_message($args{reqcallback}, 0, "Received $rspcount1 responses.") if ($args{reqcallback});
 | 
			
		||||
                send_message($args{reqcallback}, 0, "Received $rspcount1 responses.") if ($args{reqcallback} and !$args{nomsg});
 | 
			
		||||
                last;
 | 
			
		||||
            }
 | 
			
		||||
            #########################
 | 
			
		||||
@@ -184,8 +184,8 @@ sub dodiscover {
 | 
			
		||||
            if ( $interval > $retryinterval){#* (2**$sendcount))) { #double time
 | 
			
		||||
                $sendcount++;
 | 
			
		||||
                $startinterval = time();
 | 
			
		||||
                send_message($args{reqcallback}, 0, "Received $rspcount1 responses.") if ($args{reqcallback});  
 | 
			
		||||
                send_message($args{reqcallback}, 0, "Sending SLP request on interfaces: $printinfo ...") if ($args{reqcallback});
 | 
			
		||||
                send_message($args{reqcallback}, 0, "Received $rspcount1 responses.") if ($args{reqcallback} and !$args{nomsg});  
 | 
			
		||||
                send_message($args{reqcallback}, 0, "Sending SLP request on interfaces: $printinfo ...") if ($args{reqcallback} and !$args{nomsg});
 | 
			
		||||
                foreach my $srvtype (@srvtypes) {
 | 
			
		||||
                    send_service_request_single(%args,ifacemap=>$interfaces,SrvType=>$srvtype);
 | 
			
		||||
                }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user