delete_config
nornir_scrapli.tasks.netconf_delete_config
netconf_delete_config(task: Task, target: str = 'candidate') -> Result
¶
Send a "delete-config" rcp to the device with scrapli_netconf
Parameters:
Name | Type | Description | Default |
---|---|---|---|
task |
Task
|
nornir task object |
required |
target |
str
|
configuration source to target; startup|candidate |
'candidate'
|
Returns:
Name | Type | Description |
---|---|---|
Result |
Result
|
nornir result object with Result.result value set the string result of the delete operation |
Source code in tasks/netconf/delete_config.py
6 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 |
|