Skip to content

Commit 31dbfef

Browse files
committed
Merge branch 'develop2'
2 parents 3571631 + 413ed2f commit 31dbfef

File tree

62 files changed

+3375
-487
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+3375
-487
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ docs/_static/
5555

5656
.idea
5757
.DS_Store
58+
.vagrant
59+
.venv
5860

5961
env
6062
*.swp

Diff for: .travis.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ python:
66
- 3.5
77
- 3.6
88

9+
matrix:
10+
include:
11+
- python: 3.6
12+
env: TOXENV=sphinx
13+
914
install:
10-
- pip install tox-travis
11-
- pip install coveralls
15+
- pip install tox==3.0.0 tox-travis coveralls
16+
1217
deploy:
1318
provider: pypi
1419
user: dbarroso

Diff for: Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.PHONY: doctest
2+
doctest:
3+
cd docs && make clean
4+
cd docs && sphinx-build -W -b html -d _build/doctrees . _build/html

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,18 @@ If you have any issues using NAPALM or encounter any errors, before submitting a
8383
- Double check you are able to access the device using the credentials provided.
8484
- Does your device meet the minimum [requirements](http://napalm.readthedocs.io/en/latest/support/index.html#general-support-matrix)?
8585
- Some operating systems have some specific [constraints](http://napalm.readthedocs.io/en/latest/support/index.html#caveats). (e.g. have you enabled the XML agent on IOS-XR, or the NXAPI feature on NXOS?)
86-
- Are you able to connect to the device using NAPALM? Check using the CLI test tool:
86+
- Are you able to connect to the device using NAPALM? Check using napalm CLI to get_facts:
8787

8888
```bash
89-
$ cl_napalm_test --vendor VENDOR --user USERNAME --password PASSWORD --optional_args OPTIONAL_ARGS HOSTNAME
89+
$ napalm --vendor VENDOR --user USERNAME --password PASSWORD --optional_args OPTIONAL_ARGS HOSTNAME call get_facts
9090
```
9191

9292
Where vendor, username, password and hostname are mandatory. [Optional arguments](http://napalm.readthedocs.io/en/latest/support/index.html#optional-arguments) are specified as comma separated values.
9393

9494
Example:
9595

9696
```bash
97-
$ cl_napalm_test --vendor junos --user napalm --password dbejmujz --optional_args 'port=12202, config_lock=False' edge01.bjm01
97+
$ napalm --vendor junos --user napalm --password dbejmujz --optional_args 'port=12202, config_lock=False' edge01.bjm01 call get_facts
9898
```
9999

100100
In case you have any errors, please review the steps above - this looks like a problem with your environment setup.

Diff for: docs/support/ios.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ In vim insert, you can also type <ctrl>+V, release only the V, then type C
113113

114114

115115
File Operation Prompts
116-
_____
116+
______________________
117117

118118
By default IOS will prompt for confirmation on file operations. These prompts need to be disabled before the NAPALM-ios driver performs any such operation on the device.
119119
This can be controlled using the `auto_file_prompt` optional arguement:
@@ -126,7 +126,7 @@ This can be controlled using the `auto_file_prompt` optional arguement:
126126
otherwise a `CommandErrorException` will be raised when file operations are attempted.
127127

128128
SCP File Transfers
129-
_____
129+
__________________
130130

131131
The NAPALM-ios driver requires SCP to be enabled on the managed device. SCP
132132
server functionality is disabled in IOS by default, and is configured using

Diff for: docs/tutorials/lab.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Create a file named ``Vagrantfile`` (no file extension) in your working director
3333
.. literalinclude:: Vagrantfile
3434
:language: ruby
3535

36-
The above content is also available on `GitHub <https://raw.githubusercontent.com/napalm-automation/napalm/master/docs/tutorials/Vagrantfile>`_.
36+
The above content is also available `on GitHub <https://raw.githubusercontent.com/napalm-automation/napalm/master/docs/tutorials/Vagrantfile>`_.
3737

3838
This Vagrantfile creates a base box and a vEOS box when you call ``vagrant up``::
3939

Diff for: napalm/base/__init__.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,7 @@ def get_network_driver(name, prepend=True):
8888
module = importlib.import_module(module_name)
8989
break
9090
except ImportError as e:
91-
try:
92-
# gotta love py23 differences
93-
message = e.message
94-
except AttributeError:
95-
message = e.msg
91+
message = py23_compat.text_type(e)
9692
if "No module named" in message:
9793
# py2 doesn't have ModuleNotFoundError exception
9894
failed_module = message.split()[-1]

0 commit comments

Comments
 (0)