mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-24 21:34:01 +03:00
feature #3019: add add/rmleases back to onevnet CLI
This commit is contained in:
parent
68d5f9183e
commit
d4a7ff5198
@ -150,6 +150,16 @@ cmd=CommandParser::CmdParser.new(ARGV) do
|
||||
end
|
||||
end
|
||||
|
||||
addleases_desc = <<-EOT.unindent
|
||||
(DEPRECATED, use addar) Adds a lease to the Virtual Network
|
||||
EOT
|
||||
|
||||
command :addleases, addleases_desc, :vnetid, :ip, [:mac, nil] do
|
||||
helper.perform_action(args[0],options,"lease added") do |vn|
|
||||
vn.addleases(args[1], args[2])
|
||||
end
|
||||
end
|
||||
|
||||
rmar_desc = <<-EOT.unindent
|
||||
Removes an address range from the Virtual Network
|
||||
EOT
|
||||
@ -160,6 +170,16 @@ cmd=CommandParser::CmdParser.new(ARGV) do
|
||||
end
|
||||
end
|
||||
|
||||
rmleases_desc = <<-EOT.unindent
|
||||
(DEPRECATED, use rmar) Removes a lease from the Virtual Network
|
||||
EOT
|
||||
|
||||
command :rmleases, rmleases_desc, :vnetid, :ip do
|
||||
helper.perform_action(args[0],options,"lease removed") do |vn|
|
||||
vn.rmleases(args[1])
|
||||
end
|
||||
end
|
||||
|
||||
free_desc = <<-EOT.unindent
|
||||
Frees a reserved address range from the Virtual Network
|
||||
EOT
|
||||
|
Loading…
Reference in New Issue
Block a user