Bug #4889

IPv6 can not be put on hold

Added by Javi Fontan almost 4 years ago. Updated over 3 years ago.

Status:ClosedStart date:11/02/2016
Priority:NormalDue date:
Assignee:Sergio Semedi% Done:

0%

Category:Client API & Library
Target version:Release 5.4
Resolution:fixed Pull request:
Affected Versions:OpenNebula 5.2

Description

IPv6 addresses contain ":" character and this is used by OCA library to tell appart IP's and MAC addresses. From virtual_network.rb:

        # Holds a virtual network address
        # @param ip [String] address to hold, if contains ":" a MAC address is assumed
        # @param ar_id [Integer] The address range to hold the lease. If not set
        #        the lease will be held from all possible address ranges
        def hold(ip, ar_id=-1)
            return Error.new('ID not defined') if !@pe_id

            if ip.include?':'
                addr_name = "MAC" 
            else
                addr_name = "IP" 
            end

            lease_template =  "LEASES = [ #{addr_name} = #{ip}" 
            lease_template << ", AR_ID = #{ar_id}" if ar_id != -1
            lease_template << "]" 

            rc = @client.call(VN_METHODS[:hold], @pe_id, lease_template)
            rc = nil if !OpenNebula.is_error?(rc)

            return rc
        end

History

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

  • Target version set to Release 5.4

#2 Updated by OpenNebula Systems Support Team over 3 years ago

  • Assignee set to Sergio Semedi

#3 Updated by OpenNebula Systems Support Team over 3 years ago

  • Status changed from Pending to New

#4 Updated by Ruben S. Montero over 3 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Also available in: Atom PDF