{"action":"created","issue":{"url":"https://api.github.com/repos/CESNET/libyang/issues/322","repository_url":"https://api.github.com/repos/CESNET/libyang","labels_url":"https://api.github.com/repos/CESNET/libyang/issues/322/labels{/name}","comments_url":"https://api.github.com/repos/CESNET/libyang/issues/322/comments","events_url":"https://api.github.com/repos/CESNET/libyang/issues/322/events","html_url":"https://github.com/CESNET/libyang/issues/322","id":229660258,"number":322,"title":"ietf-interfaces doesn't load augmented containers","user":{"login":"anjansat","id":28289479,"avatar_url":"https://avatars1.githubusercontent.com/u/28289479?v=3","gravatar_id":"","url":"https://api.github.com/users/anjansat","html_url":"https://github.com/anjansat","followers_url":"https://api.github.com/users/anjansat/followers","following_url":"https://api.github.com/users/anjansat/following{/other_user}","gists_url":"https://api.github.com/users/anjansat/gists{/gist_id}","starred_url":"https://api.github.com/users/anjansat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anjansat/subscriptions","organizations_url":"https://api.github.com/users/anjansat/orgs","repos_url":"https://api.github.com/users/anjansat/repos","events_url":"https://api.github.com/users/anjansat/events{/privacy}","received_events_url":"https://api.github.com/users/anjansat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-18T12:51:27Z","updated_at":"2017-05-18T13:03:24Z","closed_at":null,"body":"With latest pull, ietf-interfaces doesn't load augmented containers. Following is the syntax from the yang\r\n```yang\r\n  grouping interface-config-group  {\r\n    leaf interface-type {\r\n      type identityref {\r\n        base ensemble-interface-type;\r\n      }\r\n    }\r\n    \r\n    container ip {\r\n      when \"../interface-type = 'int-ip'\";\r\n      uses intip:ip-interface-group;\r\n    }\r\n    container tunnel {\r\n      when \"../interface-type = 'int-tun'\";\r\n      uses inttun:tunnel-group;\r\n    }\r\n    container aggr {\r\n      when \"../interface-type = 'int-aggr'\";\r\n      uses aggr:aggr-group;\r\n    }\r\n    container vport {\r\n      when \"../interface-type = 'int-vport'\";\r\n      uses vp:vport-group;\r\n    }\r\n    container attachment-circuit {\r\n      when \"../interface-type = 'int-ac'\";\r\n      ac:attachment-circuit-group;\r\n    }\r\n    container gigabit {\r\n      when \"../interface-type = 'int-ge'\";\r\n      uses gig:gigabit-group;\r\n    }\r\n    container tengigabit {\r\n      when \"../interface-type = 'int-tenge'\";\r\n      uses ten:tengigabit-group;\r\n    }\r\n    container inband {\r\n      when \"../interface-type = 'int-inband'\";\r\n      uses inband:inband-group;\r\n    }\r\n    container lte {\r\n      when \"../interface-type = 'int-lte'\";\r\n      uses lte:lte-interface-group;\r\n    }\r\n  }\r\n\r\n  augment \"/if:interfaces/if:interface\" {\r\n    container interface-config {\r\n      uses interface-config-group;\r\n    }\r\n  } \r\n```\r\nLooks like get schema fails for augmented  \"interface-config\" container, due to when conditions. The same used to work earlier."},"comment":{"url":"https://api.github.com/repos/CESNET/libyang/issues/comments/302397120","html_url":"https://github.com/CESNET/libyang/issues/322#issuecomment-302397120","issue_url":"https://api.github.com/repos/CESNET/libyang/issues/322","id":302397120,"user":{"login":"michalvasko","id":12510224,"avatar_url":"https://avatars0.githubusercontent.com/u/12510224?v=3","gravatar_id":"","url":"https://api.github.com/users/michalvasko","html_url":"https://github.com/michalvasko","followers_url":"https://api.github.com/users/michalvasko/followers","following_url":"https://api.github.com/users/michalvasko/following{/other_user}","gists_url":"https://api.github.com/users/michalvasko/gists{/gist_id}","starred_url":"https://api.github.com/users/michalvasko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalvasko/subscriptions","organizations_url":"https://api.github.com/users/michalvasko/orgs","repos_url":"https://api.github.com/users/michalvasko/repos","events_url":"https://api.github.com/users/michalvasko/events{/privacy}","received_events_url":"https://api.github.com/users/michalvasko/received_events","type":"User","site_admin":false},"created_at":"2017-05-18T13:03:24Z","updated_at":"2017-05-18T13:03:24Z","body":"Hi,\r\ncan you please elaborate? Link to the whole module would be nice, what `get-schema` fails? You have this model loaded in *netopeer2-server* and a `get-schema` from client fails? How can this fail because of `when` conditions, we are talking about schema, not data. I made some significant changes in `augment` resolution, so I may have broken something, but I need much more information that this.\r\n\r\nRegards,\r\nMichal"}}
{"actor":{"display_login":"michalvasko"}}