Skip to content

Commit

Permalink
Merge pull request #1734 from ktbyers/develop
Browse files Browse the repository at this point in the history
Netmiko Release 3.1.1
  • Loading branch information
ktbyers authored May 18, 2020
2 parents 6e564c4 + 719cf27 commit 944953c
Show file tree
Hide file tree
Showing 51 changed files with 3,082 additions and 240 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,17 @@ dist
netmiko.egg-info
.cache
bin/.netmiko.cfg

# IDE Related files
.vscode/*
.idea/

# Virtual Environment files
.venv/
bin/
lib/
pyvenv.cfg
.devcontainer

# Sphinx documentation
docs/build/doctrees/
Expand Down
3 changes: 3 additions & 0 deletions PLATFORMS.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
- Extreme MLX/NetIron (Brocade/Foundry)
- HPE Comware7
- Huawei
- Huawei OLT
- Huawei SmartAX
- IP Infusion OcNOS
- Juniper ScreenOS
- Mellanox
Expand Down Expand Up @@ -71,5 +73,6 @@
- QuantaMesh
- Rad ETX
- Sophos SFOS
- Ubiquiti Unifi Switch
- Versa Networks FlexVNF
- Watchguard Firebox
38 changes: 35 additions & 3 deletions docs/netmiko/aruba/aruba_ssh.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ <h1 class="title">Module <code>netmiko.aruba.aruba_ssh</code></h1>
def __init__(self, **kwargs):
if kwargs.get(&#34;default_enter&#34;) is None:
kwargs[&#34;default_enter&#34;] = &#34;\r&#34;
# Aruba has an auto-complete on space behavior that is problematic
if kwargs.get(&#34;global_cmd_verify&#34;) is None:
kwargs[&#34;global_cmd_verify&#34;] = False
return super().__init__(**kwargs)

def session_preparation(self):
Expand All @@ -57,7 +60,13 @@ <h1 class="title">Module <code>netmiko.aruba.aruba_ssh</code></h1>
&#34;&#34;&#34;
if not pattern:
pattern = re.escape(self.base_prompt[:16])
return super().check_config_mode(check_string=check_string, pattern=pattern)</code></pre>
return super().check_config_mode(check_string=check_string, pattern=pattern)

def config_mode(self, config_command=&#34;configure term&#34;, pattern=&#34;&#34;):
&#34;&#34;&#34;
Aruba auto completes on space so &#39;configure&#39; needs fully spelled-out.
&#34;&#34;&#34;
return super().config_mode(config_command=config_command, pattern=pattern)</code></pre>
</details>
</section>
<section>
Expand Down Expand Up @@ -209,6 +218,9 @@ <h2 class="section-title" id="header-classes">Classes</h2>
def __init__(self, **kwargs):
if kwargs.get(&#34;default_enter&#34;) is None:
kwargs[&#34;default_enter&#34;] = &#34;\r&#34;
# Aruba has an auto-complete on space behavior that is problematic
if kwargs.get(&#34;global_cmd_verify&#34;) is None:
kwargs[&#34;global_cmd_verify&#34;] = False
return super().__init__(**kwargs)

def session_preparation(self):
Expand All @@ -231,7 +243,13 @@ <h2 class="section-title" id="header-classes">Classes</h2>
&#34;&#34;&#34;
if not pattern:
pattern = re.escape(self.base_prompt[:16])
return super().check_config_mode(check_string=check_string, pattern=pattern)</code></pre>
return super().check_config_mode(check_string=check_string, pattern=pattern)

def config_mode(self, config_command=&#34;configure term&#34;, pattern=&#34;&#34;):
&#34;&#34;&#34;
Aruba auto completes on space so &#39;configure&#39; needs fully spelled-out.
&#34;&#34;&#34;
return super().config_mode(config_command=config_command, pattern=pattern)</code></pre>
</details>
<h3>Ancestors</h3>
<ul class="hlist">
Expand Down Expand Up @@ -260,6 +278,20 @@ <h3>Methods</h3>
return super().check_config_mode(check_string=check_string, pattern=pattern)</code></pre>
</details>
</dd>
<dt id="netmiko.aruba.aruba_ssh.ArubaSSH.config_mode"><code class="name flex">
<span>def <span class="ident">config_mode</span></span>(<span>self, config_command='configure term', pattern='')</span>
</code></dt>
<dd>
<section class="desc"><p>Aruba auto completes on space so 'configure' needs fully spelled-out.</p></section>
<details class="source">
<summary>Source code</summary>
<pre><code class="python">def config_mode(self, config_command=&#34;configure term&#34;, pattern=&#34;&#34;):
&#34;&#34;&#34;
Aruba auto completes on space so &#39;configure&#39; needs fully spelled-out.
&#34;&#34;&#34;
return super().config_mode(config_command=config_command, pattern=pattern)</code></pre>
</details>
</dd>
<dt id="netmiko.aruba.aruba_ssh.ArubaSSH.session_preparation"><code class="name flex">
<span>def <span class="ident">session_preparation</span></span>(<span>self)</span>
</code></dt>
Expand Down Expand Up @@ -290,7 +322,6 @@ <h3>Inherited members</h3>
<li><code><a title="netmiko.cisco_base_connection.CiscoSSHConnection.clear_buffer" href="../base_connection.html#netmiko.base_connection.BaseConnection.clear_buffer">clear_buffer</a></code></li>
<li><code><a title="netmiko.cisco_base_connection.CiscoSSHConnection.close_session_log" href="../base_connection.html#netmiko.base_connection.BaseConnection.close_session_log">close_session_log</a></code></li>
<li><code><a title="netmiko.cisco_base_connection.CiscoSSHConnection.commit" href="../base_connection.html#netmiko.base_connection.BaseConnection.commit">commit</a></code></li>
<li><code><a title="netmiko.cisco_base_connection.CiscoSSHConnection.config_mode" href="../cisco_base_connection.html#netmiko.cisco_base_connection.CiscoBaseConnection.config_mode">config_mode</a></code></li>
<li><code><a title="netmiko.cisco_base_connection.CiscoSSHConnection.disable_paging" href="../base_connection.html#netmiko.base_connection.BaseConnection.disable_paging">disable_paging</a></code></li>
<li><code><a title="netmiko.cisco_base_connection.CiscoSSHConnection.disconnect" href="../base_connection.html#netmiko.base_connection.BaseConnection.disconnect">disconnect</a></code></li>
<li><code><a title="netmiko.cisco_base_connection.CiscoSSHConnection.enable" href="../cisco_base_connection.html#netmiko.cisco_base_connection.CiscoBaseConnection.enable">enable</a></code></li>
Expand Down Expand Up @@ -347,6 +378,7 @@ <h1>Index</h1>
<h4><code><a title="netmiko.aruba.aruba_ssh.ArubaSSH" href="#netmiko.aruba.aruba_ssh.ArubaSSH">ArubaSSH</a></code></h4>
<ul class="">
<li><code><a title="netmiko.aruba.aruba_ssh.ArubaSSH.check_config_mode" href="#netmiko.aruba.aruba_ssh.ArubaSSH.check_config_mode">check_config_mode</a></code></li>
<li><code><a title="netmiko.aruba.aruba_ssh.ArubaSSH.config_mode" href="#netmiko.aruba.aruba_ssh.ArubaSSH.config_mode">config_mode</a></code></li>
<li><code><a title="netmiko.aruba.aruba_ssh.ArubaSSH.session_preparation" href="#netmiko.aruba.aruba_ssh.ArubaSSH.session_preparation">session_preparation</a></code></li>
</ul>
</li>
Expand Down
27 changes: 25 additions & 2 deletions docs/netmiko/aruba/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ <h2 class="section-title" id="header-classes">Classes</h2>
def __init__(self, **kwargs):
if kwargs.get(&#34;default_enter&#34;) is None:
kwargs[&#34;default_enter&#34;] = &#34;\r&#34;
# Aruba has an auto-complete on space behavior that is problematic
if kwargs.get(&#34;global_cmd_verify&#34;) is None:
kwargs[&#34;global_cmd_verify&#34;] = False
return super().__init__(**kwargs)

def session_preparation(self):
Expand All @@ -205,7 +208,13 @@ <h2 class="section-title" id="header-classes">Classes</h2>
&#34;&#34;&#34;
if not pattern:
pattern = re.escape(self.base_prompt[:16])
return super().check_config_mode(check_string=check_string, pattern=pattern)</code></pre>
return super().check_config_mode(check_string=check_string, pattern=pattern)

def config_mode(self, config_command=&#34;configure term&#34;, pattern=&#34;&#34;):
&#34;&#34;&#34;
Aruba auto completes on space so &#39;configure&#39; needs fully spelled-out.
&#34;&#34;&#34;
return super().config_mode(config_command=config_command, pattern=pattern)</code></pre>
</details>
<h3>Ancestors</h3>
<ul class="hlist">
Expand Down Expand Up @@ -234,6 +243,20 @@ <h3>Methods</h3>
return super().check_config_mode(check_string=check_string, pattern=pattern)</code></pre>
</details>
</dd>
<dt id="netmiko.aruba.ArubaSSH.config_mode"><code class="name flex">
<span>def <span class="ident">config_mode</span></span>(<span>self, config_command='configure term', pattern='')</span>
</code></dt>
<dd>
<section class="desc"><p>Aruba auto completes on space so 'configure' needs fully spelled-out.</p></section>
<details class="source">
<summary>Source code</summary>
<pre><code class="python">def config_mode(self, config_command=&#34;configure term&#34;, pattern=&#34;&#34;):
&#34;&#34;&#34;
Aruba auto completes on space so &#39;configure&#39; needs fully spelled-out.
&#34;&#34;&#34;
return super().config_mode(config_command=config_command, pattern=pattern)</code></pre>
</details>
</dd>
<dt id="netmiko.aruba.ArubaSSH.session_preparation"><code class="name flex">
<span>def <span class="ident">session_preparation</span></span>(<span>self)</span>
</code></dt>
Expand Down Expand Up @@ -264,7 +287,6 @@ <h3>Inherited members</h3>
<li><code><a title="netmiko.cisco_base_connection.CiscoSSHConnection.clear_buffer" href="../base_connection.html#netmiko.base_connection.BaseConnection.clear_buffer">clear_buffer</a></code></li>
<li><code><a title="netmiko.cisco_base_connection.CiscoSSHConnection.close_session_log" href="../base_connection.html#netmiko.base_connection.BaseConnection.close_session_log">close_session_log</a></code></li>
<li><code><a title="netmiko.cisco_base_connection.CiscoSSHConnection.commit" href="../base_connection.html#netmiko.base_connection.BaseConnection.commit">commit</a></code></li>
<li><code><a title="netmiko.cisco_base_connection.CiscoSSHConnection.config_mode" href="../cisco_base_connection.html#netmiko.cisco_base_connection.CiscoBaseConnection.config_mode">config_mode</a></code></li>
<li><code><a title="netmiko.cisco_base_connection.CiscoSSHConnection.disable_paging" href="../base_connection.html#netmiko.base_connection.BaseConnection.disable_paging">disable_paging</a></code></li>
<li><code><a title="netmiko.cisco_base_connection.CiscoSSHConnection.disconnect" href="../base_connection.html#netmiko.base_connection.BaseConnection.disconnect">disconnect</a></code></li>
<li><code><a title="netmiko.cisco_base_connection.CiscoSSHConnection.enable" href="../cisco_base_connection.html#netmiko.cisco_base_connection.CiscoBaseConnection.enable">enable</a></code></li>
Expand Down Expand Up @@ -326,6 +348,7 @@ <h1>Index</h1>
<h4><code><a title="netmiko.aruba.ArubaSSH" href="#netmiko.aruba.ArubaSSH">ArubaSSH</a></code></h4>
<ul class="">
<li><code><a title="netmiko.aruba.ArubaSSH.check_config_mode" href="#netmiko.aruba.ArubaSSH.check_config_mode">check_config_mode</a></code></li>
<li><code><a title="netmiko.aruba.ArubaSSH.config_mode" href="#netmiko.aruba.ArubaSSH.config_mode">config_mode</a></code></li>
<li><code><a title="netmiko.aruba.ArubaSSH.session_preparation" href="#netmiko.aruba.ArubaSSH.session_preparation">session_preparation</a></code></li>
</ul>
</li>
Expand Down
Loading

0 comments on commit 944953c

Please sign in to comment.