> On 21 Oct 2015, at 22:21, Andy Bierman <[email protected]> wrote: > > > > On Wed, Oct 21, 2015 at 11:15 AM, Martin Bjorklund <[email protected]> wrote: > Andy Bierman <[email protected]> wrote: > > [...] > > > But the "when-stmt" never causes an error for application within > > a datastore. > > > > The text in sec. 8 does not apply because the when-stmt is not > > on any object in the RPC being processed. > > > > Only this text applies: > > > > The "when" statement makes its parent data definition statement > > conditional. The node defined by the parent data definition > > statement is only valid when the condition specified by the "when" > > statement is satisfied. > > > > > > The NETCONF specific text needs to change. > > Simply putting , "For example, NETCONF ..." might be enough. > > Can you be more specific - exactly where do you suggest this change? > > > Not really -- there are way too many places the draft refers to > NETCONF operations, where it could just be referring to a configuration > datastore. > > The draft does not even cover proprietary access RPCs. > If somebody defined <my-edit-config> the same datastore validation > procedures should apply to the conceptual configuration datastore.
Ideally, YANG spec should contain only language definition and statements about validity of instance data. Protocol-related stuff should go into protocol-specific "adaptation" documents, and encodings should also be separate. Lada > > > > > /martin > > Andy -- Ladislav Lhotka, CZ.NIC Labs PGP Key ID: E74E8C0C _______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
