diff --git a/README-ZH.md b/README-ZH.md index d9fb75b..680f335 100644 --- a/README-ZH.md +++ b/README-ZH.md @@ -26,13 +26,13 @@ NAPALM华为S系列园区网交换机驱动,支持S5700,S6700等. 使用PIP来安装napalm-huawei-vrp -`pip install napalm napalm-huawei-vrp` +`pip install napalm-huawei-vrp` ## 快速开始 ```python from napalm import get_network_driver -driver = get_network_driver('huawei-vrp') +driver = get_network_driver('huawei_vrp') device = driver(hostname='192.168.76.10', username='admin', password='this_is_not_a_secure_password') device.open() diff --git a/README.md b/README.md index 1aef8fb..67ef1e5 100644 --- a/README.md +++ b/README.md @@ -26,13 +26,13 @@ The driver is functional and can be used to poll status information: Install napalm and install napalm-huawei-vrp via pip: -`pip install napalm napalm-huawei-vrp` +`pip install napalm-huawei-vrp` ## Quick start ```python from napalm import get_network_driver -driver = get_network_driver('huawei-vrp') +driver = get_network_driver('huawei_vrp') device = driver(hostname='192.168.76.10', username='admin', password='this_is_not_a_secure_password') device.open() diff --git a/napalm_huawei_vrp/__init__.py b/napalm_huawei_vrp/__init__.py index 6f47e5b..638d693 100644 --- a/napalm_huawei_vrp/__init__.py +++ b/napalm_huawei_vrp/__init__.py @@ -13,6 +13,6 @@ # the License. """napalm-skeleton package.""" -from napalm_huawei_vrp.vrp import VRPDriver # noqa +from napalm_huawei_vrp.huawei_vrp import VRPDriver __all__ = ('VRPDriver',) diff --git a/napalm_huawei_vrp/huawei_vrp.py b/napalm_huawei_vrp/huawei_vrp.py index 5c7baef..35deeb0 100644 --- a/napalm_huawei_vrp/huawei_vrp.py +++ b/napalm_huawei_vrp/huawei_vrp.py @@ -100,7 +100,7 @@ def __init__(self, hostname, username, password, timeout=60, optional_args=None) self.replace = False self.merge_candidate = '' self.replace_file = '' - self.profile = ["vrp"] + self.profile = ["huawei_vrp"] # netmiko args self.netmiko_optional_args = netmiko_args(optional_args) diff --git a/setup.py b/setup.py index dd3edd3..bffb9a0 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setup( name="napalm-huawei-vrp", - version="0.1.2", + version="0.1.3", packages=find_packages(), author="Locus Li", author_email="locus@byto.top",