Skip to content

Commit

Permalink
Fixed: [Clixon fails to load yang with extension](#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
olofhagsand committed Sep 21, 2024
1 parent a4225c4 commit 3108dfc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Developers may need to change their code

### Corrected Busg

* Fixed: [Clixon fails to load yang with extension](https://github.com/clicon/clixon/issues/554)
* Fixed: Double top-levels in xmldb_get that could occur with xpath containing choice.
* Fixed: [RESTCONF exit on cert error + complex accept](https://github.com/clicon/clixon/issues/551)
* Fixed: [Deletion of leaf in YANG choice removes leaf in a different choice/case](https://github.com/clicon/clixon/issues/542)
Expand Down
1 change: 1 addition & 0 deletions lib/src/clixon_yang_parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ argument_substmts : argument_substmts argument_substmt

argument_substmt : yin_element_stmt1 { _PARSE_DEBUG("argument-substmt -> yin-element-stmt1");}
| unknown_stmt { _PARSE_DEBUG("argument-substmt -> unknown-stmt");}
|
;


Expand Down
4 changes: 3 additions & 1 deletion test/test_yang_extension.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,12 @@ module $APPNAME{
ex:e4 arg1{
uses bar;
}
extension posix-pattern {
argument "pattern";
}
extension extra {
argument "pattern"{} /* See https://github.com/clicon/clixon/issues/554 */
}
typedef dotted-quad {
description "Only present for complex parsing of unknown-stmt";
type string {
Expand Down

0 comments on commit 3108dfc

Please sign in to comment.