add_lab_network
Add a network bridge, cloud, OVS, or pnetX to an EVE-NG lab canvas, with support for cloud aliases (Cloud0-Cloud9) and canvas positioning.
Instructions
Add a network (bridge/cloud/ovs/pnetX) to a lab's canvas.
If network_type isn't given, fetches the current list of
valid types and prompts for one instead of guessing or
erroring -- reply with the exact name, or its number from
that list. "cloud"/"cloud0" through "cloud9"
(case-insensitive) are also accepted, resolved to "pnet0"
through "pnet9" -- what EVE-NG's GUI calls Cloud0-Cloud9, a
fixed set of exactly 10 (confirmed against EVE-NG's own
documentation); the API itself only ever accepts the bare
pnetN form.
Args:
lab_path: Full path to the .unl lab file.
network_type: See list_network_types for valid values,
"cloud"/"cloud0"-"cloud9" for pnet0-pnet9, or omit to
be shown the list.
name: Network display name, default "NetX".
left: Canvas position from the left. Numeric string, e.g. "380".
top: Canvas position from the top. Numeric string, e.g. "153".
hideme: 0 (default) renders as its own icon; 1 hides it.
Note: not what makes a node-to-node connect_interface
bridge render as a direct line -- that's visibility,
set separately after wiring, not something you set here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| left | No | ||
| name | No | ||
| hideme | No | ||
| lab_path | Yes | ||
| network_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||