Revision d4a7ff51

View differences:

src/cli/onevnet
150 150
        end
151 151
    end
152 152

  
153
    addleases_desc = <<-EOT.unindent
154
        (DEPRECATED, use addar) Adds a lease to the Virtual Network
155
    EOT
156

  
157
    command :addleases, addleases_desc, :vnetid, :ip, [:mac, nil] do
158
        helper.perform_action(args[0],options,"lease added") do |vn|
159
            vn.addleases(args[1], args[2])
160
        end
161
    end
162

  
153 163
    rmar_desc = <<-EOT.unindent
154 164
        Removes an address range from the Virtual Network
155 165
    EOT
......
160 170
        end
161 171
    end
162 172

  
173
    rmleases_desc = <<-EOT.unindent
174
        (DEPRECATED, use rmar) Removes a lease from the Virtual Network
175
    EOT
176

  
177
    command :rmleases, rmleases_desc, :vnetid, :ip do
178
        helper.perform_action(args[0],options,"lease removed") do |vn|
179
            vn.rmleases(args[1])
180
        end
181
    end
182

  
163 183
    free_desc = <<-EOT.unindent
164 184
        Frees a reserved address range from the Virtual Network
165 185
    EOT

Also available in: Unified diff