def update
    ip_pool = (params[:id].to_i > 0) ? IpPool.find_by_id(params[:id]) : IpPool.new
    ip_pool.attributes = params

    if ip_pool.save