186
Operation
Description
XML example
edit-config: merge
Changes the running
configuration.
To use the
merge
attribute in
the edit-config operation, you
must specify the operation
target (on a specified level):
•
If the specified target
exists, the operation
directly changes the
configuration for the
target.
•
If the specified target does
not exist, the operation
creates and configures the
target.
•
If the specified target does
not exist and it cannot be
created, an error message
is returned.
To change the buffer size to 120:
<rpc message-id ="101"
xmlns="urn:ietf:params:xml:ns:netconf:ba
se:1.0"
xmlns:xc="urn:ietf:params:xml:ns:netconf
:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config>
<top
xmlns="http://www.hp.com/netconf/config:
1.0">
<Syslog
xmlns="http://www.hp.com/netconf/config:
1.0" xc:operation="merge">
<LogBuffer>
<BufferSize>120</BufferSize>
</LogBuffer>
</Syslog>
</top>
</config>
</edit-config>
</rpc>
edit-config: create
Creates a specified target. To
use the
create
attribute in the
edit-config operation, you must
specify the operation target.
•
If the table supports target
creation and the specified
target does not exist, the
operation creates and
then configures the target.
•
If the specified target
exists, a data-exist error
message is returned.
The XML data format is the same as the edit-config
message with the
merge
attribute. Change the
operation attribute from
merge
to
create
.
edit-config:
replace
Replaces the specified target.
•
If the specified target
exists, the operation
replaces the configuration
of the target with the
configuration carried in the
message.
•
If the specified target does
not exist but is allowed to
be created, create the
target and then apply the
configuration of the target.
•
If the specified target does
not exist and is not
allowed to be created, the
operation is not conducted
and an invalid-value error
message is returned.
The syntax is the same as the edit-config message
with the
merge
attribute. Change the operation
attribute from
merge
to
replace
.