Available Tasks¶
All tasks presented here are methods that live in scrapli
or scrapli_netconf
-- these tasks are simply "wrapped
" in such a way that they may be used within the constructs of nornir
! The links below link back to the scrapli
or scrapli_netconf
docs for the given method -- in all (or very nearly all?) cases, the same arguments that the
underlying library supports will be exposed to nornir
!
Scrapli "core" Tasks¶
- get_prompt - Get the current prompt of the device
- send_command - Send a single command to the device
- send_commands - Send a list of commands to the device
- send_commands_from_file - Send a list of commands from a file to the device
- send_config - Send a configuration to the device
- send_configs - Send a list of configurations to the device
- send_configs_from_file - Send a list of configurations from a file to the device
- send_interactive -"Interact" with the device (handle prompts and inputs and things like that)
Scrapli Netconf Tasks¶
Note that not all devices will support all operations!
- netconf_capabilities - Get list of capabilities as exchanged during netconf connection establishment
- netconf_commit - Commit the configuration on the device
- netconf_discard - Discard the configuration on the device
- netconf_edit_config - Edit the configuration on the device
- netconf_delete_config - Delete a given datastore on the device
- netconf_get - Get a subtree or xpath from the device
- netconf_get_config - Get the configuration from the device
- netconf_lock - Lock the datastore on the device
- netconf_unlock - Unlock the datastore on the device
- netconf_rpc - Send a "bare" RPC to the device
- netconf_validate - Execute the
validate
rpc against a given datastore
Scrapli Cfg Tasks¶
- cfg_abort_config - Abort a loaded candidate config
- cfg_commit_config - Commit a loaded candidate config
- cfg_diff_config - Diff a loaded candidate config
- cfg_get_config - Get a target config
- cfg_get_version - Get the device version string
- cfg_load_config - Load a candidate config