[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> <!- - if object has an identifier - ->
            <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 disable option at the [edit forwarding-options sampling] hierarchy level:

Image t2125.gif
[Contents] [Prev] [Next] [Index] [Report an Error]