import
import
Type: Command
Runs a script file (.rsc) line by line, for example a configuration made with export. The import adds to the existing configuration and stops at the first line that fails; the lines before it stay applied. See Configuration Management.
| Argument | Type | Description |
|---|---|---|
| file-name | file | Script file to run. |
| from-line | num | Starts the import at this line of the file. Works only with verbose=yes; without it, the router warns from-line parameter does not work for non-verbose import and runs the whole file. |
| verbose | enum (no | yes | progress) | With yes, prints each line with its number (#line N) before it runs, so the output shows where the import stops. With no, runs the file without printing the lines. |
| dry-run | switch | Checks the file without changing the configuration and reports No syntax errors found in the import file when it finds none. Works only with verbose=yes; without it, the import fails with dry-run parameter cannot be used in non-verbose mode. |