create_network_config
Create a saved network configuration profile with interface modes, namespaces, and optional security settings. Provide a config dict to define managed or monitor interfaces and persist them as a reusable profile.
Instructions
Create a new saved network configuration profile.
The config dict must include:
id (str): Unique profile name (cannot be 'root' or 'default')
namespaces (list, optional): Namespace-based interface configs
roots (list, optional): Root namespace interface configs
Each interface config in namespaces/roots needs:
mode: 'managed' or 'monitor'
iface_display_name: Human-readable name
phy: PHY device (e.g. 'phy0')
interface: Interface name (e.g. 'wlan0')
namespace (namespaces only): Namespace name (e.g. 'testns')
security (optional): {ssid, security, psk} for WPA2-PSK/WPA3-PSK networks
Args: config: Network configuration dict matching the NetConfig schema
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||