Skip to content
This repository has been archived by the owner on Sep 17, 2019. It is now read-only.

Commit

Permalink
Merge pull request #37 from ktbyers/develop
Browse files Browse the repository at this point in the history
Fix optional_args port/protocol so works with https
  • Loading branch information
ktbyers committed Oct 11, 2016
2 parents e5d82f9 + 8110cac commit fb70b3f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
3 changes: 3 additions & 0 deletions napalm_nxos/nxos.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import tempfile
from urllib2 import URLError
from datetime import datetime
import ssl

# third party libs
from netaddr import IPAddress
Expand All @@ -36,6 +37,8 @@
from napalm_base.exceptions import ConnectionException, MergeConfigException,\
ReplaceConfigException, CommandErrorException

# Allow untrusted SSL Certificates
ssl._create_default_https_context = ssl._create_unverified_context

def strip_trailing(string):
lines = list(x.rstrip(' ') for x in string.splitlines())
Expand Down
6 changes: 0 additions & 6 deletions pylama.ini

This file was deleted.

7 changes: 7 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pytest
pytest-cov
pytest-json
pytest-pythonpath
pylama
flake8-import-order
-r requirements.txt
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
napalm-base
napalm-base==0.17.0
pycsco
PyYAML # this is a requirement for pycsco but seems to be missing
PyYAML # this is a requirement for pycsco but seems to be missing
netaddr
6 changes: 6 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[pylama]
linters = mccabe,pep8,pyflakes
ignore = D203,C901

[pylama:pep8]
max_line_length = 100

0 comments on commit fb70b3f

Please sign in to comment.