Related Documentation
- Changing Individual Configuration Elements Using NETCONF
- Creating Configuration Elements Using NETCONF
- Deleting Configuration Elements Using NETCONF
- Replacing Configuration Elements Using NETCONF
- Setting the Edit Configuration Mode in a NETCONF Session
- <configuration> in the Junos XML API Configuration Reference
- <edit-config>
operation
Usage
<rpc>
<edit-config>
<config>
<configuration>
<!-- opening tags for each parent of the changing element -->
<changing-element operation="(create | delete | replace)">
<name>identifier</name>
<!-- if changing element has an identifier - ->
<!-- other child tag elements, if appropriate for the operation -->
</changing-element>
<!-- closing tags for each parent of the changing element -->
</configuration>
</config>
<!-- other child tag elements of the <edit-config> tag element -->
<edit-config>
</rpc>
]]>]]>
Description
Specify how the NETCONF server incorporates an individual configuration element into the candidate configuration. If the attribute is omitted, the element is merged into the configuration according to the rules defined in Setting the Edit Configuration Mode in a NETCONF Session. The following are acceptable values:
create | — | Creates the specified element in the configuration only if the element does not already exist. |
delete | — | Deletes the specified element from the candidate configuration. We recommend that the <default-operation> tag element with the value none also be included in the <edit-config> tag element. |
replace | — | Replaces the specified element in the candidate configuration with the provided new configuration data. |
Related Documentation
- Changing Individual Configuration Elements Using NETCONF
- Creating Configuration Elements Using NETCONF
- Deleting Configuration Elements Using NETCONF
- Replacing Configuration Elements Using NETCONF
- Setting the Edit Configuration Mode in a NETCONF Session
- <configuration> in the Junos XML API Configuration Reference
- <edit-config>
Published: 2013-07-26
Related Documentation
- Changing Individual Configuration Elements Using NETCONF
- Creating Configuration Elements Using NETCONF
- Deleting Configuration Elements Using NETCONF
- Replacing Configuration Elements Using NETCONF
- Setting the Edit Configuration Mode in a NETCONF Session
- <configuration> in the Junos XML API Configuration Reference
- <edit-config>