Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

azmy98
Copy link

@azmy98 azmy98 commented May 6, 2024

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

  1. Added reset-local-users-passwords SystemD service
  2. YANG model for new ConfDB table and YANG model tests.
  3. Added config variable responsible for including the new service introduced

How to verify it

Manual test

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

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)

@azmy98 azmy98 force-pushed the dev-reset-local-users-password branch 2 times, most recently from d051a6d to a9ec9e9 Compare May 6, 2024 04:31
@azmy98 azmy98 force-pushed the dev-reset-local-users-password branch 5 times, most recently from 194a5a0 to 5b81bed Compare May 6, 2024 06:04
Copy link

linux-foundation-easycla bot commented May 6, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@azmy98 azmy98 force-pushed the dev-reset-local-users-password branch 14 times, most recently from f1f9c87 to a848ace Compare May 7, 2024 10:44
@azmy98 azmy98 requested a review from xumia as a code owner May 7, 2024 10:44
@azmy98 azmy98 force-pushed the dev-reset-local-users-password branch 4 times, most recently from 432ef6e to 96119a9 Compare May 7, 2024 18:08
@azmy98 azmy98 force-pushed the dev-reset-local-users-password branch 8 times, most recently from 2304076 to 639dc2e Compare May 13, 2024 06:23
@azmy98 azmy98 force-pushed the dev-reset-local-users-password branch 2 times, most recently from b3077a4 to 4161fc4 Compare May 16, 2024 08:32
@fastiuk fastiuk closed this May 27, 2024
@fastiuk fastiuk reopened this May 27, 2024
@fastiuk
Copy link
Contributor

fastiuk commented May 27, 2024

/azpw run Azure.sonic-buildimage

@azmy98 azmy98 force-pushed the dev-reset-local-users-password branch 2 times, most recently from c1689a0 to 320f7bd Compare May 27, 2024 15:35
@azmy98
Copy link
Author

azmy98 commented May 27, 2024

/azpw ms_conflict

@azmy98 azmy98 force-pushed the dev-reset-local-users-password branch from 320f7bd to b887b6f Compare August 12, 2024 15:21
@azmy98
Copy link
Author

azmy98 commented Sep 23, 2024

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -2686,6 +2691,11 @@
}
}
},
"LOCAL_USERS_PASSWORDS_RESET": {
Copy link
Contributor

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?

description "First Revision";
}

container sonic-local-users-passwords-reset {
Copy link
Contributor

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?

$(info "SONIC_BUFFER_MODEL" : "$(SONIC_BUFFER_MODEL)")
$(info "INSTALL_DEBUG_TOOLS" : "$(INSTALL_DEBUG_TOOLS)")
$(info "ROUTING_STACK" : "$(SONIC_ROUTING_STACK)")
$(info "CONFIGURED_PLATFORM" : "$(if $(PLATFORM),$(PLATFORM),$(CONFIGURED_PLATFORM))")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most lines do not require any changes. Can these lines remain unchanged?


try:
import json
import subprocess
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems these imports are unused

@@ -0,0 +1,63 @@
#!/usr/bin/env python

import os
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems unused import

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants