director/lib/director/network_reservation.rb
##
# Tries to take the provided reservation if it meets the requirements
# @return [void]
Tries to take the provided reservation if it meets the requirements
Tries to take the provided reservation if it meets the requirements
def take(other)
      if other.reserved?
        if @type == other.type
          if dynamic? || (static? && @ip == other.ip)
            @ip = other.ip
            @reserved = true
          end
        end
      end
    end
def take ( other ) if other . reserved? if @type == other . type if dynamic? || ( static? && @ip == other . ip ) @ip = other . ip @reserved = true end end end end
Tries to take the provided reservation if it meets the requirements
Tries to take the provided reservation if it meets the requirements
None
void
other