edit_lab_nodes_by_template
Bulk-edit interfaces, CPU, memory, icon, or image across nodes of a single template in an EVE-NG lab. Guides step-by-step to resolve template and node selections, then applies changes after confirmation.
Instructions
Bulk-edit interfaces/cpu/memory/icon/image across nodes of exactly one template.
Search by vendor and/or template (case-insensitive
substring, at least one required). More than one template
matching: lists every match (numbered) and asks you to narrow
further -- a more specific vendor/template, or
template_selection (number or exact template id) -- repeat
until exactly one remains. Never targets more than one
template per call.
Once resolved, node_selection picks which of that template's
nodes to target: "all", or number(s)/exact name(s)
(space/comma separated).
Then component (interfaces/cpu/memory/icon/image) and
value say what to change. For component="icon", value is
unused -- icon_search narrows EVE-NG's icon catalog the same
way template matches do, via icon_selection. For
component="image", value is also unused -- image_search
narrows this resolved template's own valid images (not a
global catalog -- images are template-scoped), via
image_selection.
Whatever isn't supplied is prompted for one piece at a time -- each call re-derives everything fresh from what's currently given, there's no server-side session.
Final confirmation always summarizes every affected node, the
template, and the change, and warns that every affected node
will be stopped first (required regardless of PRO/Community).
Reply "accept" or "yes" (confirm) to apply; anything else
cancels -- same wording as every delete tool.
Args:
lab_path: Full path to the .unl lab file.
vendor: Vendor to search for, e.g. "cisco". At least this
or template is required.
template: Template id/name fragment to search for, e.g. "vios".
template_selection: When multiple templates matched, the
number or exact template id of the one you want.
node_selection: "all", or the number(s)/exact name(s)
(space/comma separated) of the nodes to target.
component: What to change: "interfaces", "cpu", "memory", "icon", or "image".
value: New numeric value, for interfaces/cpu/memory.
icon_search: Icon filename fragment to search for, for component="icon".
icon_selection: When multiple icons matched, the number or
exact filename of the one you want.
image_search: Image filename fragment to search for, for
component="image" -- searched within the resolved
template's own valid images only.
image_selection: When multiple images matched, the number
or exact filename of the one you want.
confirm: Set true on the final call to actually apply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | ||
| vendor | No | ||
| confirm | No | ||
| lab_path | Yes | ||
| template | No | ||
| component | No | ||
| icon_search | No | ||
| image_search | No | ||
| icon_selection | No | ||
| node_selection | No | ||
| image_selection | No | ||
| template_selection | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||