Skip to content

Commit

Permalink
0.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
akarneliuk committed Mar 20, 2021
1 parent c79ae2d commit 915082c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
6 changes: 5 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ By using the pyGNMI tool you agree with `the license <LICENSE.txt>`_.
Dev Log
=======

Release **0.4.5**:

- Minor bug fix.

Release **0.4.4**:

- Minor bug fix.
Expand Down Expand Up @@ -221,7 +225,7 @@ Release **0.1.0**:

(c)2020-2021, karneliuk.com

.. |version| image:: https://img.shields.io/static/v1?label=latest&message=v0.4.3&color=success
.. |version| image:: https://img.shields.io/static/v1?label=latest&message=v0.4.4&color=success
.. _version: https://pypi.org/project/pygnmi/
.. |tag| image:: https://img.shields.io/static/v1?label=status&message=in%20development&color=yellow
.. _tag: https://pypi.org/project/pygnmi/
Expand Down
Binary file added dist/pygnmi-0.4.4.tar.gz
Binary file not shown.
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.4.4'
__version__ = '0.4.5'
5 changes: 3 additions & 2 deletions pygnmi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def __init__(self, target: tuple, username: str = None, password: str = None,
self.__insecure = insecure
self.__path_cert = path_cert
self.__options=[('grpc.ssl_target_name_override', override)] if override else None
self.__gnmi_timeout = gnmi_timeout

if re.match('.*:.*', target[0]):
self.__target = (f'[{target[0]}]', target[1])
Expand All @@ -47,7 +48,7 @@ def __enter__(self):

if self.__insecure:
self.__channel = grpc.insecure_channel(f'{self.__target[0]}:{self.__target[1]}', self.__metadata)
grpc.channel_ready_future(self.__channel).result(timeout=gnmi_timeout)
grpc.channel_ready_future(self.__channel).result(timeout=self.__gnmi_timeout)
self.__stub = gNMIStub(self.__channel)

else:
Expand All @@ -62,7 +63,7 @@ def __enter__(self):

self.__channel = grpc.secure_channel(f'{self.__target[0]}:{self.__target[1]}',
credentials=cert, options=self.__options)
grpc.channel_ready_future(self.__channel).result(timeout=gnmi_timeout)
grpc.channel_ready_future(self.__channel).result(timeout=self.__gnmi_timeout)
self.__stub = gNMIStub(self.__channel)

return self
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
setup(
name = 'pygnmi',
packages = ['pygnmi', 'pygnmi.spec', 'pygnmi.artefacts'],
version = '0.4.4',
version = '0.4.5',
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.4.4.tar.gz',
download_url = 'https://github.com/akarneliuk/pygnmi/archive/v0.4.5.tar.gz',
keywords = ['gnmi', 'automation', 'grpc', 'network'],
install_requires=[
'grpcio',
Expand Down

0 comments on commit 915082c

Please sign in to comment.