You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[sonic-installer] Hyphens instead of underscores in command and subcommands (sonic-net#983)
Replace underscores with hyphens in all sonic-installer subcommands as well as the root command itself.
- Install two entry points for sonic-installer: `sonic-installer` and `sonic_installer`. This allows for backward compatibility and time for users to transition from using the underscore versions to the hyphenated versions.
- Replace underscores with hyphens in the following subcommands:
```
set-default
set-next-boot
binary-version
upgrade-docker
rollback-docker
```
- Also add aliases from the underscore versions of these subcommnds to the new hyphenated subcommands to allow for backward compatibility and time for users to transition from using the underscore versions to the hyphenated versions.
- Print deprecation warnings to stderr if issued command line contains any deprecated versions with underscores
- Bonus: Addition of the AliasedGroup base class also adds support for abbreviated subcommands
- Fixed some style issues which did not align with PEP8 standards
- Eliminate duplicate code by adding DOCKER_CONTAINER_LIST; Remove unknown 'amon' container from the list
Copy file name to clipboardExpand all lines: doc/Command-Reference.md
+20-20
Original file line number
Diff line number
Diff line change
@@ -4645,7 +4645,7 @@ Supported options:
4645
4645
2. -f|--force - install FW regardless the current version
4646
4646
3. -i|--image - update FW using current/next SONiC image
4647
4647
4648
-
Note: the default option is --image=current (current/next values are taken from `sonic_installer list`)
4648
+
Note: the default option is --image=current (current/next values are taken from `sonic-installer list`)
4649
4649
4650
4650
### Platform Component Firmware vendor specific behaviour
4651
4651
@@ -6604,26 +6604,26 @@ Go Back To [Beginning of the document](#) or [Beginning of this section](#waterm
6604
6604
6605
6605
## Software Installation and Management
6606
6606
6607
-
SONiC software can be installed in two methods, viz, "using sonic_installer tool", "ONIE Installer".
6607
+
SONiC software can be installed in two methods, viz, "using sonic-installer tool", "ONIE Installer".
6608
6608
6609
6609
6610
6610
### SONiC Installer
6611
6611
This is a command line tool available as part of the SONiC software; If the device is already running the SONiC software, this tool can be used to install an alternate image in the partition.
6612
6612
This tool has facility to install an alternate image, list the available images and to set the next reboot image.
6613
6613
This command requires elevated (root) privileges to run.
6614
6614
6615
-
**sonic_installer list**
6615
+
**sonic-installer list**
6616
6616
6617
6617
This command displays information about currently installed images. It displays a list of installed images, currently running image and image set to be loaded in next reboot.
6618
6618
6619
6619
- Usage:
6620
6620
```
6621
-
sonic_installer list
6621
+
sonic-installer list
6622
6622
```
6623
6623
6624
6624
- Example:
6625
6625
```
6626
-
admin@sonic:~$ sudo sonic_installer list
6626
+
admin@sonic:~$ sudo sonic-installer list
6627
6627
Current: SONiC-OS-HEAD.XXXX
6628
6628
Next: SONiC-OS-HEAD.XXXX
6629
6629
Available:
@@ -6633,18 +6633,18 @@ This command displays information about currently installed images. It displays
6633
6633
6634
6634
TIP: This output can be obtained without evelated privileges by running the `show boot` command. See [here](#show-system-status) for details.
6635
6635
6636
-
**sonic_installer install**
6636
+
**sonic-installer install**
6637
6637
6638
6638
This command is used to install a new image on the alternate image partition. This command takes a path to an installable SONiC image or URL and installs the image.
This command is used to change the image that can be loaded in the *next* reboot only. Note that it will fallback to current image in all other subsequent reboots after the next reboot.
@@ -6726,18 +6726,18 @@ This command is used to remove the unused SONiC image from the disk. Note that i
6726
6726
Image removed
6727
6727
```
6728
6728
6729
-
**sonic_installer cleanup**
6729
+
**sonic-installer cleanup**
6730
6730
6731
6731
This command removes all unused images from the device, leaving only the currently active image and the image which will be booted into next (if different) installed. If there are no images which can be removed, the command will output `No image(s) to remove`
6732
6732
6733
6733
- Usage:
6734
6734
```
6735
-
sonic_installer cleanup [-y|--yes]
6735
+
sonic-installer cleanup [-y|--yes]
6736
6736
```
6737
6737
6738
6738
- Example:
6739
6739
```
6740
-
admin@sonic:~$ sudo sonic_installer cleanup
6740
+
admin@sonic:~$ sudo sonic-installer cleanup
6741
6741
Remove images which are not current and next, continue? [y/N]: y
0 commit comments