Add -s to mkhwconn to support connection between frame and its sfp

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9295 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2011-04-13 09:38:29 +00:00
parent c43da7a74b
commit 16f0f19fab

View File

@ -7,6 +7,7 @@ use xCAT::PPCcli qw(SUCCESS EXPECT_ERROR RC_ERROR NR_ERROR);
use xCAT::Usage;
#use Data::Dumper;
use xCAT::FSPUtils;
use xCAT::PPCconn;
##############################################
# Globals
@ -58,6 +59,14 @@ sub mkhwconn_parse_args
if ( !GetOptions( \%opt, qw(V|verbose h|help t T=s p=s P=s port=s) )) {
return( usage() );
}
if ( exists $opt{s} )
{
my $opttmp = xCAT::PPCconn::mkhwconn_parse_args($request, $args);
return $opttmp;
}
return usage() if ( exists $opt{h});
if ( exists $opt{t} and exists $opt{p})