Skip to content

Commit

Permalink
0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
akarneliuk committed May 18, 2021
1 parent d51ff1a commit 12c2d17
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 13 deletions.
13 changes: 12 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,21 @@ License
=======
By using the pyGNMI tool you agree with `the license <LICENSE.txt>`_.

============
Contributors
============

- `Anton Karneliuk <https://github.com/akarneliuk>`_
- `Stefan Lieberth <https://github.com/slieberth>`_

=======
Dev Log
=======

Release **0.5.0**:

- Added possibility to extract certificate from the destination network function.

Release **0.4.8**:

- Added documentation in module regading supported the different paths naming conventions. Supported options: ``yang-module:container/container[key=value]``, ``/yang-module:container/container[key=value]``, ``/yang-module:/container/container[key=value]``, ``/container/container[key=value]``
Expand Down Expand Up @@ -240,7 +251,7 @@ Release **0.1.0**:

(c)2020-2021, karneliuk.com

.. |version| image:: https://img.shields.io/static/v1?label=latest&message=v0.4.8&color=success
.. |version| image:: https://img.shields.io/static/v1?label=latest&message=v0.5.0&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
Binary file added dist/pygnmi-0.4.8.tar.gz
Binary file not shown.
14 changes: 14 additions & 0 deletions examples/pure_python/get_secure_without_cert.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin env python

# Modules
from pygnmi.client import gNMIclient

# Variables
host = ('192.168.56.31',50051)

# Body
if __name__ == '__main__':
with gNMIclient(target=host, username='admin', password='admin1', insecure=False) as gc:
response = gc.capabilities()

print(response)
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.8'
__version__ = '0.5.0'
11 changes: 3 additions & 8 deletions pygnmicli.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@
DD = NFData(sys.argv, msg)

# gNMI operation
# try:
with gNMIclient(DD.targets, username=DD.username, password=DD.password,
debug=DD.to_print, insecure=DD.insecure, path_cert=DD.certificate) as GC:
debug=DD.to_print, insecure=DD.insecure) as GC:
result = None

if DD.operation == 'capabilities':
Expand Down Expand Up @@ -88,11 +87,7 @@
print(telemetryParser(ent))


# if result:
# print(result)

# except:
# logging.critical(f'The connectivity towards {DD.targets} cannot be established. The execution is terminated.')
# sys.exit(1)
if result:
print(result)


7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,21 @@
setup(
name = 'pygnmi',
packages = ['pygnmi', 'pygnmi.spec', 'pygnmi.artefacts'],
version = '0.4.8',
version = '0.5.0',
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.8.tar.gz',
download_url = 'https://github.com/akarneliuk/pygnmi/archive/v0.5.0.tar.gz',
keywords = ['gnmi', 'automation', 'grpc', 'network'],
install_requires=[
'grpcio',
'grpcio-tools',
'kthread'
'kthread',
'cryptography'
],
classifiers=[
'Development Status :: 5 - Production/Stable',
Expand Down

0 comments on commit 12c2d17

Please sign in to comment.