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

Napalm and Netmiko optional arguments support #108

Merged
merged 3 commits into from
Nov 13, 2020

Conversation

carbonarok
Copy link
Contributor

@carbonarok carbonarok commented Oct 28, 2020

PR extends the onboarding plugin with possibility of specifying optional arguments for Netmiko And NAPALM connections.
The Netmiko connection is being used to discover the netmiko device type. Napalm connection is being used to get facts from a device.

Optional arguments are loaded in the following manner :

  1. Username and password are derived from task or settings.NAPALM_USERNAME and PASSWORD
  2. Secret : # 1 Task's input, # 2 platform's optional arguments as specified in the task, # 3 settings.NAPALM_ARGS
  3. optional_args : # 1 otm.optional_args , # 2 settings.NAPALM_ARGS,

Closes issues #80, #102, #103

@carbonarok carbonarok force-pushed the develop-2.0-napalm-support branch from 84c810a to bab41d0 Compare October 30, 2020 13:04
@mzbroch
Copy link
Contributor

mzbroch commented Nov 3, 2020

Fixes for issues #80, #102, #103

@carbonarok Can you please appear as a single change - 1 commit, 1 file modified within a PR.

Please make sure the build is passing

@mzbroch mzbroch force-pushed the develop-2.0-napalm-support branch from bab41d0 to 4d1668c Compare November 3, 2020 10:42
@carbonarok carbonarok force-pushed the develop-2.0-napalm-support branch 2 times, most recently from 5665747 to e209b17 Compare November 3, 2020 11:48
@mzbroch mzbroch changed the title Develop 2.0 napalm support Napalm and Netmiko optional arguments support Nov 4, 2020
@carbonarok carbonarok force-pushed the develop-2.0-napalm-support branch 3 times, most recently from b3361d7 to d375845 Compare November 9, 2020 14:02
@mzbroch mzbroch force-pushed the develop-2.0-napalm-support branch from d375845 to 37d3c73 Compare November 9, 2020 14:44
@mzbroch mzbroch self-requested a review November 9, 2020 15:02
@mzbroch mzbroch requested a review from glennmatthews November 9, 2020 15:05
@glennmatthews
Copy link
Contributor

Looks reasonable to me; would be nice to have some unit tests though.

@mzbroch mzbroch marked this pull request as ready for review November 9, 2020 15:43
@mzbroch mzbroch force-pushed the develop-2.0-napalm-support branch from 886af99 to 365ec0f Compare November 12, 2020 12:21
@mzbroch mzbroch removed the request for review from glennmatthews November 13, 2020 16:14
@mzbroch mzbroch force-pushed the develop-2.0-napalm-support branch 2 times, most recently from 832ea1c to c91911c Compare November 13, 2020 16:26
@mzbroch mzbroch force-pushed the develop-2.0-napalm-support branch from c91911c to b32cbf1 Compare November 13, 2020 16:33
@mzbroch mzbroch deleted the develop-2.0-napalm-support branch November 19, 2020 08:18
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.

4 participants