[Local-users-passwords-reset] Add new feature including config, yang and tests#18874
[Local-users-passwords-reset] Add new feature including config, yang and tests#18874azmy98 wants to merge 3 commits intosonic-net:masterfrom
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). |
| } | ||
| } | ||
| }, | ||
| "LOCAL_USERS_PASSWORDS_RESET": { |
There was a problem hiding this comment.
Why this table dupe in config DB?
| description "First Revision"; | ||
| } | ||
|
|
||
| container sonic-local-users-passwords-reset { |
There was a problem hiding this comment.
There is a "FEATURE" table for every feature config, maybe consider using that table?
There was a problem hiding this comment.
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
| 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.
do you need check sonic_asic_platform == "mellanox" as well?
There was a problem hiding this comment.
No, why? it is not related to Mellanox or ASIC.. it is a general feature
There was a problem hiding this comment.
ok I see, but I only saw local_users_passwords_reset.py for mellanox.
There was a problem hiding this comment.
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)