Service IronWare Administration Guide (Supporting R05.6.00) User Manual
Multi-Service IronWare Administration Guide 295
53-1003028-02
Basic NETCONF operations
8
<edit-config> operation
The NETCONF <edit-config> operation loads all the configurations into the specified target
configuration.
Elements in the
<config> subtree may contain an operation attribute. The attribute identifies the
point in the configuration to perform the operation and might appear on multiple elements
throughout the
<config> subtree.
The operation attribute contains any one of the following values:
merge, replace, create, delete.
The values
merge, replace, or create is enforced by the behavior of the individual CLI, so these
options are ignored. The
delete operation alone is supported.
Parameters
The parameters used for <edit-config> are as follows:
• target: Name of the configuration data store being edited, such as <nc:running/> .
• test-option: This option is not supported.
• default-operation: Only the none value is supported. The other values such as merge,
replace, create,
and delete are ignored because the behaviors are enforced by the
individual CLI.
• error-option: Only the stop-on-error option is supported. The other values such as
continue-on-error and rollback-on-error are ignored.
• config: A hierarchy of configuration data as defined by the data models of the device. The new
configuration must be inline configuration and other configuration options such as local file,
remote file, and URL are not supported.
Examples
The following is an example for an <edit-config> operation for MPLS configuration.
<nc:rpc message-id="1" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"
xmlns:brcd="http://brocade.com/ns/netconf/config/netiron-config/">
<nc:edit-config>
<nc:target>
<nc:running/>
</nc:target>
<nc:default-operation>merge</nc:default-operation>
<nc:config>
<brcd:netiron-config>
<brcd:mpls-config>
<brcd:lsp nc:operation="delete">
<brcd:name>examplelsp2</brcd:name>
</brcd:lsp>
</brcd:mpls-config>
</brcd:netiron-config>
</nc:config>
</nc:edit-config>
</nc:rpc>
]]>]]>
<nc:rpc-reply xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"
xmlns:brcd="http://brocade.com/ns/netconf/config/netiron-config/"
message-id="1">
<nc:ok></nc:ok>