Basic CLI Command Reference
156 Basic System Configuration Guide
insert
Syntax insert [line]
Context candidate
Description This command inserts the contents of the temporary buffer (populated by a previous copy or delete
command) into the candidate configuration. The contents are inserted by default after the current edit
point. Optional parameters allow the insertion after some other point of the candidate. The contents
of the temporary buffer are deleted when the operator exits candidate edit mode.
Insertions are context-aware. The temporary buffer always stores the CLI context (such as the current
CLI branch) for each line deleted or copied. f the lines to be inserted are supported at the context of the
insertion point then the lines are simply inserted into the configuration. If the lines to be inserted are
not supported at the context of the insertion point, then the context at the insertion point is first closed
using multiple exit statements, the context of the lines to be inserted is built (added) into the candidate
at the insertion point, then the lines themselves are added, the context of the inserted lines is closed
using exit statements and finally the context from the original insertion point is built again leaving the
context at the same point as it was before the insertion.
Parameters line — Indicates where to insert the line starting at the point indicated by the following options.
Values
load
Syntax load file-url [overwrite | insert | append]
Context candidate
offset Relative line number to current edit
point. Prefixed with '+' or '-'
first Keyword - first line
edit-point Keyword - current edit point
last Keyword - last line that is not 'exit'
line, offset, first, edit-point last
line Absolute line number.
offset Relative line number to current edit point.
Prefixed with '+' or '-'
first Keyword - first line
edit-point Keyword - current edit point
last Keyword - last line that is not 'exit'