MG SOFT NETCONF/YANG Python Scripting system

preview_player
Показать описание
This tutorial video explains the MG-SOFT NETCONF/YANG Python Scripting System architecture and offers some guidance on its usage. For a quick navigation within sections in the video presentation please use the following links:

0:00 Basic facts and System Architecture Overview
A brief "PowerPoint" presentation of the product.

2:08 YANG2PY Generator
A brief "PowerPoint" explanation of the "Yang to Python" converter and class generator.

4:26 Netconf Scripting API
A brief "PowerPoint" explanation of the "Netconf Scripting API" used by MG-SOFT NETCONF/YANG Python Scripting System.

5:33 List interfaces
This example shows and explains a python script that connects to a NETCONF device, obtains all configured interfaces (ietf-interfaces module) from candidate datastore and lists them by performing GetConfig operation.

19:58 Create interface
This example shows and explains a python script that connects to a NETCONF device and configures a new interface (ietf-interfaces module) in the candidate datastore by performing EditConfig operation.

23:49 Get schema
This example shows and explains a python script that connects to a NETCONF device, lists all available schema using ietf-netconf-monitoring module and then obtains a selected schema.

25:26 Notifications
This example shows and explains a python script that demonstrates how to handle NETCONF notifications.

29:18 Asynchronous NETCONF client
This example shows and explains a python script that demonstrates how to implement a more complex script utilizing the AsyncNetconfClient method, which can handle multiple NETCONF non-blocking sessions at once.

MG-SOFT NETCONF/YANG Python Scripting System is a powerful and easy-to-use NETCONF client scripting framework that enables retrieving and manipulating the configuration of any NETCONF server device from Python scripts. Scripts can be used for automated testing of NETCONF devices, as well as for monitoring and configuring NETCONF devices in an automated fashion.

The software lets you take any standard or vendor specific YANG module and use the bundled YANG2Py Generator tool to generate the corresponding Python classes from it that allow you to compose scripts for testing or manipulating the respective configuration model in a rapid and convenient manner (e.g., using typical IDE editor features, like code-completion, go-to-definition, find-usages, etc.).

The MG-SOFT NETCONF/YANG Python scripting framework consist of three main components:

1. NETCONF Script API (high-performance NETCONF protocol stack implementation that supports performing all NETCONF operations over SSH and TLS),

2. YANG Python layer (YANG2Py API), containing functions for validating and serializing NETCONF content and generic YANG object-oriented model that can be extended with specific Python code generated from YANG modules,

3. YANG2Py Generator (a GUI tool that lets you generate Python classes from YANG modules for rapid and straightforward writing of scripts manipulating data defined in YANG).

The bundled scripts enable testing some of the standard operations and capabilities of NETCONF devices (get, get-config, edit-config, get-schema, notifications,... ) and serve as examples for creating user-written scripts. Using this framework, users can rapidly produce scripts that contain other standard and proprietary NETCONF RPC operations in order to test or configure any NETCONF enabled device in the network based on its YANG-defined configuration model.

MG-SOFT NETCONF/YANG Python Scripting System is compliant with the current IETF's RFC documents: RFC 4741, RFC 4742, RFC 5277, RFC 5539, RFC 6020, RFC 6022, RFC 6241 and RFC 6242.

For more information on MG-SOFT's NETCONF and YANG products please visit
Рекомендации по теме
visit shbcf.ru