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

SSH resource module implementation #462

Merged
merged 19 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion plugins/module_utils/network/sonic/argspec/facts/facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def __init__(self, **kwargs):
'login_lockout',
'poe',
'mgmt_servers',
'ospf_area'
'ospf_area',
'ssh',
]

argument_spec = {
Expand Down
65 changes: 65 additions & 0 deletions plugins/module_utils/network/sonic/argspec/ssh/ssh.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#
# -*- coding: utf-8 -*-
# Copyright 2024 Dell Inc. or its subsidiaries. All Rights Reserved
# GNU General Public License v3.0+
# (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

#############################################
# WARNING #
#############################################
#
# This file is auto generated by the resource
# module builder playbook.
#
# Do not edit this file manually.
#
# Changes to this file will be over written
# by the resource module builder.
#
# Changes should be made in the model used to
# generate this file or in the resource module
# builder template.
#
#############################################

"""
The arg spec for the sonic_ssh module
"""

from __future__ import absolute_import, division, print_function
__metaclass__ = type


class SshArgs(object): # pylint: disable=R0903
"""The arg spec for the sonic_ssh module
"""

def __init__(self, **kwargs):
pass

argument_spec = {
'config': {
'options': {
'client': {
'options': {
'cipher': {
'type': 'str'
},
'kex': {
'type': 'str'
},
'mac': {
'type': 'str'
}
},
'type': 'dict'
}
},
'type': 'dict'
},
'state': {
'choices': ['merged', 'deleted', 'replaced', 'overridden'],
'default': 'merged',
'type': 'str'
}
} # pylint: disable=C0301
Loading
Loading