Skip to content

question regarding node validation with extension plugin #2452

@jeremie6wind

Description

@jeremie6wind

Hi,
The node callback has been removed from plugin_ext in libyang 4.
In my case, it was used to validate data in a container with extensions.

For example, I have this kind of container:

container cont1 {
   extension myext ;
   list list1 {
     key "name";
     leaf name {
     type string;
   }
   list list2 {
     key "name";
     leaf name {
       type string;
   }
}

The node callback of myext plugin was called and I could check the values of "name" node in both lists.

I could use some must, however if the number of list in cont1 increases, it becomes difficult to maintain.

How should I do that with libyang4?

Thank you.
BR

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:enhancementRequest for adding new feature or enahncing functionality.status:completedFrom the developer perspective, the issue was solved (bug fixed, question answered,...)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions