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

Re: Difference between get and get-config



Johan Rydberg wrote:
Martin Bjorklund skrev:

Each of these can be viewed as a separate XML document if you wish.

In other words, a configuration datastore can store several documents?


A NETCONF configuration database is not an XML instance document.
Only the NETCONF PDUs on the wire are XML instance documents.

The data root is the <config> element or the <filter> element,
which does not actually exist as part of the agent data model(s).
That is why I called it a conceptual root.

It is quite possible that different child nodes of <config> or <filter>
could be defined in different XSDs.  (The <netconf> node will be
defined in NETCONF Notifications, and proprietary nodes will be
defined elsewhere.)

When the agent does a 'copy-config', a top-level element has to
be created to hold the arbitrary number of data nodes (I call
this element <config> in my code.)  Otherwise the file written
will not be well-formed XML.  Otherwise you could not take
the output of a <get-config> or <copy-config> and use it directly
as the input to an <edit-config> operation.

Network configuration is not a document editing problem.
Use WEBDAV for that problem, not NETCONF.

~j

Andy


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