Giter Club home page Giter Club logo

nso_to_epnm_optical_service's Introduction

NSO to EPNM Optical Service

A python script to create and delete optical services (OCHCC) through REST API calls to NSO. NSO then communicates to EPNM and launches the service.

The python "create_service.py" script will create the necessary internal patchcords for the deployment of the OCHCC service. The site names, endpoints, links and service names need to be modified to your specific EPNM parameters. I have left my parameters for reference in the code. The python script uses the NSO APIs to send the necessary parameters from the json templates to NSO. NSO utilizes an EPN-M NED to communicate the parameters to create the patchcords and deploy the service over the patchcords links.

The python "delete_service.py" script will delete the service and remove the internal patchcords. The service names, links, endpoints and site names need to be modified to your specific EPNM parameters. Again I have left my parameters for reference in the code. The delete operation is the same as the create but the necessary parameters for the NSO API to perform the operation is less.

Contacts:

Solution Components

  • Python3
  • NSO
  • EPN-M
  • NSO NEDs - EPN-M package 1.0.4 or above

Installation

Create a constants.py file and add the following variables:

# NSO server IP and Username and Password
NSO_URL = "http://x.x.x.x:8080/"
NSO_USER = "nso_username"
NSO_PASSWORD = "nso_password"

# EPNM server IP and port and NSO device name
EPNM_IP = "x.x.x.x"
EPNM_PORT = "443"
EPNM_DEVICE_NAME = "EPNM1"  #EPNM NSO server name

Usage

To launch an optical service create:

$ python create_service.py

To launch an optical service delete:

$ python delete_service.py

License

Provided under Cisco Sample Code License, for details see LICENSE

Code of Conduct

Our code of conduct is available here

Contributing

See our contributing guidelines here

nso_to_epnm_optical_service's People

Contributors

jasmah avatar

Watchers

 avatar  avatar

Forkers

jasmah

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.