RUGGEDCOM NETCONF
Reference Guide
Chapter 1
Introduction
Sample Session: Editing Data
9
<ok/>
</rpc-reply>]]>]]
Section 1.5.3
Sample Session: Editing Data
To edit data on the device, do the following:
<hello>
Say
<hello>
<close-session>
*
<edit-config>
<validate>
<commit>
<unlock>
datastores
<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>
<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>
<discard-changes/>
<xml>
<xml
>data
</xml
>
<xm
l>dat
a</xm
l>
<xml
>data
</xml
>
<xml
>data
</xml
>
<xm
l>dat
a</xm
l>
<x
ml>da
ta</x
ml>
<
xml>d
ata</
xml>
<xm
l>dat
a</xm
l>
<xm
l>dat
a</xm
l>
<xm
l>dat
a</xm
l>
</xml
>
<lock>
datastores
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.
Содержание RUGGEDCOM MX5000RE
Страница 8: ...Table of Contents RUGGEDCOM NETCONF Reference Guide viii ...
Страница 12: ...Preface RUGGEDCOM NETCONF Reference Guide xii Customer Support ...
Страница 26: ...Chapter 1 Introduction RUGGEDCOM NETCONF Reference Guide 14 Sample Session Editing Data ...
Страница 40: ...Chapter 3 NETCONF Sessions RUGGEDCOM NETCONF Reference Guide 28 Killing a Session ...
Страница 64: ...Chapter 5 Changing Configuration Data RUGGEDCOM NETCONF Reference Guide 52 Committing Changes ...
Страница 148: ...Chapter 8 NETCONF XML Elements RUGGEDCOM NETCONF Reference Guide 136 validate ...