Skip to content

Repository files navigation

Nokia NSP Ansible Collection

Build Status Documentation License Python Ansible

Ansible HTTP API plugin for automation use-cases involving Nokia NSP. Includes NSP plugin for authentication handling and modules for interacting with NSP REST and RESTCONF APIs.


Requirements

  • Python: 3.11 or newer
  • Ansible: 2.14 or newer
  • NSP: 23.11 or newer
  • Network: HTTPS/SSL connectivity to NSP API endpoints
  • Python libraries: requests, urllib3, six

Installation

ansible-galaxy collection install nokia.nsp --force-with-deps

Quick Example

- name: Query NSP inventory
  hosts: nsp_server
  gather_facts: no
  connection: ansible.netcommon.httpapi

  tasks:
    - name: Find network elements
      nokia.nsp.rpc:
        operation: nsp-inventory:find
        input:
          xpath-filter: "/nsp-equipment:network/network-element"
          fields: "ne-id;ne-name;ip-address"
      register: inventory

Documentation

For complete documentation, visit the Documentation Site:

Features

  • ✅ Secure Authentication - Automatic Bearer token management with client credentials
  • ✅ RESTCONF API - Support for NSP REST and RESTCONF API operations
  • ✅ Error Handling - Comprehensive error handling and HTTP status management
  • ✅ Ansible Native - Integration with Ansible HTTPAPI framework
  • ✅ Well Documented - Full docstrings and comprehensive guides

Support

License

BSD 3-Clause License (see LICENSE)


Version: 1.0.0 | License: BSD 3-Clause

Releases

Packages

Contributors

Languages