Feature #130

Argument Ranges for the CLI

Added by Ruben S. Montero almost 12 years ago. Updated almost 10 years ago.

Status:ClosedStart date:07/22/2009
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:CLI
Target version:Release 1.4
Resolution:fixed Pull request:

Description

Include ranges for VM arguments, like:

onevm create template1 template2
onevm create template.[1-10]
onevm shutdown 1 45 6
onevm shutdown 10-17

By Sebastien Goasguen

Associated revisions

Revision ef8e9840
Added by Javi Fontan almost 12 years ago

Added range expansion functions for CLI (#130)

git-svn-id: http://svn.opennebula.org/one/trunk@770 3034c82b-c49b-4eb3-8279-a7acafdc01c0

Revision 50ad8028
Added by Javi Fontan almost 12 years ago

Added parameter range expansion to most of onevm actions (#130)

git-svn-id: http://svn.opennebula.org/one/trunk@771 3034c82b-c49b-4eb3-8279-a7acafdc01c0

Revision c28404d4
Added by Javi Fontan almost 12 years ago

Added parameter range expansion to onehost, onevnet and oneuser (#130)

git-svn-id: http://svn.opennebula.org/one/trunk@772 3034c82b-c49b-4eb3-8279-a7acafdc01c0

History

#1 Updated by Ruben S. Montero almost 12 years ago

Another suggestion by Jonathan Sinclair is to submit multiple times the same template but with a parametric name like vm1, vm2 ,..., vmx. This will come in handy when submitting multiple VMs cloned from the same master image on a given network, in this case the templates would only differ in the VM name.

onevm create -n <times> --name <base_name> -i <template>

#2 Updated by Javi Fontan almost 12 years ago

  • Status changed from New to Assigned

There are modifications added to provide ranges functionality. The syntax is:

  • [<start>-<end>]: generates numbers from start to end
  • [<start>+<count>]: generates a range that starts with the number provided and has count number of elements

If start first number is 0 then it will pad the numbers generated with 0 to the same size as the last element in the range.

Example:

[9-11]: 9 10 11
[09-11]: 09 10 11
[8+3]: 8 9 10
[08+3]: 08 09 10

#3 Updated by Ruben S. Montero almost 12 years ago

  • Target version changed from Release 1.4.2 to Release 1.4

#4 Updated by Javi Fontan over 11 years ago

  • Status changed from Assigned to 3
  • Resolution set to fixed

#5 Updated by Ruben S. Montero almost 10 years ago

  • Status changed from 3 to Closed

Also available in: Atom PDF