Skip to content

Commit 8469dbe

Browse files
committed
updates for 2.2 release
1 parent ed00b66 commit 8469dbe

File tree

7 files changed

+75
-12
lines changed

7 files changed

+75
-12
lines changed

CHANGELOG.md

+39-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1+
* 2.2 - 2020-03-05
2+
3+
```
4+
pr:557 - added new options for customizing error messages
5+
thanks to @gribok
6+
pr:556 - extended parsing of deviation in hello
7+
thanks to Remington Campbell
8+
pr:549 - align the --bbf option with the options that BBF uses
9+
thanks to William Lupton
10+
pr:437 - added "edit" transform
11+
thanks to William Lupton
12+
13+
#572 - check that action/notification don't have keyless ancestor
14+
thanks to Fred Gan
15+
#564 - check that min-elements isn't larger than max-elements
16+
thanks to Fred Gan
17+
#563 - avoid crash i tree plugin when an augment path is invalid
18+
#552 - correct prefix validation in default values
19+
#547 - keep end-of-line comments in -f yang
20+
thanks to Fred Gan
21+
#543 - properly handle tab characters as 8 spaces
22+
thanks to Fred Gan
23+
#542 - handle spaces in PATH
24+
thanks to Rui Pires
25+
#538 - handle position values greater than 4294967295
26+
thanks to Fred Gan
27+
#537 - feature searched for in wrong module
28+
#536 - better handling of prefixes in xpath strings
29+
#501 - jtox plugin fails on yang 1.1 unprefixed paths in a leafref
30+
thanks to Fred Gan
31+
#475 - honor ABNF grammar for deviate delete substatements
32+
thanks to Fred Gan
33+
34+
code cleanup
35+
thanks to Miroslav Los
36+
37+
```
38+
139
* 2.1.1 - 2020-01-03
240

341
```
@@ -608,4 +646,4 @@
608646

609647
```
610648
Initial version, draft-bjorklund-netconf-yang-00 compliant.
611-
```
649+
```

CONTRIBUTORS

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Remington Campbell
44
Joe Clark
55
John Dickinson
66
Mark Farrell
7+
Fred Gan
78
Joe Gladston
89
Pravin Gohite
910
Yan Gorelik
@@ -14,11 +15,13 @@ Mahesh Jethanandani
1415
Denys Knertser
1516
Mallikarjunarao Kosuri
1617
Miroslav Kovac
18+
Miroslav Los
1719
Ladislav Lhotka
1820
William Lupton
1921
Glenn Matthews
2022
Paul Merlo
2123
Ganesh Nalawade
24+
Rui Pires
2225
Reshad Rahman
2326
Erik Rask
2427
Ralph Schmieder
@@ -31,4 +34,5 @@ Nick Weeds
3134
Jonathan Yang
3235
Quentin Young
3336
Huaian Zhou
37+
@gribok
3438
@lemikev

RELEASE-INFO

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# we use semver 2.0.0
22

33
# update CHANGELOG.md w/ new release number and date
4+
# ensure CONTRIBUTORS is updated
45
# update pyang/__init__.py w/ new release number and date
56

67
# build doc (the nroff man pages are checked in)

man/man1/json2xml.1

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
.\" Title: json2xml
33
.\" Author: Ladislav Lhotka <[email protected]>
44
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5-
.\" Date: 2020-01-03
5+
.\" Date: 2020-03-05
66
.\" Manual: pyang manual
7-
.\" Source: json2xml-2.1.1
7+
.\" Source: json2xml-2.2
88
.\" Language: English
99
.\"
10-
.TH "JSON2XML" "1" "2020\-01\-03" "json2xml\-2\&.1\&.1" "pyang manual"
10+
.TH "JSON2XML" "1" "2020\-03\-05" "json2xml\-2\&.2" "pyang manual"
1111
.\" -----------------------------------------------------------------
1212
.\" * Define some portability stuff
1313
.\" -----------------------------------------------------------------

man/man1/pyang.1

+23-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
.\" Title: pyang
33
.\" Author: Martin Björklund <[email protected]>
44
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5-
.\" Date: 2020-01-03
5+
.\" Date: 2020-03-05
66
.\" Manual: pyang manual
7-
.\" Source: pyang-2.1.1
7+
.\" Source: pyang-2.2
88
.\" Language: English
99
.\"
10-
.TH "PYANG" "1" "2020\-01\-03" "pyang\-2\&.1\&.1" "pyang manual"
10+
.TH "PYANG" "1" "2020\-03\-05" "pyang\-2\&.2" "pyang manual"
1111
.\" -----------------------------------------------------------------
1212
.\" * Define some portability stuff
1313
.\" -----------------------------------------------------------------
@@ -174,6 +174,26 @@ $ pyang \-\-ignore\-error PATTERN_ERROR
174174
.\}
175175
.RE
176176
.PP
177+
\fB\-\-msg\-template\fR \fImsg\-template\fR
178+
.RS 4
179+
Print out error message in defined
180+
\fImsg\-template\fR\&.
181+
.sp
182+
Template used to display error messages\&. This is a python new\-style format string used to format the message information with keys file, line, code, type, and msg\&.
183+
.sp
184+
The following example create a msg template in defined pattern:
185+
.sp
186+
.if n \{\
187+
.RS 4
188+
.\}
189+
.nf
190+
$ pyang \-\-msg\-template=\*(Aq{file} || {line} || {type} || {level} || {code} || {msg}\*(Aq
191+
.fi
192+
.if n \{\
193+
.RE
194+
.\}
195+
.RE
196+
.PP
177197
\fB\-\-ignore\-errors\fR
178198
.RS 4
179199
Ignore all errors\&. Use with care\&. Plugins that don\*(Aqt expect to be invoked if there are errors present may crash\&.

man/man1/yang2dsdl.1

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
.\" Title: yang2dsdl
33
.\" Author: Ladislav Lhotka <[email protected]>
44
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5-
.\" Date: 2020-01-03
5+
.\" Date: 2020-03-05
66
.\" Manual: pyang manual
7-
.\" Source: yang2dsdl-2.1.1
7+
.\" Source: yang2dsdl-2.2
88
.\" Language: English
99
.\"
10-
.TH "YANG2DSDL" "1" "2020\-01\-03" "yang2dsdl\-2\&.1\&.1" "pyang manual"
10+
.TH "YANG2DSDL" "1" "2020\-03\-05" "yang2dsdl\-2\&.2" "pyang manual"
1111
.\" -----------------------------------------------------------------
1212
.\" * Define some portability stuff
1313
.\" -----------------------------------------------------------------

pyang/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
from . import statements
1616
from . import syntax
1717

18-
__version__ = '2.1.1'
19-
__date__ = '2020-01-03'
18+
__version__ = '2.2'
19+
__date__ = '2020-03-05'
2020

2121
class Context(object):
2222
"""Class which encapsulates a parse session"""

0 commit comments

Comments
 (0)