-
Notifications
You must be signed in to change notification settings - Fork 1k
Support recovering Nexus devices via console #11264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
wangxin
merged 6 commits into
sonic-net:master
from
yutongzhang-microsoft:yutongzhang/nexus_recovery
Jan 18, 2024
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a93402c
Add nexus testbed recovery
yutongzhang-microsoft 1e4abfa
Cover different ssh connection fail
yutongzhang-microsoft 41c1e8c
Add constants
yutongzhang-microsoft 5a84c8f
Add constants in ONIE
yutongzhang-microsoft 23136c0
Change type to device_type to avoid conflict
yutongzhang-microsoft 97ac5ad
Remove a TODO
yutongzhang-microsoft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| RC_SSH_SUCCESS = 0 | ||
| RC_SSH_FAILED = 1 | ||
| RC_PASSWORD_FAILED = 2 | ||
|
|
||
| # Here we will get a screen like | ||
| # | ||
| # GNU GRUB version 2.02 | ||
| # | ||
| # +----------------------------------------------------------------------------+ | ||
| # |*SONiC-OS-20220531.48 | | ||
| # | ONIE | | ||
| # | | | ||
| # | | | ||
| # +----------------------------------------------------------------------------+ | ||
| # Use the ^ and v keys to select which entry is highlighted. | ||
| # Press enter to boot the selected OS, `e' to edit the commands | ||
| # before booting or `c' for a command-line. | ||
|
|
||
| # The buffer maybe small and can not hold all characters | ||
| # So we select typical characters | ||
| OS_VERSION_IN_GRUB = "-OS-" | ||
| ONIE_ENTRY_IN_GRUB = "*ONIE" | ||
|
|
||
| # After enter into ONIE, we we get the screen like | ||
| # | ||
| # GNU GRUB version 2.02 | ||
| # | ||
| # +----------------------------------------------------------------------------+ | ||
| # |*ONIE: Install OS | | ||
| # | ONIE: Rescue | | ||
| # | ONIE: Uninstall OS | | ||
| # | ONIE: Update ONIE | | ||
| # | ONIE: Embed ONIE | | ||
| # | | | ||
| # | | | ||
| # +----------------------------------------------------------------------------+ | ||
| # Use the ^ and v keys to select which entry is highlighted. | ||
| # Press enter to boot the selected OS, `e' to edit the commands | ||
| # before booting or `c' for a command-line. | ||
|
|
||
| INSTALL_OS_IN_ONIE = "Install OS" | ||
|
|
||
| # After enter into the installation in ONIE, it will discover some configuration | ||
| # And finally, we will get the string "ONIE: Starting ONIE Service Discovery" | ||
| ONIE_START_TO_DISCOVERY = "Discovery" | ||
|
|
||
| # At last, if installation successes in ONIE, we will get the prompt | ||
| SONIC_PROMPT = "sonic login:" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you create constant for the strings like "-OS-", "*ONIE", "Install OS" and others, so that it would be clear to speculate the usage from the constant name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done