[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: notification-08 comments



Andy Bierman <ietf@andybierman.com> wrote:
> 3.6, para 1:

[...]

>     If a filter element
>     is specified to look for data of a particular value, and the data
>     item is not present within a particular event notification for its
>     value to be checked against, the notification will be filtered out.
> 
> This is not precise enough.
> For starters, subtree and Xpath filters return a subset of
> conceptual 'input node set', not a boolean expression.
> The output node set is returned in the <get> or <get-config> response.
> 
> What does it mean to convert this mechanism to a boolean filter?
> 
> Does it mean that any output at all from the filter means
> it 'passes', and an empty output node set means the filter 'failed'?

This is already defined for XPath, we should not change that.  Note
that an XPath expression does not have to return a 'node set', it can
also return a boolean, number or a string.  The XPath spec defines how
to interpret any of these as a boolean.

A subtree filter, on the other hand, can only return a node set.  The
text in 3.6 could say that a non-empty node set means that the filter
matches.


/martin

--
to unsubscribe send a message to netconf-request@ops.ietf.org with
the word 'unsubscribe' in a single line as the message text body.
archive: <http://ops.ietf.org/lists/netconf/>