* Augment target node check strict, instead of printing a warning, it will terminate with error.
* Fixed: [Augment that reference a submodule as target node fails #178](https://github.com/clicon/clixon/issues/178) * Fixed a memory error that was reported in slack by Pawel Maslanka * The crash printout was: `realloc(): invalid next size Aborted`
This commit is contained in:
parent
108f94cfad
commit
9840e248c6
12 changed files with 227 additions and 130 deletions
|
|
@ -85,6 +85,20 @@ module ietf-interfaces {
|
|||
type uint16;
|
||||
}
|
||||
}
|
||||
/* Original choice that gets augmented */
|
||||
choice target {
|
||||
case stream {
|
||||
leaf one{
|
||||
type string;
|
||||
}
|
||||
}
|
||||
}
|
||||
notification started {
|
||||
leaf id{
|
||||
type string;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
EOF
|
||||
|
||||
|
|
@ -145,6 +159,9 @@ module example-augment {
|
|||
refine port {
|
||||
default 80;
|
||||
}
|
||||
refine ip {
|
||||
description "double refine triggered mem error";
|
||||
}
|
||||
}
|
||||
uses localgroup {
|
||||
description "Use a local grouping defining lip and lport";
|
||||
|
|
@ -153,7 +170,22 @@ module example-augment {
|
|||
}
|
||||
}
|
||||
}
|
||||
/* augment choice */
|
||||
augment "/if:target" {
|
||||
case datastore {
|
||||
leaf two{
|
||||
type uint32;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* augment notification */
|
||||
augment "/if:started" {
|
||||
leaf argument{
|
||||
type string;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
EOF
|
||||
|
||||
new "test params: -f $cfg"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue