A leaf statement is a CLI configuration statement that does not contain any other statements. Most leaf statements define a value for one characteristic of a configuration object and have the following form:
- keyword value ;
In general, the name of the XML tag element corresponding to a leaf statement is the same as the keyword string. The string between the opening and closing XML tags is the same as the value string.
The following example shows the XML tag elements for a leaf statement that has a keyword and a value: the announcement statement at the [edit system login] hierarchy level.
Some leaf statements consist of a fixed-form keyword only, without an associated variable-form value. The SRC XML API represents such statements with an empty tag. The following example shows the XML tag elements for the telnet statement at the [edit system services] hierarchy level.
|
CLI Configuration Statements |
SRC XML Tags |
|---|---|
|
system services {
|
<configuration>
|