Operation
Description
•
Creates a specified target. To
use the create attribute in an
<edit-config> operation, you
must specify the operation
target.
•
edit-config: create
•
Replaces the specified target.
•
•
edit-config:
replace
•
Removes the specified
configuration.
•
edit-config:
remove
•
If the specified target does
not exist and it cannot be
created, an error message
is returned.
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.
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.
If the specified target has
only the table index, the
operation removes all
configuration of the
specified target, and the
target itself.
If the specified target has
the table index and
configuration data, the
operation removes the
specified configuration data
of this target.
256
XML example
xmlns="http://www.h3c.com/netconf/config:1
.0" xc:operation="merge">
<LogBuffer>
<BufferSize>120</BufferSize>
</LogBuffer>
</Syslog>
</top>
</config>
</edit-config>
</rpc>
The XML data format is the same as the edit-config
message with the merge attribute. Change the
operation attribute from merge to create.
The syntax is the same as the edit-config message
with the merge attribute. Change the operation
attribute from merge to replace.
The syntax is the same as the edit-config message
with the merge attribute. Change the operation
attribute from merge to remove.