Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

operation

Usage

Description

Specify how the NETCONF server incorporates an individual configuration element into the target configuration, which can be either the candidate configuration or the open configuration database. If you omit the attribute, the element is merged into the configuration according to the rules defined in Set the Edit Configuration Mode in a NETCONF Session. The NETCONF server accepts the following values:

create

Create the specified element in the target configuration only if the element does not already exist.

delete

Delete the specified element from the target configuration. If the element does not exist in the target configuration, the server returns an <rpc-error> element with an <error-tag> value of data-missing.

When you use this attribute, we recommend that you include the <default-operation>none</default-operation> element in the <edit-config> RPC.

remove

Delete the specified element from the target configuration. If the element does not exist in the target configuration, the server silently ignores the request and does not return any error related to this request.

When you use this attribute, we recommend that you include the <default-operation>none</default-operation> element in the <edit-config> RPC.

replace

Replace the specified element in the target configuration with new configuration data.

Note:

The operation="replace" attribute is not supported when loading configuration data into the ephemeral configuration database.

Release Information

Starting in Junos OS Release 23.1R1 and Junos OS Evolved Release 23.1R1, the NETCONF server <rpc-error> response is changed when <edit-config> uses the operation="delete" operation to delete a configuration element that is absent in the target configuration. The error severity is error instead of warning, and the <rpc-error> element includes the <error-tag>data-missing</error-tag> and <error-type>application</error-type> elements.