Skip to content

Commit 8ffec7b

Browse files
authored
Merge pull request #152 from akarneliuk/0.8.14
0.8.14
2 parents 48f9caa + ed5227f commit 8ffec7b

16 files changed

+3980
-2530
lines changed

README.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ Contributors
8686
Dev Log
8787
=======
8888

89+
Release **0.8.14**:
90+
- Number of minor bug fixes and improvements.
91+
- Adding support of `prefix` to `pygnmicli`.
92+
- `Adding error propagation from child thread to main thread <https://github.com/akarneliuk/pygnmi/pull/142>`
93+
- `Changes to u_val <https://github.com/akarneliuk/pygnmi/pull/144>`
94+
- `Adding Master Arbitration support for Set <https://github.com/akarneliuk/pygnmi/pull/146>`
95+
- `Adding bytes_val and leaflist_val with string_val parsing <https://github.com/akarneliuk/pygnmi/pull/151>`
96+
8997
Release **0.8.13**:
9098
- Number of minor bug fixes and improvements.
9199

@@ -430,7 +438,7 @@ Release **0.1.0**:
430438

431439
(c)2020-2022, karneliuk.com
432440

433-
.. |version| image:: https://img.shields.io/static/v1?label=latest&message=v0.8.13&color=success
441+
.. |version| image:: https://img.shields.io/static/v1?label=latest&message=v0.8.14&color=success
434442
.. _version: https://pypi.org/project/pygnmi/
435443
.. |tag| image:: https://img.shields.io/static/v1?label=status&message=stable&color=success
436444
.. _tag: https://pypi.org/project/pygnmi/

pygnmi/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
pyGNMI module to manage network devices with gNMI
33
(c)2020-2023, Karneliuk
44
"""
5-
__version__ = "0.8.12"
5+
6+
__version__ = "0.8.14"

pygnmi/arg_parser.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Module to process arguments used in pygnmi cli
33
"""
44

5-
65
# Modules
76
import argparse
87
import re
@@ -122,6 +121,13 @@ def parse_args(msg):
122121
nargs="+",
123122
help="gNMI paths of interest in XPath format, space separated",
124123
)
124+
parser.add_argument(
125+
"--gnmi-prefix",
126+
type=str,
127+
required=False,
128+
default="",
129+
help="gNMI prefix, which is shared across multiple paths of interest in XPath forma.",
130+
)
125131
parser.add_argument(
126132
"--gnmi-path-target",
127133
type=str,

pygnmi/artefacts/messages.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
#(c)2020, Anton Karneliuk
1+
# (c)2020, Anton Karneliuk
22

33
msg = {
4-
'unknown_arg': 'There is no such argument. Run \'--help\' for details.',
5-
'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',
6-
'bad_host': 'The host address is malformed. It shall be provided in a format \'ip_address:grpc_port\'.',
7-
'not_defined_user': 'The username is not defined. The execution is terminated.',
8-
'not_defined_pass': 'The password is not defined.',
9-
'not_defined_target': 'There are no hosts provided. The execution is terminated.',
10-
'not_enough_arg': 'There are not enough arguments.',
11-
'wrong_data': 'The argument is provided in the wrong type (e.g. string instead of integer).',
12-
'not_allowed_op': 'The request gNMI operation type is now allowed.',
13-
'not_defined_op': 'The gNMI operation type is not defined.',
14-
'not_defined_path': 'The gNMI path is ot defined with Get or Set operation.',
15-
'not_defined_set': 'The gNMI path (for delete operation) or update messages (for update or replace operation) are not defined.'
16-
}
4+
"unknown_arg": "There is no such argument. Run '--help' for details.",
5+
"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",
6+
"bad_host": "The host address is malformed. It shall be provided in a format 'ip_address:grpc_port'.",
7+
"not_defined_user": "The username is not defined. The execution is terminated.",
8+
"not_defined_pass": "The password is not defined.",
9+
"not_defined_target": "There are no hosts provided. The execution is terminated.",
10+
"not_enough_arg": "There are not enough arguments.",
11+
"wrong_data": "The argument is provided in the wrong type (e.g. string instead of integer).",
12+
"not_allowed_op": "The request gNMI operation type is now allowed.",
13+
"not_defined_op": "The gNMI operation type is not defined.",
14+
"not_defined_path": "The gNMI path is ot defined with Get or Set operation.",
15+
"not_defined_set": "The gNMI path (for delete operation) or update messages (for update or replace operation) are not defined.",
16+
}

0 commit comments

Comments
 (0)