device_push_config
Push configuration to Huawei eNSP devices from text or .cfg file. Auto-enters system view, supports segmented configs, stops on error, and optionally saves changes.
Instructions
从文本或 UTF-8 .cfg 下发配置,config/config_file 必须且只能选一个。
自动进入系统视图,支持带 # 分段的 display current-configuration 配置文本, 分段时退出子视图再进入系统视图。默认遇错停止且不保存;不会自动回滚已生效配置。 username/password/new_password 与 device_exec 相同。save 默认 true。 CE 提示符标记存在未提交改动时,保存前先 commit;任何保存异常都返回失败状态。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | 127.0.0.1 | |
| save | No | ||
| config | No | ||
| target | Yes | ||
| password | No | ||
| username | No | ||
| topo_path | No | ||
| config_file | No | ||
| new_password | No | ||
| stop_on_error | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |