Skip to content

Commit

Permalink
Release 0.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcgill298 committed Dec 18, 2020
1 parent 94438f7 commit 5407cc0
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 5 deletions.
24 changes: 23 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,29 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/)
### Fixed
### Security

## [0.0.14]

## [0.15.0]
### Added
- IOSDevice `os_install` method added support for using install mode
### Changed
- AIREOSDevice `config` method accepts a list of commands
- AIREOSDevice `config` method supports sending kwargs to netmiko
- AIREOSDevice `show` method accepts a list of commands
- AIREOSDevice `show` method supports sending kwargs to netmiko
- AIREOSDevice `file_copy` increased delay_factor default to 10
- IOSDevice `config` method accepts a list of commands
- IOSDevice `config` method supports sending kwargs to netmiko
- All devices `facts` property contents were converted to individual properties
### Deprecated
- AIREOSDevice `show_list` and `config_list` methods
- IOSDevice `config_list` method
- All Platforms `facts` property
- CommandListError class will migrate to just use CommandError
### Fixed
- IOSDevice `file_copy` method now reconnectes to device after transfer is complete to avoid sending commands across a closed SSH channel
- IOSDevice `peer_redundancy_state`, `redundancy_mode`, and `redundancy_state` all strip left spaces for regex match.

## [0.14.0]
### Added
- AIREOSDevice `show` method now supports sending any additional args that Netmiko supports using kwargs.
- AIREOSDevice `is_active` method was added to check if device is the active device.
Expand Down
2 changes: 1 addition & 1 deletion pyntc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
except ImportError:
from ConfigParser import SafeConfigParser

__version__ = "0.0.14"
__version__ = "0.15.0"

LIB_PATH_ENV_VAR = "PYNTC_CONF"
LIB_PATH_DEFAULT = "~/.ntc.conf"
Expand Down
2 changes: 1 addition & 1 deletion pyntc/devices/aireos_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def config(self, command, **netmiko_args):
Example:
>>> device = AIREOSDevice(**connection_args)
>>> device.config("boot primary")
'(host) config>boot primary\n\n(host) config>
'(host) config>boot primary\n\n(host) config>'
>>>
"""
# TODO: Remove this when deprecating config_list method
Expand Down
2 changes: 1 addition & 1 deletion pyntc/devices/ios_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ def peer_redundancy_state(self):
show_redundancy = self.show("show redundancy")
except CommandError:
return None
re_show_redundancy = RE_SHOW_REDUNDANCY.match(show_redundancy)
re_show_redundancy = RE_SHOW_REDUNDANCY.match(show_redundancy.lstrip())
processor_redundancy_info = re_show_redundancy.group("other")
if processor_redundancy_info is not None:
re_redundancy_state = RE_REDUNDANCY_STATE.search(processor_redundancy_info)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"

[tool.poetry]
name = "pyntc"
version = "0.14.0"
version = "0.15.0"
description = "SDK to simplify common workflows for Network Devices."
authors = ["NTC <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 5407cc0

Please sign in to comment.