Skip to content

Commit

Permalink
0.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
akarneliuk committed Apr 27, 2021
1 parent 6c56d47 commit 1bdf411
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 10 deletions.
1 change: 1 addition & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# file GENERATED by distutils, do NOT edit
README.rst
setup.py
pygnmi/__init__.py
pygnmi/arg_parser.py
Expand Down
8 changes: 6 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ Dev Log

Release **0.4.6**:

- Fixed `gNMI Path issue <https://github.com/akarneliuk/pygnmi/issues/13>`_.

Release **0.4.6**:

- Replaced the ``sys.exit`` with raising exceptions.
- Minor bug fix.
- Brought the gNMI path to the canonical format: ``/origin:element1/element2...``.
Expand Down Expand Up @@ -232,9 +236,9 @@ Release **0.1.0**:

(c)2020-2021, karneliuk.com

.. |version| image:: https://img.shields.io/static/v1?label=latest&message=v0.4.6&color=success
.. |version| image:: https://img.shields.io/static/v1?label=latest&message=v0.4.7&color=success
.. _version: https://pypi.org/project/pygnmi/
.. |tag| image:: https://img.shields.io/static/v1?label=status&message=in%20development&color=yellow
.. |tag| image:: https://img.shields.io/static/v1?label=status&message=stable&color=success
.. _tag: https://pypi.org/project/pygnmi/
.. |license| image:: https://img.shields.io/static/v1?label=license&message=BSD-3-clause&color=success
.. _license: https://github.com/akarneliuk/pygnmi/blob/master/LICENSE.txt
Expand Down
Binary file added dist/pygnmi-0.4.6.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.6'
__version__ = '0.4.7'
9 changes: 6 additions & 3 deletions pygnmi/path_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ def gnmi_path_generator(path_in_question: list):
path_elements = list(filter(None, path_elements))

for pe_entry in path_elements:
if re.match('.+?:.+?', pe_entry):
gnmi_path.origin = pe_entry.split(':')[0]
gnmi_path.elem.add(name=pe_entry.split(':')[1])
if re.match('.+?:.*?', pe_entry):
parts = pe_entry.split(':')
gnmi_path.origin = parts[0]

if len(parts) > 1 and parts[1]:
gnmi_path.elem.add(name=parts[1])

elif re.match('.+?\[\d+?\]', pe_entry):
element_keys = {}
Expand Down
4 changes: 2 additions & 2 deletions pygnmicli.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@
print(telemetryParser(ent))


if result:
print(result)
# if result:
# print(result)

# except:
# logging.critical(f'The connectivity towards {DD.targets} cannot be established. The execution is terminated.')
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.6',
version = '0.4.7',
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.6.tar.gz',
download_url = 'https://github.com/akarneliuk/pygnmi/archive/v0.4.7.tar.gz',
keywords = ['gnmi', 'automation', 'grpc', 'network'],
install_requires=[
'grpcio',
Expand Down

0 comments on commit 1bdf411

Please sign in to comment.