Hi, I have two quick questions with regards to anydata - related to the topic of the thread, but concerning a separate topic.
(1) How does yang-patch interact with anydata? In particular, could you apply a yang-patch edit to a data node within the anydata? (While the module may not have been known at design time, it will be known at run time - so presume yes.) (2) How about edit-config? Can you use edit config to apply operations to nodes within the anydata, or just to the blob as a whole? (Again, I would assume you can, as the nodes will be known at run time.) Thanks --- Alex -----Original Message----- From: netmod [mailto:[email protected]] On Behalf Of Juergen Schoenwaelder Sent: Wednesday, September 30, 2015 6:52 AM To: Ladislav Lhotka <[email protected]> Cc: Randy Presuhn <[email protected]>; [email protected] Subject: Re: [netmod] 6020bis - anydata On Wed, Sep 30, 2015 at 01:01:36PM +0200, Ladislav Lhotka wrote: > Hi Randy, > > thanks for the comments and proposed edits. Please see inline. > > Randy Presuhn <[email protected]> writes: > > > Hi - > > > >>From: Ladislav Lhotka <[email protected]> > >>Sent: Sep 29, 2015 7:07 AM > >>To: [email protected] > >>Subject: [netmod] 6020bis - anydata > >> > >>Hi, > >> > >>I propose to expand the text in Sec. 7.10 as follows: > >> > >>OLD > >> > >> The "anydata" statement is used to represent an unknown set of nodes > >> that can be modelled with YANG. An example of where this can be > >> useful is a list of received notifications, where the exact > >> notifications are not known as design time. > >> > >>NEW > >> > >> The "anydata" statement is used to represent an unknown set of nodes > >> that can be modelled with YANG but for which the data model doesn't > >> exist at module design time. > > > > "doesn't exist" would not be appropriate for the example you provide > > below. It would be incorrect if some of the notifications in your > > example had already been defined, even though "anydata" would still > > be necessary to handle others not yet defined. > > Would "doesn't exist or cannot be determined at module design time" be better? > What about this: The "anydata" statement is used to represent a set of nodes that can be modelled with YANG but for which the data model is not known at module design time. /js -- Juergen Schoenwaelder Jacobs University Bremen gGmbH Phone: +49 421 200 3587 Campus Ring 1 | 28759 Bremen | Germany Fax: +49 421 200 3103 <http://www.jacobs-university.de/> _______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod _______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
