Skip to content

Commit

Permalink
0.6.8
Browse files Browse the repository at this point in the history
  • Loading branch information
akarneliuk committed Jan 25, 2022
1 parent dae949f commit 80af66e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pygnmi/__init__.py
pygnmi/arg_parser.py
pygnmi/client.py
pygnmi/path_generator.py
pygnmi/tools.py
pygnmi/artefacts/messages.py
pygnmi/spec/gnmi_ext_pb2.py
pygnmi/spec/gnmi_ext_pb2_grpc.py
Expand Down
8 changes: 6 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ Contributors
Dev Log
=======

Release **0.6.8**:

- Minor bug-fixing.

Release **0.6.7**:

- Added new ``show_diff`` key to ``gNMIclient`` object (supported values ``print`` and ``get``). When applied, it shows the changes happened to all keys following XPath from all arguments to ``Set()`` RPC at the network devices. It is so fair tailored to OpenConfig YANG modules as it uses some architectural principles of OpenConfig YANG module to re-construct XPath.
Expand Down Expand Up @@ -320,9 +324,9 @@ Release **0.1.0**:

- The first release.

(c)2020-2021, karneliuk.com
(c)2020-2022, karneliuk.com

.. |version| image:: https://img.shields.io/static/v1?label=latest&message=v0.6.7&color=success
.. |version| image:: https://img.shields.io/static/v1?label=latest&message=v0.6.8&color=success
.. _version: https://pypi.org/project/pygnmi/
.. |tag| image:: https://img.shields.io/static/v1?label=status&message=stable&color=success
.. _tag: https://pypi.org/project/pygnmi/
Expand Down
2 changes: 1 addition & 1 deletion pygnmi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#(c)2019-2021, karneliuk.com

__version__ = "0.6.7"
__version__ = "0.6.8"
4 changes: 3 additions & 1 deletion pygnmi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ def __init__(self, target: tuple, username: str = None, password: str = None,
else:
self.__target = target

if 'interval_ms' in kwargs:
if 'keepalive_time_ms' in kwargs:
self.configureKeepalive(**kwargs)


def configureKeepalive(self, keepalive_time_ms: int, keepalive_timeout_ms: int = 20000,
max_pings_without_data: int = 0,
keepalive_permit_without_calls: bool = True):
Expand All @@ -85,6 +86,7 @@ def configureKeepalive(self, keepalive_time_ms: int, keepalive_timeout_ms: int =
("grpc.http2.max_pings_without_data", max_pings_without_data),
]


def __enter__(self):
"""
Building the connectivity towards network element over gNMI (used in the with ... as ... context manager)
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
from distutils.core import setup

with open('README.rst') as fh:
with open('README.rst', encoding="utf-8") as fh:
long_description = fh.read()

setup(
name = 'pygnmi',
packages = ['pygnmi', 'pygnmi.spec', 'pygnmi.artefacts', 'pygnmi'],
version = '0.6.7',
version = '0.6.8',
license='bsd-3-clause',
description = 'This repository contains pure Python implementation of the gNMI client to interact with the network functions.',
long_description = long_description,
long_description_content_type = 'text/x-rst',
author = 'Anton Karneliuk',
author_email = '[email protected]',
url = 'https://github.com/akarneliuk/pygnmi',
download_url = 'https://github.com/akarneliuk/pygnmi/archive/v0.6.7.tar.gz',
download_url = 'https://github.com/akarneliuk/pygnmi/archive/v0.6.8.tar.gz',
keywords = ['gnmi', 'automation', 'grpc', 'network'],
install_requires=[
'grpcio',
Expand Down

0 comments on commit 80af66e

Please sign in to comment.