Giter Site home page Giter Site logo

netconf-driver's Introduction

netconf-driver

Overview

CP4NA supports integration of netconf devices using Netconf-Driver. Netconf driver implements following lifecycle methods to operate network configurations of a network device.

1. Create
2. Update
3. Delete
  • It uses Ignition framework (https://github.com/IBM/ignition) to communicate with Brent/CP4NA.

  • It is a wrapper on ncclient open source library (https://github.com/ncclient/ncclient)
    to call operations on netconf device.

  • For all the above lifecycle methods, driver uses ncclient librariy’s edit_config() method with default-operation as one of ‘merge’, ‘replace’ or ‘none’.

  • Resource properties can pass the default-operation property value as ‘merge’ or ‘replace’ for Create and Update lifecycles. For Delete lifecycle 'none' is used by default.

Configuration

  • Configuration details for the Create/Update/Delete lifecycle methods are passed through xml template files as part of the resource package as follows.

    1. For Create lifecycle, create.xml
    2. For Update lifecycle, update.xml
    3. For Delete lifecycle, delete.xml
  • For each lifecycle, configurations are generated in the driver by parsing the properties in the corresponding template file and replaces these property names with corresponding values received from resource properties.

  • The configuration content in xml file along with operations must be specific to the lifecycle that is being invoked.

  • The driver does not validate if there are any inappropriate operations defined in xml for a lifecycle method

For example: 
	1. replace or merge operations for Delete lifecycle
	2. delete or remove operations for Create lifecycle
  • Following deployment location properties will have the values for connecting to the Netconf server:
	{
			"host": "9.30.XX.XX",
			"port": "830",
			"username": "netconf",
			"password": "netconf",
			"timeout": 30
	}
infraKey:
  type: key
  required: true
  • Once the Infrastructure key is created, make sure to add its name in resource properties under 'infraKey' while creating an instance in cp4na

Onboarding Netconf driver

For information on how to onboard Netconf driver to a CP4NA cluster, please see Onboarding Guide

netconf-driver's People

Contributors

lokanalla avatar haynesdavis avatar akshata-desai-ibm avatar haynesdavisibm avatar rkumar8j avatar suryadipnag avatar deepansh1092 avatar manojn94 avatar

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.