X-Ops / pynso

A Python client library for Cisco Network Services Orchestrator (NSO)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyNSO

Build PyPI1 PyPI2 PyPI3 Documentation Status Coverage

Overview

A Python client library for Cisco NSO (previously tail-f)

Installation

To install use pip:

$ pip install pynso

Or clone the repo:

$ git clone https://github.com/DimensionDataResearch/pynso.git
$ python setup.py install

Usage

from pprint import pprint

from pynso.client import NSOClient
from pynso.datastores import DatastoreType

# Setup a client
client = NSOClient('10.123.92.12', 'admin', 'admin')

# Get information about the API
print('Getting API version number')
pprint(client.info()['version'])

# Get the information about the running datastore
print('Getting the contents of the running datastore')
pprint(client.get_datastore(DatastoreType.RUNNING))

About

A Python client library for Cisco Network Services Orchestrator (NSO)

License:Apache License 2.0


Languages

Language:Python 98.6%Language:Shell 1.4%