-
Notifications
You must be signed in to change notification settings - Fork 62
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
[cli-sessions] #99
base: master
Are you sure you want to change the base?
[cli-sessions] #99
Conversation
update hostcfgd: add serial-console and extend ssh-server modules, update existing tests, introduce serial-console test
Could you refine a meaningful PR title? |
self.render_conf_file() | ||
|
||
# Read max_sessions config | ||
def read_max_sessions_config(self, ssh_server_policies): | ||
if ssh_server_policies is not 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.
if not ssh_server_policies:
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.
this will break logic :(
@i-davydenko please handle missing coverage |
…ntain max_sessions field.
Done |
Add support for cli-sessions feature
What I did:
Added handlers for new SSH_SERVER and SERIAL_CONSOLE attributes.
Why I did it:
Give ability to:
configure limit for active login sessions.
configure ssh-server / serial console autologout timeout
configure sysrq-capabilities (enable / disable)
How I did it
Add new service that responsible for serial configuration;
Update existing flows for extended ssh-server configurations in hostcfgd;
Add YANG model to support new configuration.
How I verified it:
Configure, reconfigure, and reset all new parameters, check if applicapple parameters was updated in the system.
Added unittests.
Signed-off-by: Ivan Davydenko ivanda@nvidia.com