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

Mapping for Command Options with Variable Values

Many CLI commands have options that identify the object that the command affects or reports about, distinguishing the object from other objects of the same type. In some cases, the CLI does not precede the identifier with a fixed-form keyword, but XML convention requires that the SRC XML API define a tag element for every option. To learn the names for each identifier (and any other child tag elements) for an operational request tag element, consult the tag element’s entry in the appropriate DTD or in the SRC XML API Operational Reference.

The following example shows the XML tag elements for a CLI operational command that has variable-form options. In the show interfaces command, eth0 is the name of the interface.

CLI Command

SRC XML Tags

show interfaces eth0

<rpc>
  <get-interfaces>
    <interface-name>eth0</interface-name>
  </get-interfaces>
</rpc>


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