libyang icon indicating copy to clipboard operation
libyang copied to clipboard

Substatements on extension instances

Open aronjohanns opened this issue 1 year ago • 1 comments

Is it possible to get the substatements on compiled extension instance. For example on the list below i would like to be able to get the cli-display-joined statement under the cli-allow-join-with-key. However it seems that the exts on cli-allow-join-with-key is null.

    container interface {
        list HundredGigE {
            tailf:cli-allow-join-with-key {
                tailf:cli-display-joined;
            }
            key name;
            leaf name {
                type string;
                
            }
           
        }
    }

aronjohanns avatar Jul 03 '24 09:07 aronjohanns

Right, this was most likely intentional but it could be improved and nested extensions should now be parsed.

michalvasko avatar Jul 04 '24 10:07 michalvasko