]> git.proxmox.com Git - pve-container.git/blobdiff - src/pct
implement create_vm API
[pve-container.git] / src / pct
diff --git a/src/pct b/src/pct
index f4cd1e052d488a581a42482e318d40b76e370c43..d996b0e4a48da03b628440971ca1d0b2698518e4 100755 (executable)
--- a/src/pct
+++ b/src/pct
@@ -59,7 +59,7 @@ __PACKAGE__->register_method ({
 
 
 my $cmddef = {
-    test => [ __PACKAGE__, 'test', [], {}, sub {} ],
+    #test => [ __PACKAGE__, 'test', [], {}, sub {} ],
     list=> [ 'PVE::API2::LXC', 'vmlist', [], { node => $nodename }, sub {
        my $res = shift;
        print Dumper($res);
@@ -76,6 +76,7 @@ my $cmddef = {
                        print "$k: $v\n";
                    }
                }],
+    create => [ 'PVE::API2::LXC', 'create_vm', ['vmid', 'ostemplate'], { node => $nodename }, $upid_exit ],
 
     destroy => [ 'PVE::API2::LXC', 'destroy_vm', ['vmid'], 
                 { node => $nodename }, $upid_exit ],