Ansible Module: nokia.nsp.rpc¶
Execute RPC operations on Nokia NSP
Notes
Requires ansible.netcommon.httpapi connection using Network OS nokia.nsp.nsp.
For resource-specific operations use nokia.nsp.action instead.
Synopsis¶
- Execute global RESTCONF RPC operations on Nokia NSP.
- Uses nokia.nsp.nsp connection for client authentication.
- Global operations not tied to specific resource instances.
- Input parameters must match YANG RPC input structure.
Parameters¶
| Parameter | Type | Comments |
|---|---|---|
| operation | str | RPC operation name with namespace prefix (e.g., nsp-inventory:find). Required: always |
| input | dict | Input parameters for the RPC operation. Must match YANG RPC input definition. Default: {} |
Examples¶
- name: Query network inventory
nokia.nsp.rpc:
operation: nsp-inventory:find
input:
xpath-filter: "/nsp-equipment:network/network-element"
fields: "ne-id;ne-name;ip-address"
include-meta: false
Return Values¶
| Parameter | Type | Comments |
|---|---|---|
| output | dict | Operation output from RESTCONF RPC call Returned: always Sample: {"nsp-inventory:output":{"data":[],"total-count":0}} |
| failed | bool | Module execution failed Returned: always |
| changed | bool | Operation caused change (always false for RPC queries) Returned: always |
New in version "0.1.0"