-
Notifications
You must be signed in to change notification settings - Fork 664
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
Add LDAP feature CLI support #3022
Add LDAP feature CLI support #3022
Conversation
bdd2580
to
475e92a
Compare
1bcc751
to
bb5f4d3
Compare
@lguohan who should review and provide feedback? |
show_ldap_global="""\ | ||
BIND DN BIND PASSWORD BIND TIMEOUT VERSION BASE DN PORT TIMEOUT | ||
---------------------------- --------------- -------------- --------- ----------------- ------ --------- | ||
cn=ldapadm,dc=test1,dc=test2 password 3 3 dc=test1,dc=test2 389 2 |
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 are the units for BIND TIMEOUT and LDAP TIMEOUT?
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.
seconds
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.
Is it possible to mention in the header (secs)?
validate_config_or_raise(cfg) | ||
db.set_entry(table, key, None) | ||
|
||
|
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.
It is auto generated code, code cleanup must be done.
body.append(row) | ||
|
||
click.echo(tabulate.tabulate(body, header)) | ||
|
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.
Auto generated code, refactor and code clean up must be done
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 code was autogenerated by using sonic-cli-gen
tool
fixed spaces as you mentioned,
pls comment if there is some other issue.
thanks
2dcee1f
to
ede8825
Compare
@madhupalu , please approve if everything looks good |
cc99892
to
f80960d
Compare
f80960d
to
e7b795c
Compare
aea3d0e
to
5a27799
Compare
@madhupalu Do you have more comments? |
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.
In order to merge it @davidpil2002 @Yarden-Z please check command reference guide and update it with the new additional CLIs. https://github.com/sonic-net/sonic-utilities/blob/master/doc/Command-Reference.md#lldp
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.
need to update command reference guide
5a27799
to
3069f8b
Compare
rebase and update Command-Reference.md file |
b1efed5
to
9da844f
Compare
9da844f
to
5d09fdd
Compare
5d09fdd
to
9435879
Compare
- What I did Add LDAP CLI - How I did it created the CLI by using YANG model generator, the YANG model can be found in the LDAP HLD: sonic-net/SONiC#1487 - How to verify it Manually: you can use configurations command like"config ldap global " or "show ldap global" (more examples in the HLD.) Auto: 1.There are unitest of each policy including good & bad flow in this commit, that should pass.
What I did
Add LDAP CLI
How I did it
created the CLI by using YANG model generator, the YANG model can be found in the LDAP HLD:
sonic-net/SONiC#1487
How to verify it
Manually:
you can use configurations command like"config ldap global " or
"show ldap global" (more examples in the HLD.)
Auto:
1.There are unitest of each policy including good & bad flow in this commit, that should pass.
Previous command output (if the output of a command-line utility has changed)
No prev commands - New feature
New command output (if the output of a command-line utility has changed)