From 430bb12d13de1e68282085b00e52ad2073ed6b6b Mon Sep 17 00:00:00 2001 From: xq2005 Date: Mon, 19 Mar 2012 06:46:10 +0000 Subject: [PATCH] xdcp command in REST API git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11891 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/xCAT-wsapi/xcatws.cgi | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/xCAT-server/xCAT-wsapi/xcatws.cgi b/xCAT-server/xCAT-wsapi/xcatws.cgi index 3200ff179..a43da13d7 100755 --- a/xCAT-server/xCAT-wsapi/xcatws.cgi +++ b/xCAT-server/xCAT-wsapi/xcatws.cgi @@ -890,6 +890,47 @@ sub nodesHandler { my %elements; extractData(\%elements, $entries); if (defined($elements{'fanout'})) { + push @args, '-f'; + push @args, $elements{'fanout'}; + } + if (defined($elements{'rootimg'})) { + push @args, '-i'; + push @args, $elements{'rootimg'}; + } + if (defined($elements{'options'})) { + push @args, '-o'; + push @args, $elements{'options'}; + } + if (defined($elements{'rsyncfile'})) { + push @args, '-F'; + push @args, $elements{ + 'rsyncfile'}; + } + if (defined($elements{'preserve'})) { + push @args, '-p'; + } + if (defined($elements{'pull'})) { + push @args, '-P'; + } + if (defined($elements{'showconfig'})) { + push @args, '-q'; + } + if (defined($elements{'remotecopy'})) { + push @args, '-r'; + push @args, $elements{'remotecopy'}; + } + if (defined($elements{'recursive'})) { + push @args, '-R'; + } + if (defined($elements{'timeout'})) { + push @args, '-t'; + push @args, $elements{'timeout'}; + } + if (defined($elements{'source'})) { + push @args, $elements{'source'}; + } + if (defined($elements{'target'})) { + push @args, $elements{'target'}; } } }