Skip to content

Commit

Permalink
Rename! (#2)
Browse files Browse the repository at this point in the history
* minor doc cleanup, rename result->response, update docs

* remove textfsm from send commands, update tests, fix some docstrings

* docstring cleanup

* remove flush, fix stripping away too many line breaks, re-support 3.6 :)

* add 3.6 back to actions, remove unused import

* rename nssh -> scrapli!

* draft telnet support, rename "driver"->"transport"

* regen docs
  • Loading branch information
carlmontanari authored Feb 10, 2020
1 parent 53108bc commit 34b5749
Show file tree
Hide file tree
Showing 107 changed files with 6,725 additions and 5,498 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
max-parallel: 6
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.7, 3.8]
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v1
- name: set up python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/weekly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
max-parallel: 6
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.7, 3.8]
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v1
- name: set up python ${{ matrix.python-version }}
Expand Down
22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@ lint:
python -m black .
python -m pylama .
python -m pydocstyle .
python -m mypy --strict nssh/
find nssh -type f \( -iname "*.py" ! -iname "ptyprocess.py" \) | xargs darglint
python -m mypy --strict scrapli/
find scrapli -type f \( -iname "*.py" ! -iname "ptyprocess.py" \) | xargs darglint -x

cov:
python -m pytest \
--cov=nssh \
--cov=scrapli \
--cov-report html \
--cov-report term \
tests/

cov_unit:
python -m pytest \
--cov=nssh \
--cov=scrapli \
--cov-report html \
--cov-report term \
tests/unit/

cov_functional:
python -m pytest \
--cov=nssh \
--cov=scrapli \
--cov-report html \
--cov-report term \
tests/functional/
Expand All @@ -42,34 +42,34 @@ test_functional:
test_iosxe:
python -m pytest -v \
tests/unit \
tests/functional/cisco_iosxe
tests/functional/driver/core/cisco_iosxe

test_nxos:
python -m pytest -v \
tests/unit \
tests/functional/cisco_nxos
tests/functional/driver/core/cisco_nxos

test_iosxr:
python -m pytest -v \
tests/unit \
tests/functional/cisco_iosxr
tests/functional/driver/core/cisco_iosxr

test_eos:
python -m pytest -v \
tests/unit \
tests/functional/arista_eos
tests/functional/driver/core/arista_eos

test_junos:
python -m pytest -v \
tests/unit \
tests/functional/juniper_junos
tests/functional/driver/core/juniper_junos

.PHONY: docs
docs:
python -m pdoc \
--html \
--output-dir docs \
nssh \
scrapli \
--force

start_dev_env:
Expand Down
202 changes: 117 additions & 85 deletions README.md

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,39 @@ services:
iosxe:
hostname: cisco_iosxe
privileged: true
image: nsshciscoiosxe
image: scrapliciscoiosxe
networks:
net1:
ipv4_address: 172.18.0.11

nxos:
hostname: cisco_nxos
privileged: true
image: nsshcisconxos
image: scraplicisconxos
networks:
net1:
ipv4_address: 172.18.0.12

iosxr:
hostname: cisco_iosxr
privileged: true
image: nsshciscoiosxr
image: scrapliciscoiosxr
networks:
net1:
ipv4_address: 172.18.0.13

eos:
hostname: arista_eos
privileged: true
image: nssharistaeos
image: scrapliaristaeos
networks:
net1:
ipv4_address: 172.18.0.14

junos:
hostname: juniper_junos
privileged: true
image: nsshjuniperjunos
image: scraplijuniperjunos
networks:
net1:
ipv4_address: 172.18.0.15
Expand Down
Loading

0 comments on commit 34b5749

Please sign in to comment.