To define an element and immediately deactivate it, a client application includes the basic tag elements or configuration statements for its parent levels, as described in Creating, Modifying, or Deleting Configuration Elements.
If using JUNOS XML tag elements to define the new element, the application includes the inactive="inactive" attribute in the opening tag for the element. It includes tag elements for all children being defined for the element. In the following, the identifier tag element is called <name>:
<configuration>
<!- - opening tag for each parent of the element - ->
<element inactive="inactive">
<name>identifier</name> <!- - if the element has an identifier - ->
<!- - tag elements for each child of the element - ->
</element>
<!- - closing tag for each parent of the element - ->
</configuration>
If using formatted ASCII text to define the new element, the application precedes the element with the inactive: operator. It includes all child statements that it is defining for all children of the element:
<configuration-text>
/* statements for parent levels */
/* For an object with an identifier */
inactive:
object identifier {
/* Child configuration statements */
}
/* For a hierarchy level or object without an identifier */
inactive:
element {
/* Child configuration statements */
}
/* closing braces for parent levels */
</configuration-text>