Itential Tools actions
The itential_tools package exposes a set of actions that Platform workflows use to interact with NSO via JSON-RPC. These actions cover device configuration, interface management, NED translation, and configuration staging.
Actions are invoked from a workflow using the runAction task from the NSO adapter. The task takes the action path and a params object as inputs.
How to call an action
Open Automation Studio and create a workflow
Navigate to Workflows in Automation Studio and create a new workflow.
Actions reference
Examples
Each example shows the complete params variable as entered in the runAction task dialog. The path field identifies the action endpoint on the NSO server.
admin_down_device
Admin-down all admin-up interfaces on a device.
admin_down_interfaces
Admin-down specific interfaces on a device. Interfaces are passed as a JSON-encoded array string.
admin_up_interfaces
Admin-up specific interfaces on a device.
getNamespaces
Return the namespace URI for a given prefix.
get_config
Retrieve the current configuration from a device. The format field controls whether config is returned in NATIVE format or another supported format.
load_config
Load configuration XML onto a device. The action field controls the merge strategy (MERGE, REPLACE, etc.).
native2Pronghorn
Use the NED to convert native CLI configuration into XPath format.
set_config
Push a native CLI configuration string to a device. The dryRun field specifies the output format for a dry-run operation (cli, native, etc.). Omit dryRun to commit the change.
set_config_transactions
Push configuration using a transaction object. The transaction tracks old and new values and supports multi-step rollback.
stage_device
Stage a device in NSO from a native CLI configuration string. Used to pre-provision device configuration before onboarding.
translate_config
Translate a native CLI configuration string into set-format commands. The strategy field controls the translation approach.
verify_config
Verify that the NED can parse a given native CLI configuration string. Useful for validating configuration before pushing it to a device.