Page MenuHomeVyOS Platform

Allow image pruning by list index.
Open, WishlistPublicFEATURE REQUEST

Description

delete system image should allow deletion of images by list index. This is a "quality of life" change that can be implemented in a way that is still explicit, and will increase the speed of image deletion when free space is needed on systems that have long and similar image names.

I propose a splitting of the delete system image command into something along the lines of:

delete system image index <index>

and

delete system image name <name>

The new delete system image index command should be explicit about what image is being deleted, and the target image's relevance to other images in the system image list.

Here is a mock up of what I think the command's execution should look like:

rt01:~$ delete system image index 4
You have selected the following image for deletion:
 
   1: 1.2.0-rolling+201805021450 (default boot)
   2: 1.2.0-rolling+201804240337
   3: 1.2.0-rolling+201804201711
 >>4: 1.2.0-rolling+201804190337
   5: 1.2.0-rolling+201804100337
   6: 999.201802250337
   7: 999.201802070337
Are you sure you want to delete the
"1.2.0-rolling+201804190337" image? (Yes/No) [No]

Tab completion should look similar to the current delete system image command, but with the indices present, and in proper order.

rt01:~$ delete system image index
Possible completions:
  <Enter>       Execute the current command
  1: 1.2.0-rolling+201805021450 (default boot)
                Index of image image to delete
  2: 1.2.0-rolling+201804240337
  3: 1.2.0-rolling+201804201711
  4: 1.2.0-rolling+201804190337
  5: 1.2.0-rolling+201804100337
  6: 999.201802250337
  7: 999.201802070337

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close

Event Timeline

Watcher7 created this task.May 5 2018, 11:02 PM
dmbaturin triaged this task as Wishlist priority.May 22 2018, 10:59 AM
dmbaturin moved this task from Need Triage to Wishlist on the VyOS 1.2 Crux board.May 24 2018, 5:23 PM
pasik added a subscriber: pasik.Mar 12 2019, 6:13 PM
syncer assigned this task to jestabro.Apr 13 2020, 5:42 AM