Skip to content

Commit 5407cc0

Browse files
committed
Release 0.15.0
1 parent 94438f7 commit 5407cc0

File tree

5 files changed

+27
-5
lines changed

5 files changed

+27
-5
lines changed

CHANGELOG.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,29 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/)
1212
### Fixed
1313
### Security
1414

15-
## [0.0.14]
15+
16+
## [0.15.0]
17+
### Added
18+
- IOSDevice `os_install` method added support for using install mode
19+
### Changed
20+
- AIREOSDevice `config` method accepts a list of commands
21+
- AIREOSDevice `config` method supports sending kwargs to netmiko
22+
- AIREOSDevice `show` method accepts a list of commands
23+
- AIREOSDevice `show` method supports sending kwargs to netmiko
24+
- AIREOSDevice `file_copy` increased delay_factor default to 10
25+
- IOSDevice `config` method accepts a list of commands
26+
- IOSDevice `config` method supports sending kwargs to netmiko
27+
- All devices `facts` property contents were converted to individual properties
28+
### Deprecated
29+
- AIREOSDevice `show_list` and `config_list` methods
30+
- IOSDevice `config_list` method
31+
- All Platforms `facts` property
32+
- CommandListError class will migrate to just use CommandError
33+
### Fixed
34+
- IOSDevice `file_copy` method now reconnectes to device after transfer is complete to avoid sending commands across a closed SSH channel
35+
- IOSDevice `peer_redundancy_state`, `redundancy_mode`, and `redundancy_state` all strip left spaces for regex match.
36+
37+
## [0.14.0]
1638
### Added
1739
- AIREOSDevice `show` method now supports sending any additional args that Netmiko supports using kwargs.
1840
- AIREOSDevice `is_active` method was added to check if device is the active device.

pyntc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
except ImportError:
1313
from ConfigParser import SafeConfigParser
1414

15-
__version__ = "0.0.14"
15+
__version__ = "0.15.0"
1616

1717
LIB_PATH_ENV_VAR = "PYNTC_CONF"
1818
LIB_PATH_DEFAULT = "~/.ntc.conf"

pyntc/devices/aireos_device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def config(self, command, **netmiko_args):
491491
Example:
492492
>>> device = AIREOSDevice(**connection_args)
493493
>>> device.config("boot primary")
494-
'(host) config>boot primary\n\n(host) config>
494+
'(host) config>boot primary\n\n(host) config>'
495495
>>>
496496
"""
497497
# TODO: Remove this when deprecating config_list method

pyntc/devices/ios_device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ def peer_redundancy_state(self):
684684
show_redundancy = self.show("show redundancy")
685685
except CommandError:
686686
return None
687-
re_show_redundancy = RE_SHOW_REDUNDANCY.match(show_redundancy)
687+
re_show_redundancy = RE_SHOW_REDUNDANCY.match(show_redundancy.lstrip())
688688
processor_redundancy_info = re_show_redundancy.group("other")
689689
if processor_redundancy_info is not None:
690690
re_redundancy_state = RE_REDUNDANCY_STATE.search(processor_redundancy_info)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"
44

55
[tool.poetry]
66
name = "pyntc"
7-
version = "0.14.0"
7+
version = "0.15.0"
88
description = "SDK to simplify common workflows for Network Devices."
99
authors = ["NTC <[email protected]>"]
1010
readme = "README.md"

0 commit comments

Comments
 (0)