Juergen Schoenwaelder <[email protected]> wrote:
> On Tue, Sep 13, 2016 at 09:34:33AM +0200, Ladislav Lhotka wrote:
> > 
> > > On 13 Sep 2016, at 09:01, Yves Beauville <[email protected]> wrote:
> > > 
> > > Both RFC 6020 and RFC 7950 are providing the same requirement in section 
> > > 'Payload Parsing':
> > >   o  If data for a node tagged with "when" is present, and the "when" 
> > > condition evaluates to "false", the server MUST reply with an 
> > > "unknown-element" error-tag in the rpc-error.
> > 
> > This section seems confusing. It makes no sense to evaluate "when" or 
> > "must" on the contents of a protocol message such as edit-config because 
> > accessible trees for XPath evaluations are defined in sec. 6.4.1 in terms 
> > of datastores and "all state data".  
> >
> 
> I agree that this bullet in section 8.3.1 looks odd. Perhaps Martin
> recalls why this was written in the first place?

No.  It is however the same in 6020 and 7950.  I think the fourth
bullet in 8.3.2 is probably more clear, at least for edit-config.  The
bullet in 8.3.1 also covers copy-config.  The problem with the bullet
in 8.3.1 seems to be that it is not clear that the condition is
checked after the whole message has been parsed.


/martin

_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to