configure_ios
Apply a block of IOS commands to a router or switch, including interface sub-modes; stops at the first rejected command and runs write memory when save is true.
Instructions
Apply a block of IOS configuration commands to a router or switch, as if typed after configure terminal: the first command enters global configuration and the rest follow the prompt, so interface ... sub-modes work. Stops at the first command IOS rejects, always leaves configuration mode, and runs write memory when save is true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | Run `write memory` afterwards so the configuration survives a reload. | |
| device | Yes | Router or switch name. | |
| commands | Yes | Configuration commands in order, for example `hostname R1`, `interface GigabitEthernet0/0`, `ip address 10.0.0.1 255.255.255.0`, `no shutdown`. A leading `enable` or `configure terminal` and a trailing `end` are handled for you. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| saved | Yes | ||
| total | Yes | ||
| device | Yes | ||
| applied | Yes | ||
| results | Yes | ||
| completed | Yes |