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

Adding the initial version of the Netmiko Proxy and Execution modules #48260

Merged
merged 4 commits into from
Jun 25, 2018

Conversation

mirceaulinic
Copy link
Contributor

What does this PR do?

Adding the initial version of the Netmiko Proxy and Execution modules (based on a third party library called netmiko). This gates the support to be able to interact and manage a large number of network operating systems (though over SSH!).

While the user can always manage the remote device through the netmiko Proxy, the Execution Module is flexible enough to be able to run arbitrary commands when running under a regular Minion, or a different flavour of a Proxy Minion (I have expanded more on this in the documentation).

@ngrundler
Copy link
Contributor

+1

This looks great, and will be particularly useful for us since we have many legacy devices that we want to automate using Salt, but for which we don't want to run a full proxy-minion(primarily campus access switches with relatively static configurations).

mirceaulinic added a commit to mirceaulinic/salt that referenced this pull request Jun 25, 2018
…lm proxy minions

``netmiko`` is already a dependency of ``napalm``, therefore we are able to
expose all the ``netmiko`` functionalities from the ``netmiko`` execution
module without having to run under a netmiko Proxy Minion: see
saltstack#48260, which is the PR adding the netmiko
execution module.

These new functions added to the existing napalm module gate netmiko's features
to be reused into the napalm Proxy Minions, by forwarding the authentication
details and options which are already there.

For example, the following function goes through the ``netmiko`` Execution
Module, and napalm users can invoke it straight away to get direct access to
basic SSH primitives: ``salt '*' napalm.netmiko_call send_command 'show version'``.
(without any further configuration needed).
@rallytime rallytime requested a review from a team June 25, 2018 13:50
@rallytime rallytime merged commit 210d558 into saltstack:develop Jun 25, 2018
@mirceaulinic mirceaulinic deleted the netmiko-proxy branch August 9, 2018 07:57
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.

None yet

4 participants