Skip to content

Latest commit

 

History

History
45 lines (39 loc) · 1.19 KB

README.md

File metadata and controls

45 lines (39 loc) · 1.19 KB

Demo of Operational modules for NETCONF/YANG in Nokia SR OS

This repository contains the demo Python code to perform operational activities on Nokia SR OS network routers and switches via NETCONF.

Usage

  1. Modify the app/inventory.yaml file to match your needs:
---
- hostname: 192.168.101.11
  1. Install the dependencies:
$ pip install -r requirements.txt
  1. Setup environment variables with credentails:
$ export AUTOMATION_USER="admin"
$ export AUTOMATION_PASS="admin"
  1. Launch the app:
$ cd app
$ python main.py 
Device 192.168.101.11 supports ping via NETCONF
==================================================================================================================================
Reachability to 192.168.101.11
==================================================================================================================================
  statistics:
    packets:
      sent: 3
      received: 3
      loss: 0.0
    round-trip-time:
      minimum: 1445
      average: 2360
      maximum: 3879
      standard-deviation: 1081

Want to Know Network Automation

Enroll to out training programs

(c) 2022, Karneliuk.com