-
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
[Local-users-passwords-reset] Add new feature including config, yang and tests #18874
base: master
Are you sure you want to change the base?
Conversation
d051a6d
to
a9ec9e9
Compare
194a5a0
to
5b81bed
Compare
f1f9c87
to
a848ace
Compare
432ef6e
to
96119a9
Compare
c1689a0
to
320f7bd
Compare
/azpw ms_conflict |
320f7bd
to
b887b6f
Compare
/azpw run Azure.sonic-buildimage |
/AzurePipelines run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
@@ -2686,6 +2691,11 @@ | |||
} | |||
} | |||
}, | |||
"LOCAL_USERS_PASSWORDS_RESET": { |
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.
Why this table dupe in config DB?
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.
what do you suggest?
description "First Revision"; | ||
} | ||
|
||
container sonic-local-users-passwords-reset { |
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.
There is a "FEATURE" table for every feature config, maybe consider using that table?
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.
why don't we need this table as well, this is the template right?
platform/mellanox/mlnx-platform-api/sonic_platform/local_users_passwords_reset.py
Outdated
Show resolved
Hide resolved
files/image_config/local-users-passwords-reset/local-users-passwords-reset.py
Outdated
Show resolved
Hide resolved
b887b6f
to
f5ea07d
Compare
@@ -626,6 +626,15 @@ sudo cp $IMAGE_CONFIGS/hostname/hostname-config.service $FILESYSTEM_ROOT_USR_LIB | |||
echo "hostname-config.service" | sudo tee -a $GENERATED_SERVICE_FILE | |||
sudo cp $IMAGE_CONFIGS/hostname/hostname-config.sh $FILESYSTEM_ROOT/usr/bin/ | |||
|
|||
{% if enable_local_users_passwords_reset == "y" %} |
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.
do you need check sonic_asic_platform == "mellanox" as well?
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.
No, why? it is not related to Mellanox or ASIC.. it is a general feature
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.
ok I see, but I only saw local_users_passwords_reset.py for mellanox.
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.
The implementation is for Mellanox, each vendor should add their implementation in case they want to use it same as we did in mellanox
5204429
to
657df13
Compare
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
f8dfa4e
to
0d51e81
Compare
0d51e81
to
afc5f19
Compare
/azp run Azure.sonic-buildimage |
1 similar comment
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
Depends on
sonic-net/sonic-platform-common#465
Why I did it
Added local-users-passwords-reset feature-related services according to HLD: sonic-net/SONiC#1577
Work item tracking
Microsoft ADO (number only):
How I did it
How to verify it
Manual test
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)