You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get this error : libyang err : Duplicate identifier "module-version" of data definition/RPC/action/notification statement. (/ietf-yang-push-revision:{augment='/sn:subscriptions/sn:subscription/sn:target/yp:datastore/yp:selection-filter/yp:within-subscription'}/{uses='ypr:yang-push-module-version-config-list'}/ietf-yang-push-revision:module-version)
Basically it seems it is not possible to augment both:
I have improved the error message but I believe it is valid. Based on the new message and the RFC spec (second bullet at the top of the page). In practice, when parsing data, it would be impossible to distinguish between the two.
Hello,
I got an error trying to parse new yang files.
Procedure to reproduce:
I created a directory containing the yang files related to subscriptions, from Netopeer2/modules:
[email protected] [email protected] [email protected]
[email protected] [email protected] [email protected] [email protected] [email protected] [email protected].
I added these yang drafts:
[email protected] [email protected] [email protected]
[email protected]
[email protected]
[email protected]
Perform a yanglint(build from SHA: f4ba2ff):
./yanglint ~/sshfs_root/yang_env/[email protected]
I get this error :
libyang err : Duplicate identifier "module-version" of data definition/RPC/action/notification statement. (/ietf-yang-push-revision:{augment='/sn:subscriptions/sn:subscription/sn:target/yp:datastore/yp:selection-filter/yp:within-subscription'}/{uses='ypr:yang-push-module-version-config-list'}/ietf-yang-push-revision:module-version)
Basically it seems it is not possible to augment both:
augment "/sn:establish-subscription/sn:input/sn:target/sn:stream/sn:stream-filter/sn:within-subscription" {
augment "/sn:establish-subscription/sn:input/sn:target/yp:datastore/yp:selection-filter/yp:within-subscription" {
with the same grouping.
Same error with both:
augment "/sn:subscription-started/sn:target/sn:stream/sn:stream-filter/sn:within-subscription" {
augment "/sn:subscription-started/sn:target/yp:datastore/yp:selection-filter/yp:within-subscription" {
BR,
J
The text was updated successfully, but these errors were encountered: