[Contents] [Prev] [Next] [Index] [Report an Error]

Deleting a Single-Value or Fixed-Form Option from a Configuration Object

To delete from a configuration object either a fixed-form option or an option that takes just one value, a client application includes the operation="delete" attribute in the tag element for the option. In the following, the identifier tag element for the object is called <name>. (For information about deleting an option that can take multiple values, see Deleting Values from a Multivalue Option of a Configuration Object.)


<configuration>
    <!- - opening tags for each parent of the object - ->
        <object>
          <name>identifier</name>
            <option1 operation="delete">
            <option2 operation="delete">
            <!- - tag elements for other options to delete - ->
        </object>
    <!- - closing tags for each parent of the object - ->
</configuration>

We recommend that the application set the default mode to no-change by including the <default-operation> tag element with the value none, as described in Deleting Configuration Elements. For more information about options, see Mapping for Single-Value and Fixed-Form Leaf Statements.

The following example shows how to remove the fixed-form stand-alone option at the [edit system ldap server] hierarchy level:

Client Application

NETCONF Server

<rpc>
  <edit-config>
    <target>
      <candidate/>
    </target>
    <default-operation>none</default-operation>
    <config>
      <configuration>
        <system>
          <ldap>
            <server>
              <stand-alone operation=” delete” />
            </server>
          </ldap>
        </system>
      </configuration>
    </config>
  </edit-config>
</rpc>
]]>]]>

 

 

<rpc-reply xmlns=”URN” xmlns:sdx=”URL” >
  <ok/>
</rpc-reply>
]]>]]>


[Contents] [Prev] [Next] [Index] [Report an Error]