257
Operation Description XML example
• If the specified target does
not exist, or the XML
message does not specify
any target, a success
message is returned.
edit-config: delete
Deletes the specified
configuration.
• 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.
• If the specified target does
not exist, an error message
is returned, showing that
the target does not exist.
The syntax is the same as the edit-config message
with the merge attribute. Change the operation
attribute from
merge
to
delete
.
edit-config:
default-operation
Modifies the current
configuration of the device using
the default operation method.
If you do not specify an
operation attribute for an
<edit-config> message,
NETCONF uses one of the
following default operation
attributes: merge, create, delete,
and replace. Your setting of the
value for the <default-operation>
element takes effect only once.
If you do not specify an
operation attribute and the
default operation method for an
<edit-config> message,
merge
is always applied.
• merge—The default value
for the <default-operation>
element.
• replace—Value used when
the operation attribute is
not specified and the
default operation method is
specified as replace.
• none—Value used when
the operation attribute is
not specified and the
default operation method is
specified as none. If this
value is specified, the
<edit-config> operation is
used only for schema
verification rather than
issuing a configuration. If
To issue an empty operation for schema verification
purposes:
<rpc message-id ="101"
xmlns="urn:ietf:params:xml:ns:netconf:base
:1.0">
<edit-config>
<target>
<running/>
</target>
<default-operation>none</default-operation
>
<config
xmlns:xc="urn:ietf:params:xml:ns:netconf:b
ase:1.0">
<top
xmlns="http://www.h3c.com/netconf/config:1
.0">
<Ifmgr >
<Interfaces>
<Interface>
<Index>262</Index>
<Description>222222</Description>
</Interface>
</Interfaces>
</Ifmgr>
</top>
</config>
</edit-config>
</rpc>