RUGGEDCOM NETCONF
Reference Guide
<ok/>
</rpc-reply>]]>]]
Section 1.5.3
Sample Session: Editing Data
To edit data on the device, do the following:
Say <hello>
<discard-changes/>
<lock> datastores
<edit-config>
Figure 4: Session Schematic: Editing Data
Basic Steps
1.
Connect to the device and exchange <hello> messages.
2.
Issue an <rpc> command to discard changes. Discarding changes removes changes that are incomplete and
not yet committed to the datastores. It is strongly recommended that you discard any such stray changes
before making changes to the device configuration. Discarding changes helps to ensure that you are making
changes to a known state of the configuration.
3.
Issue an <rpc> command to lock the candidate and running datastores. Locking the datastores prevents
other users in other sessions from editing the database while the NETCONF session is working with it. It is
strongly recommended that you lock the datastores before making changes to the device configuration.
Sample Session: Editing Data
<hello>
<xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
</xml>
<validate>
<commit>
<unlock> datastores
<close-session>
Chapter 1
Introduction
<xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
<xml>data</xml>
</xml>
*
9