Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.8.14 #152

Merged
merged 3 commits into from
Mar 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ Contributors
Dev Log
=======

Release **0.8.14**:
- Number of minor bug fixes and improvements.
- Adding support of `prefix` to `pygnmicli`.
- `Adding error propagation from child thread to main thread <https://github.com/akarneliuk/pygnmi/pull/142>`
- `Changes to u_val <https://github.com/akarneliuk/pygnmi/pull/144>`
- `Adding Master Arbitration support for Set <https://github.com/akarneliuk/pygnmi/pull/146>`
- `Adding bytes_val and leaflist_val with string_val parsing <https://github.com/akarneliuk/pygnmi/pull/151>`

Release **0.8.13**:
- Number of minor bug fixes and improvements.

Expand Down Expand Up @@ -430,7 +438,7 @@ Release **0.1.0**:

(c)2020-2022, karneliuk.com

.. |version| image:: https://img.shields.io/static/v1?label=latest&message=v0.8.13&color=success
.. |version| image:: https://img.shields.io/static/v1?label=latest&message=v0.8.14&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
3 changes: 2 additions & 1 deletion pygnmi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
pyGNMI module to manage network devices with gNMI
(c)2020-2023, Karneliuk
"""
__version__ = "0.8.12"

__version__ = "0.8.14"
8 changes: 7 additions & 1 deletion pygnmi/arg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Module to process arguments used in pygnmi cli
"""


# Modules
import argparse
import re
Expand Down Expand Up @@ -122,6 +121,13 @@ def parse_args(msg):
nargs="+",
help="gNMI paths of interest in XPath format, space separated",
)
parser.add_argument(
"--gnmi-prefix",
type=str,
required=False,
default="",
help="gNMI prefix, which is shared across multiple paths of interest in XPath forma.",
)
parser.add_argument(
"--gnmi-path-target",
type=str,
Expand Down
28 changes: 14 additions & 14 deletions pygnmi/artefacts/messages.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#(c)2020, Anton Karneliuk
# (c)2020, Anton Karneliuk

msg = {
'unknown_arg': 'There is no such argument. Run \'--help\' for details.',
'help': 'The following keys are availble:\n\n -u (--user): Provide the username to connect to the network element\n -p (--pass): Provide the password to connect to the network element\n -h (--help): Provide the help on the available keys\n -t (--target): Provide the list of endpoint in \'host:port\' format\n -o (--operation): Prvoide the type of gNMI request\n -c (--cert): Provide the path towards the certificate\n --insecure: Define whether gRPC channel is encrypted or not\n --gnmi-path: Provide path to the resource at the network function\n --print: Define whether Protobuf messages shall be printed in the STDOUT',
'bad_host': 'The host address is malformed. It shall be provided in a format \'ip_address:grpc_port\'.',
'not_defined_user': 'The username is not defined. The execution is terminated.',
'not_defined_pass': 'The password is not defined.',
'not_defined_target': 'There are no hosts provided. The execution is terminated.',
'not_enough_arg': 'There are not enough arguments.',
'wrong_data': 'The argument is provided in the wrong type (e.g. string instead of integer).',
'not_allowed_op': 'The request gNMI operation type is now allowed.',
'not_defined_op': 'The gNMI operation type is not defined.',
'not_defined_path': 'The gNMI path is ot defined with Get or Set operation.',
'not_defined_set': 'The gNMI path (for delete operation) or update messages (for update or replace operation) are not defined.'
}
"unknown_arg": "There is no such argument. Run '--help' for details.",
"help": "The following keys are availble:\n\n -u (--user): Provide the username to connect to the network element\n -p (--pass): Provide the password to connect to the network element\n -h (--help): Provide the help on the available keys\n -t (--target): Provide the list of endpoint in 'host:port' format\n -o (--operation): Prvoide the type of gNMI request\n -c (--cert): Provide the path towards the certificate\n --insecure: Define whether gRPC channel is encrypted or not\n --gnmi-path: Provide path to the resource at the network function\n --print: Define whether Protobuf messages shall be printed in the STDOUT",
"bad_host": "The host address is malformed. It shall be provided in a format 'ip_address:grpc_port'.",
"not_defined_user": "The username is not defined. The execution is terminated.",
"not_defined_pass": "The password is not defined.",
"not_defined_target": "There are no hosts provided. The execution is terminated.",
"not_enough_arg": "There are not enough arguments.",
"wrong_data": "The argument is provided in the wrong type (e.g. string instead of integer).",
"not_allowed_op": "The request gNMI operation type is now allowed.",
"not_defined_op": "The gNMI operation type is not defined.",
"not_defined_path": "The gNMI path is ot defined with Get or Set operation.",
"not_defined_set": "The gNMI path (for delete operation) or update messages (for update or replace operation) are not defined.",
}
Loading
Loading