Skip to content

Commit

Permalink
Merge pull request #22 from netdevops/netmiko-bugfix
Browse files Browse the repository at this point in the history
Netmiko bugfix
  • Loading branch information
jtdub committed Aug 10, 2020
2 parents 3ccb7a8 + 88d4434 commit 7530612
Show file tree
Hide file tree
Showing 105 changed files with 514 additions and 283 deletions.
2 changes: 1 addition & 1 deletion docs/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: a2870c8a88f1daada3925c2f4704d569
config: 858d0ea341ef545e902f4cd6cef84922
tags: d77d1c0d9ca2f4c8421862c7c5a0d620
2 changes: 1 addition & 1 deletion docs/_mkdocs/_build/dirhtml/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: a2870c8a88f1daada3925c2f4704d569
config: 858d0ea341ef545e902f4cd6cef84922
tags: d77d1c0d9ca2f4c8421862c7c5a0d620
6 changes: 3 additions & 3 deletions docs/_mkdocs/_build/dirhtml/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Overview: module code &mdash; netnir 0.0.17 0.0.17 documentation</title>
<title>Overview: module code &mdash; netnir 0.0.18 0.0.18 documentation</title>



Expand Down Expand Up @@ -49,7 +49,7 @@



<a href="../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.17
<a href="../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.18



Expand Down Expand Up @@ -99,7 +99,7 @@
<nav class="wy-nav-top" aria-label="top navigation">

<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../">netnir 0.0.17</a>
<a href="../">netnir 0.0.18</a>

</nav>

Expand Down
11 changes: 6 additions & 5 deletions docs/_mkdocs/_build/dirhtml/_modules/netnir/cli/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>netnir.cli &mdash; netnir 0.0.17 0.0.17 documentation</title>
<title>netnir.cli &mdash; netnir 0.0.18 0.0.18 documentation</title>



Expand Down Expand Up @@ -49,7 +49,7 @@



<a href="../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.17
<a href="../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.18



Expand Down Expand Up @@ -99,7 +99,7 @@
<nav class="wy-nav-top" aria-label="top navigation">

<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../">netnir 0.0.17</a>
<a href="../../../">netnir 0.0.18</a>

</nav>

Expand Down Expand Up @@ -162,8 +162,9 @@ <h1>Source code for netnir.cli</h1><div class="highlight"><pre>

<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> A class object used to setup the netnir cli, consume the available commands from plugins,</span>
<span class="sd"> display the available commands, and execute the available commands based on user input.</span>
<span class="sd"> A class object used to setup the netnir cli, consume the available</span>
<span class="sd"> commands from plugins, display the available commands, and execute</span>
<span class="sd"> the available commands based on user input.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="kn">from</span> <span class="nn">netnir.helpers</span> <span class="kn">import</span> <span class="n">plugins_import</span>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>netnir.core.credentials &mdash; netnir 0.0.17 0.0.17 documentation</title>
<title>netnir.core.credentials &mdash; netnir 0.0.18 0.0.18 documentation</title>



Expand Down Expand Up @@ -49,7 +49,7 @@



<a href="../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.17
<a href="../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.18



Expand Down Expand Up @@ -99,7 +99,7 @@
<nav class="wy-nav-top" aria-label="top navigation">

<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../../">netnir 0.0.17</a>
<a href="../../../../">netnir 0.0.18</a>

</nav>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>netnir.core.inventory &mdash; netnir 0.0.17 0.0.17 documentation</title>
<title>netnir.core.inventory &mdash; netnir 0.0.18 0.0.18 documentation</title>



Expand Down Expand Up @@ -49,7 +49,7 @@



<a href="../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.17
<a href="../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.18



Expand Down Expand Up @@ -99,7 +99,7 @@
<nav class="wy-nav-top" aria-label="top navigation">

<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../../">netnir 0.0.17</a>
<a href="../../../../">netnir 0.0.18</a>

</nav>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>netnir.core.output &mdash; netnir 0.0.17 0.0.17 documentation</title>
<title>netnir.core.output &mdash; netnir 0.0.18 0.0.18 documentation</title>



Expand Down Expand Up @@ -49,7 +49,7 @@



<a href="../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.17
<a href="../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.18



Expand Down Expand Up @@ -99,7 +99,7 @@
<nav class="wy-nav-top" aria-label="top navigation">

<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../../">netnir 0.0.17</a>
<a href="../../../../">netnir 0.0.18</a>

</nav>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>netnir.core.tasks.config_plan &mdash; netnir 0.0.17 0.0.17 documentation</title>
<title>netnir.core.tasks.config_plan &mdash; netnir 0.0.18 0.0.18 documentation</title>



Expand Down Expand Up @@ -49,7 +49,7 @@



<a href="../../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.17
<a href="../../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.18



Expand Down Expand Up @@ -99,7 +99,7 @@
<nav class="wy-nav-top" aria-label="top navigation">

<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../../../">netnir 0.0.17</a>
<a href="../../../../../">netnir 0.0.18</a>

</nav>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>netnir.core.tasks.fetch.config &mdash; netnir 0.0.17 0.0.17 documentation</title>
<title>netnir.core.tasks.fetch.config &mdash; netnir 0.0.18 0.0.18 documentation</title>



Expand Down Expand Up @@ -49,7 +49,7 @@



<a href="../../../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.17
<a href="../../../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.18



Expand Down Expand Up @@ -99,7 +99,7 @@
<nav class="wy-nav-top" aria-label="top navigation">

<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../../../../">netnir 0.0.17</a>
<a href="../../../../../../">netnir 0.0.18</a>

</nav>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>netnir.core.tasks.fetch &mdash; netnir 0.0.17 0.0.17 documentation</title>
<title>netnir.core.tasks.fetch &mdash; netnir 0.0.18 0.0.18 documentation</title>



Expand Down Expand Up @@ -49,7 +49,7 @@



<a href="../../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.17
<a href="../../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.18



Expand Down Expand Up @@ -99,7 +99,7 @@
<nav class="wy-nav-top" aria-label="top navigation">

<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../../../">netnir 0.0.17</a>
<a href="../../../../../">netnir 0.0.18</a>

</nav>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>netnir.core.tasks.inventory &mdash; netnir 0.0.17 0.0.17 documentation</title>
<title>netnir.core.tasks.inventory &mdash; netnir 0.0.18 0.0.18 documentation</title>



Expand Down Expand Up @@ -49,7 +49,7 @@



<a href="../../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.17
<a href="../../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.18



Expand Down Expand Up @@ -99,7 +99,7 @@
<nav class="wy-nav-top" aria-label="top navigation">

<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../../../">netnir 0.0.17</a>
<a href="../../../../../">netnir 0.0.18</a>

</nav>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>netnir.core.tasks.netconf &mdash; netnir 0.0.17 0.0.17 documentation</title>
<title>netnir.core.tasks.netconf &mdash; netnir 0.0.18 0.0.18 documentation</title>



Expand Down Expand Up @@ -49,7 +49,7 @@



<a href="../../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.17
<a href="../../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.18



Expand Down Expand Up @@ -99,7 +99,7 @@
<nav class="wy-nav-top" aria-label="top navigation">

<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../../../">netnir 0.0.17</a>
<a href="../../../../../">netnir 0.0.18</a>

</nav>

Expand Down Expand Up @@ -154,6 +154,7 @@ <h1>Source code for netnir.core.tasks.netconf</h1><div class="highlight"><pre>
<span class="n">netconf_filter</span><span class="p">,</span>
<span class="n">netconf_source</span><span class="p">,</span>
<span class="n">netconf_target</span><span class="p">,</span>
<span class="n">netconf_capabilities</span><span class="p">,</span>
<span class="n">config</span><span class="p">,</span>
<span class="p">)</span>

Expand All @@ -168,19 +169,28 @@ <h1>Source code for netnir.core.tasks.netconf</h1><div class="highlight"><pre>
<span class="n">netconf_filter</span><span class="p">(</span><span class="n">parser</span><span class="p">)</span>
<span class="n">netconf_source</span><span class="p">(</span><span class="n">parser</span><span class="p">)</span>
<span class="n">netconf_target</span><span class="p">(</span><span class="n">parser</span><span class="p">)</span>
<span class="n">netconf_capabilities</span><span class="p">(</span><span class="n">parser</span><span class="p">)</span>
<span class="n">config</span><span class="p">(</span><span class="n">parser</span><span class="p">)</span></div>

<div class="viewcode-block" id="NetConf.run"><a class="viewcode-back" href="../../../../../netnir/netnir.core.tasks/#netnir.core.tasks.netconf.NetConf.run">[docs]</a> <span class="k">def</span> <span class="nf">run</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;execute netconf commands</span>

<span class="sd"> :returns: nornir Result object</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="kn">from</span> <span class="nn">netnir.plugins.netconf</span> <span class="kn">import</span> <span class="n">netconf_get_config</span><span class="p">,</span> <span class="n">netconf_edit_config</span>
<span class="kn">from</span> <span class="nn">netnir.plugins.netconf</span> <span class="kn">import</span> <span class="p">(</span>
<span class="n">netconf_get_config</span><span class="p">,</span>
<span class="n">netconf_edit_config</span><span class="p">,</span>
<span class="n">netconf_capabilities</span><span class="p">,</span>
<span class="p">)</span>
<span class="kn">from</span> <span class="nn">nornir.plugins.functions.text</span> <span class="kn">import</span> <span class="n">print_result</span>

<span class="bp">self</span><span class="o">.</span><span class="n">nr</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_inventory</span><span class="p">()</span>

<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">args</span><span class="o">.</span><span class="n">config</span><span class="p">:</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">args</span><span class="o">.</span><span class="n">capabilities</span><span class="p">:</span>
<span class="n">results</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">nr</span><span class="o">.</span><span class="n">run</span><span class="p">(</span>
<span class="n">task</span><span class="o">=</span><span class="n">netconf_capabilities</span><span class="p">,</span> <span class="n">name</span><span class="o">=</span><span class="s2">&quot;NETCONF SERVER CAPABILITIES&quot;</span><span class="p">,</span>
<span class="p">)</span>
<span class="k">elif</span> <span class="bp">self</span><span class="o">.</span><span class="n">args</span><span class="o">.</span><span class="n">config</span><span class="p">:</span>
<span class="n">results</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">nr</span><span class="o">.</span><span class="n">run</span><span class="p">(</span>
<span class="n">task</span><span class="o">=</span><span class="n">netconf_edit_config</span><span class="p">,</span>
<span class="n">name</span><span class="o">=</span><span class="s2">&quot;NETCONF EDIT CONFIG&quot;</span><span class="p">,</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>netnir.core.tasks.ssh &mdash; netnir 0.0.17 0.0.17 documentation</title>
<title>netnir.core.tasks.ssh &mdash; netnir 0.0.18 0.0.18 documentation</title>



Expand Down Expand Up @@ -49,7 +49,7 @@



<a href="../../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.17
<a href="../../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.18



Expand Down Expand Up @@ -99,7 +99,7 @@
<nav class="wy-nav-top" aria-label="top navigation">

<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../../../">netnir 0.0.17</a>
<a href="../../../../../">netnir 0.0.18</a>

</nav>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>netnir.core.tasks.user &mdash; netnir 0.0.17 0.0.17 documentation</title>
<title>netnir.core.tasks.user &mdash; netnir 0.0.18 0.0.18 documentation</title>



Expand Down Expand Up @@ -49,7 +49,7 @@



<a href="../../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.17
<a href="../../../../../" class="icon icon-home" alt="Documentation Home"> netnir 0.0.18



Expand Down Expand Up @@ -99,7 +99,7 @@
<nav class="wy-nav-top" aria-label="top navigation">

<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../../../">netnir 0.0.17</a>
<a href="../../../../../">netnir 0.0.18</a>

</nav>

Expand Down

0 comments on commit 7530612

Please sign in to comment.