commit_config
nornir_scrapli.tasks.cfg_commit_config
cfg_commit_config(task: Task, source: str = 'running') -> Result
¶
Commit a device candidate config with scrapli-cfg
Parameters:
Name | Type | Description | Default |
---|---|---|---|
task |
Task
|
nornir task object |
required |
source |
str
|
name of the config source to commit against, generally running|startup |
'running'
|
Returns:
Name | Type | Description |
---|---|---|
Result |
Result
|
nornir result object with Result.result value set the string result of the load_config operation |
Source code in tasks/cfg/commit_config.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|