Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YANG error when poking on EOS configuration #26

Closed
krihal opened this issue Aug 15, 2023 · 2 comments
Closed

YANG error when poking on EOS configuration #26

krihal opened this issue Aug 15, 2023 · 2 comments
Assignees
Labels
bug Something isn't working fixed: plz verify Bug/feature is fixed by developer, need verification

Comments

@krihal
Copy link
Collaborator

krihal commented Aug 15, 2023

khn@zoomie[/]# set devices device arista* conf ?
Aug 15 11:21:51: xp_yang_op_eq: 122: Yang error: Invalid path-arg (Error in xy1 or xy2) : Invalid argument
CLI command error
khn@zoomie> show configuration devices device arista* config ?
Aug 15 11:23:41: xp_yang_op_eq: 122: Yang error: Invalid path-arg (Error in xy1 or xy2) : Invalid argument
@olofhagsand
Copy link
Member

This happens when the memory optimization is enabled in the controller:

<clixon-config xmlns="http://clicon.org/config">
   <autocli>
     <grouping-treeref>true</grouping-treeref>                <----

@olofhagsand
Copy link
Member

An example from ietf-yang-library.yang is:

  grouping module-implementation-parameters {
    description
      "Parameters for describing the implementation of a module.";
    leaf-list feature {
      type yang:yang-identifier;
    ...
    leaf-list deviation {
      type leafref {
        path "../../module/name";
      }

The path "../.." goes beyond the scope of the grouping and assumes that there is a "module" node in the context where the "uses" is done. I think is broken YANG.

@krihal krihal added the fixed: plz verify Bug/feature is fixed by developer, need verification label Aug 30, 2023
@krihal krihal closed this as completed Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed: plz verify Bug/feature is fixed by developer, need verification
Projects
None yet
Development

No branches or pull requests

2 participants