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

Re: partial locking and access control



Phil Shafer <phil@juniper.net> wrote:
> IMHO the data model needs to define what's lockable.  Supporting
> random XPath expression locking is way too expensive.

Note that random XPath is only supported if the :xpath capability is
supported.  Implementation-wise, if your code handles :xpath, it will
not be more expensive to handle random xpath for partial locking.
(That's what we do in our implementation - we just send the xpath to
our xpath evaluator, and it will return a node set.  Each node in the
node set will be locked.  For a xpath filter in a <get>, we just use
the same xpath evaluator but sends the selected nodes in the
rpc-reply).


/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/>