-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Device/Centec]Fix the bug that it gets error system-mac of centec platform #12721
Merged
lguohan
merged 1 commit into
sonic-net:master
from
CentecNetworks:devpr_yoush_github_master_fix_system_mac
Jan 18, 2023
Merged
[Device/Centec]Fix the bug that it gets error system-mac of centec platform #12721
lguohan
merged 1 commit into
sonic-net:master
from
CentecNetworks:devpr_yoush_github_master_fix_system_mac
Jan 18, 2023
Conversation
This file contains 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
AlanYoush
changed the title
Fix the bug that it gets error system-mac of centec platform
[Device/Centec]Fix the bug that it gets error system-mac of centec platform
Nov 18, 2022
@qiluo-msft Please help to merge this PR, it solves the problem that it gets error system-mac for centec asic. |
@xumia Please help to merge this PR, it solves the problem that it gets error system-mac for centec asic. |
lguohan
approved these changes
Jan 18, 2023
lguohan
added
Request for 202012 Branch
Request for 202211 Branch
Request for 202205 Branch
Request for 202111 Branch
For PRs being requested for 202111 branch
labels
Jan 18, 2023
mssonicbld
pushed a commit
to mssonicbld/sonic-buildimage
that referenced
this pull request
Jan 19, 2023
…sonic-net#12721) Why I did it When getting system mac of centec platform, it would increase by 1 the last byte of mac, but it could not consider the case of carry. How I did it Firstly, I would replace the ":" with "" of mac to a string. And then, I would convert the mac from string to int and increase by 1, at last convert it to string with inserting ":".
Cherry-pick PR to 202205: #13436 |
mssonicbld
pushed a commit
that referenced
this pull request
Jan 19, 2023
…#12721) Why I did it When getting system mac of centec platform, it would increase by 1 the last byte of mac, but it could not consider the case of carry. How I did it Firstly, I would replace the ":" with "" of mac to a string. And then, I would convert the mac from string to int and increase by 1, at last convert it to string with inserting ":".
mssonicbld
added
Included in 202205 Branch
and removed
Approved for 202205 Branch
Created PR to 202205 Branch
labels
Jan 19, 2023
qiluo-msft
pushed a commit
that referenced
this pull request
Feb 2, 2023
…#12721) Why I did it When getting system mac of centec platform, it would increase by 1 the last byte of mac, but it could not consider the case of carry. How I did it Firstly, I would replace the ":" with "" of mac to a string. And then, I would convert the mac from string to int and increase by 1, at last convert it to string with inserting ":".
mssonicbld
pushed a commit
to mssonicbld/sonic-buildimage
that referenced
this pull request
Feb 3, 2023
…sonic-net#12721) Why I did it When getting system mac of centec platform, it would increase by 1 the last byte of mac, but it could not consider the case of carry. How I did it Firstly, I would replace the ":" with "" of mac to a string. And then, I would convert the mac from string to int and increase by 1, at last convert it to string with inserting ":".
Cherry-pick PR to 202211: #13625 |
mssonicbld
added a commit
that referenced
this pull request
Feb 4, 2023
mssonicbld
added
Included in 202211 Branch
and removed
Approved for 202211 Branch
Created PR to 202211 Branch
labels
Feb 4, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Included in 202012 Branch
Included in 202205 Branch
Included in 202211 Branch
Request for 202012 Branch
Request for 202111 Branch
For PRs being requested for 202111 branch
Request for 202205 Branch
Request for 202211 Branch
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.
Why I did it
When getting system mac of centec platform, it would increase by 1 the last byte of mac, but it could not consider the case of carry.
How I did it
Firstly, I would replace the ":" with "" of mac to a string.
And then, I would convert the mac from string to int and increase by 1, at last convert it to string with inserting ":".
How to verify it
Build centec amd64 and arm64 sonic image
Which release branch to backport (provide reason below if selected)
Description for the changelog
Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)