Page MenuHomeVyOS Platform

Allow image pruning by list index.
Closed, WontfixPublicFEATURE 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
Normal (likely a few hours)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Unspecified (please specify)

Event Timeline

dmbaturin triaged this task as Wishlist priority.May 22 2018, 10:59 AM
dmbaturin set Is it a breaking change? to Unspecified (possibly destroys the router).
dmbaturin changed Difficulty level from Unknown (require assessment) to Normal (likely a few hours).Jan 27 2021, 7:06 PM
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
dmbaturin added a project: Restricted Project.Apr 4 2024, 7:51 PM
dmbaturin set Issue type to Unspecified (please specify).
dmbaturin added a subscriber: jestabro.
natali-rs1985 changed the task status from Open to In progress.Mon, Sep 23, 1:32 PM
natali-rs1985 claimed this task.
natali-rs1985 changed the task status from Wontfix to Resolved.
Viacheslav changed the task status from Resolved to Wontfix.Thu, Sep 26, 9:12 PM