export_config
Save a running node's live configuration into its startup configuration to persist changes after a wipe or reopen. Use node_id=0 to export all running nodes simultaneously.
Instructions
Save a RUNNING node's live running-config into its stored startup-config (PNETLab 'Export CFG'), so changes made on the device (write mem) survive a wipe/reopen. The node must be running. Pass node_id=0 to export ALL running nodes at once. Also refreshes what get_node_config returns.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lab_path": "<lab_path>"
},
"name": "export_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | No | ||
| lab_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |