Hi,

Balázs Lengyel <balazs.leng...@ericsson.com> wrote:
> Hello,
> 
> In draft-ietf-netmod-yang-data-ext the extension structure is
> defined. In my draft about
> instance data format I plan to use this in a YANG model. Kent raised
> the question about
> providing a YANG Tree description of the model.
> 
> Is there any idea how the data nodes inside a yang "structure" should
> be represented in a
> tree?

I suggest just like yang-data:

module: example-module

  structure address-book:
    +-- address* [last first]
       +-- last      string
       +-- first     string
       +-- street?   string
       +-- city?     string
       +-- state?    string

I will add text to the draft that defines this.


> Any idea when pyang will be prepared for that?

I have added support for this on the branch feature/yang-structure.
It verifies the grammar and adds the option --tree-print-structures.
It doesn't handle augment-structure yet.


/martin

_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to