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

Added CLI commands to configure Local Users' Passwords Reset feature #3302

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

azmy98
Copy link

@azmy98 azmy98 commented May 2, 2024

What I did

Added CLI commands for Local Users' Passwords Reset feature according to HLD: sonic-net/SONiC#1577

How I did it

Added CLI commands to:

  1. Enable/disable Local Users' Passwords Reset feature
  2. Related show command

How to verify it

Manual testing

Previous command output (if the output of a command-line utility has changed)

N/A

New command output (if the output of a command-line utility has changed)

N/A

Copy link

linux-foundation-easycla bot commented May 2, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@azmy98 azmy98 force-pushed the dev-reset-local-users-password branch from cc9f2d9 to 860f804 Compare May 7, 2024 10:13
@azmy98 azmy98 changed the title Dev reset local users password Added CLI commands to configure Local Users' Passwords Reset feature May 7, 2024
@azmy98 azmy98 force-pushed the dev-reset-local-users-password branch 7 times, most recently from b41277b to 40c6e2b Compare May 9, 2024 06:18
@dgsudharsan
Copy link
Collaborator

@azmy98 Can you please fix the conflicts and the build?

Copy link
Collaborator

@dgsudharsan dgsudharsan left a comment

Choose a reason for hiding this comment

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

Please add the output of new show command to description

show/main.py Outdated
data = []

for key in hdrs:
data.append(feature_table.get(key, '').replace('\\n', '\n'))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please clarify why do we need replace here? I don't see any other API doing this.

Copy link
Author

@azmy98 azmy98 May 15, 2024

Choose a reason for hiding this comment

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

I used the same as the Banner 'show' command implementation: #3021

@azmy98 azmy98 force-pushed the dev-reset-local-users-password branch from 40c6e2b to db4231a Compare May 15, 2024 03:20
@azmy98
Copy link
Author

azmy98 commented May 15, 2024

@dgsudharsan, The new commands are documented in the doc file.

@azmy98 azmy98 force-pushed the dev-reset-local-users-password branch from db4231a to 1d84e34 Compare May 16, 2024 03:30
@fastiuk fastiuk closed this May 27, 2024
@fastiuk fastiuk reopened this May 27, 2024
@azmy98 azmy98 force-pushed the dev-reset-local-users-password branch 2 times, most recently from 65294f4 to 039db9d Compare May 28, 2024 05:46
@azmy98 azmy98 force-pushed the dev-reset-local-users-password branch from a2a14b2 to c118910 Compare August 12, 2024 15:29
@azmy98 azmy98 force-pushed the dev-reset-local-users-password branch from c118910 to bfc284a Compare August 14, 2024 12:13
@liuh-80
Copy link
Contributor

liuh-80 commented Sep 9, 2024

/azpw run Azure.sonic-utilities

@liuh-80
Copy link
Contributor

liuh-80 commented Sep 9, 2024

@azmy98 , please fix build issue.

@azmy98
Copy link
Author

azmy98 commented Sep 10, 2024

/azpw run Azure.sonic-utilities

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-utilities

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

qiluo-msft
qiluo-msft previously approved these changes Sep 16, 2024
@qiluo-msft
Copy link
Contributor

Please resolve conflict.

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