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

include datacom driver #3245

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions PLATFORMS.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
- Cisco Viptela
- Check Point GAiA
- Coriant
- DataCom
- Dell OS6
- Dell EMC Isilon
- Eltex
Expand Down Expand Up @@ -153,6 +154,7 @@
- cisco_xr
- cloudgenix_ion
- coriant
- datacom
- dell_dnos9
- dell_force10
- dell_isilon
Expand Down
1 change: 1 addition & 0 deletions docs/netmiko/base_connection.html
Original file line number Diff line number Diff line change
Expand Up @@ -5099,6 +5099,7 @@ <h3>Subclasses</h3>
<li><a title="netmiko.cisco_base_connection.CiscoBaseConnection" href="cisco_base_connection.html#netmiko.cisco_base_connection.CiscoBaseConnection">CiscoBaseConnection</a></li>
<li><a title="netmiko.citrix.netscaler_ssh.NetscalerSSH" href="citrix/netscaler_ssh.html#netmiko.citrix.netscaler_ssh.NetscalerSSH">NetscalerSSH</a></li>
<li><a title="netmiko.dell.dell_isilon_ssh.DellIsilonSSH" href="dell/dell_isilon_ssh.html#netmiko.dell.dell_isilon_ssh.DellIsilonSSH">DellIsilonSSH</a></li>
<li><a title="netmiko.datacom.datacom.DataComSSH" href="datacom/datacom.html#netmiko.datacom.datacom.DataComSSH">DataComSSH</a></li>
<li><a title="netmiko.ericsson.ericsson_ipos.EricssonIposSSH" href="ericsson/ericsson_ipos.html#netmiko.ericsson.ericsson_ipos.EricssonIposSSH">EricssonIposSSH</a></li>
<li><a title="netmiko.ericsson.ericsson_mltn.EricssonMinilinkBase" href="ericsson/ericsson_mltn.html#netmiko.ericsson.ericsson_mltn.EricssonMinilinkBase">EricssonMinilinkBase</a></li>
<li><a title="netmiko.f5.f5_tmsh_ssh.F5TmshSSH" href="f5/f5_tmsh_ssh.html#netmiko.f5.f5_tmsh_ssh.F5TmshSSH">F5TmshSSH</a></li>
Expand Down
783 changes: 783 additions & 0 deletions docs/netmiko/datacom/datacom.html

Large diffs are not rendered by default.

478 changes: 478 additions & 0 deletions docs/netmiko/datacom/index.html

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions docs/netmiko/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ <h2 class="section-title" id="header-submodules">Sub-modules</h2>
<dd>
<div class="desc"></div>
</dd>
<dt><code class="name"><a title="netmiko.datacom" href="datacom/index.html">netmiko.datacom</a></code></dt>
<dd>
<div class="desc"></div>
</dd>
<dt><code class="name"><a title="netmiko.dlink" href="dlink/index.html">netmiko.dlink</a></code></dt>
<dd>
<div class="desc"></div>
Expand Down Expand Up @@ -3343,6 +3347,7 @@ <h3>Subclasses</h3>
<li><a title="netmiko.cisco_base_connection.CiscoBaseConnection" href="cisco_base_connection.html#netmiko.cisco_base_connection.CiscoBaseConnection">CiscoBaseConnection</a></li>
<li><a title="netmiko.citrix.netscaler_ssh.NetscalerSSH" href="citrix/netscaler_ssh.html#netmiko.citrix.netscaler_ssh.NetscalerSSH">NetscalerSSH</a></li>
<li><a title="netmiko.dell.dell_isilon_ssh.DellIsilonSSH" href="dell/dell_isilon_ssh.html#netmiko.dell.dell_isilon_ssh.DellIsilonSSH">DellIsilonSSH</a></li>
<li><a title="netmiko.datacom.datacom.DataComSSH" href="datacom/datacom.html#netmiko.datacom.datacom.DataComSSH">DataComSSH</a></li>
<li><a title="netmiko.ericsson.ericsson_ipos.EricssonIposSSH" href="ericsson/ericsson_ipos.html#netmiko.ericsson.ericsson_ipos.EricssonIposSSH">EricssonIposSSH</a></li>
<li><a title="netmiko.ericsson.ericsson_mltn.EricssonMinilinkBase" href="ericsson/ericsson_mltn.html#netmiko.ericsson.ericsson_mltn.EricssonMinilinkBase">EricssonMinilinkBase</a></li>
<li><a title="netmiko.f5.f5_tmsh_ssh.F5TmshSSH" href="f5/f5_tmsh_ssh.html#netmiko.f5.f5_tmsh_ssh.F5TmshSSH">F5TmshSSH</a></li>
Expand Down Expand Up @@ -6759,6 +6764,7 @@ <h1>Index</h1>
<li><code><a title="netmiko.cloudgenix" href="cloudgenix/index.html">netmiko.cloudgenix</a></code></li>
<li><code><a title="netmiko.coriant" href="coriant/index.html">netmiko.coriant</a></code></li>
<li><code><a title="netmiko.dell" href="dell/index.html">netmiko.dell</a></code></li>
<li><code><a title="netmiko.datacom" href="datacom/index.html">netmiko.datacom</a></code></li>
<li><code><a title="netmiko.dlink" href="dlink/index.html">netmiko.dlink</a></code></li>
<li><code><a title="netmiko.eltex" href="eltex/index.html">netmiko.eltex</a></code></li>
<li><code><a title="netmiko.endace" href="endace/index.html">netmiko.endace</a></code></li>
Expand Down
4 changes: 4 additions & 0 deletions netmiko/datacom/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from __future__ import unicode_literals
from netmiko.datacom.datacom import DataComSSH, DataComTelnet

__all__ = ["DataComSSH", "DataComTelnet"]
30 changes: 30 additions & 0 deletions netmiko/datacom/datacom.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
from netmiko.cisco_base_connection import CiscoBaseConnection


class DataComBase(CiscoBaseConnection):
def config_mode(
self,
config_command: str = "config terminal",
pattern: str = "",
re_flags: int = 0,
) -> str:
return super().config_mode(
config_command=config_command, pattern=pattern, re_flags=re_flags
)

def save_config(
self, cmd: str = "commit", confirm: bool = False, confirm_response: str = ""
) -> str:
"""Saves Config Using Copy Run Start"""
return super().save_config(
cmd=cmd, confirm=confirm, confirm_response=confirm_response
)

class DataComSSH(DataComBase):
"""DataCom SSH driver."""
pass


class DataComTelnet(DataComBase):
"""DataCom telnet driver."""
pass