Skip to content

Commit 74c99a4

Browse files
authored
Merge pull request #285 from networktocode/develop
Release 1.0.0
2 parents 96531c9 + 08d27b9 commit 74c99a4

37 files changed

+1667
-853
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ jobs:
188188
- name: "Run Tests"
189189
run: "poetry run invoke pytest"
190190
needs:
191-
# Remove everything but pylint once pylint is passing.
192-
# - "pylint"
191+
# Remove everything but pylint once pylint is passing.
192+
# - "pylint"
193193
- "bandit"
194194
- "pydocstyle"
195195
- "flake8"

docs/admin/install.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ poetry install
1818
Option 3: Install from a GitHub branch, such as develop as shown below.
1919

2020
```bash
21-
$ pip install git+https://github.com/networktocode/netutils.git@develop
21+
$ pip install git+https://github.com/networktocode/pyntc.git@develop
2222
```
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# v1.0 Release Notes
2+
3+
## [1.0.0] 04-2023
4+
5+
### Added
6+
7+
- [270](https://github.com/networktocode/pyntc/pull/270) Add additional properties to ASA and AIREOS.
8+
- [271](https://github.com/networktocode/pyntc/pull/271) Add default logging for all devices and overall library.
9+
- [280](https://github.com/networktocode/pyntc/pull/280) Add the `wait_for_reload` argument from `reboot` method throughout library. Defaults to False to keep current code backward compatible, If set to True the reboot method waits for the device to finish the reboot before returning.
10+
11+
### Changed
12+
- [280](https://github.com/networktocode/pyntc/pull/280) Changed from relative imports to absolute imports.
13+
- [282](https://github.com/networktocode/pyntc/pull/282) Update initial pass at pylint.
14+
15+
### Deprecated
16+
17+
- [269](https://github.com/networktocode/pyntc/pull/269) Remove `show_list` and `config_list` methods asa and ios. Add default functionality to `show` and `config` to handle str and list.
18+
- [275](https://github.com/networktocode/pyntc/pull/275) Remove python ABC (abstract base classes) as they were not required.
19+
- [275](https://github.com/networktocode/pyntc/pull/275) Remove `show_list` and `config_list` methods for the rest of device drivers. Add default functionality to `show` and `config` to handle str and list.
20+
- [280](https://github.com/networktocode/pyntc/pull/280) Remove the use of `signal` modules within Cisco drivers. This will allow for reboots to be able to be handled within threads.
21+
- [280](https://github.com/networktocode/pyntc/pull/280) Remove the `timer` argument from `reboot` method throughout library. Compatibility matrix on which versions, vendors support it became to much to maintain.

docs/user/lib_getting_started.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ On an IOS device:
173173

174174
### Sending Multiple Commands
175175

176-
- `show_list` method
176+
- `show` method
177177

178178
```python
179179
>>> cmds = ['show hostname', 'show run int Eth2/1']
180180

181-
>>> data = nxs1.show_list(cmds, raw_text=True)
181+
>>> data = nxs1.show(cmds)
182182
```
183183

184184
```python
@@ -197,15 +197,15 @@ interface Ethernet2/1
197197

198198
### Config Commands
199199

200-
- Use `config` and `config_list`
200+
- Use `config`
201201

202202
```python
203203
>>> csr1.config('hostname testname')
204204
>>>
205205
```
206206

207207
```python
208-
>>> csr1.config_list(['interface Gi3', 'shutdown'])
208+
>>> csr1.config(['interface Gi3', 'shutdown'])
209209
>>>
210210
```
211211

@@ -283,11 +283,11 @@ Backup current running configuration and store it locally
283283
Reboot target device
284284

285285
Parameters:
286-
- `timer=0` by default
287-
- `confirm=False` by default
286+
- `wait_for_reload=False` by default. If `True` function waits for device to recover from reboot before returning.
287+
288288

289289
```python
290-
>>> csr1.reboot(confirm=True)
290+
>>> csr1.reboot(wait_for_reload=False)
291291
>>>
292292
```
293293

mkdocs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ nav:
112112
- v0.18: "admin/release_notes/version_0_18.md"
113113
- v0.19: "admin/release_notes/version_0_19.md"
114114
- v0.20: "admin/release_notes/version_0_20.md"
115+
- v1.0: "admin/release_notes/version_1_0.md"
115116
- Developer Guide:
116117
- Extending the Library: "dev/extending.md"
117118
- Contributing to the Library: "dev/contributing.md"

poetry.lock

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyntc/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Kickoff functions for getting instancs of device objects."""
1+
"""Kickoff functions for getting instance of device objects."""
22

33
import os
44
import warnings

0 commit comments

Comments
 (0)