xroc

module
v0.0.0-...-c7ddc9c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2018 License: BSD-3-Clause

README

A collection of OpenConfig and Cisco IOS XR examples

BSD License published

The goal of this repo is to provide a set of examples that illustrate how to program network elements using OpenConfig and gRPC. We will leverage different Open Source projects:

  • Go as the main programming language.
  • xrgrpc (gRPC library for Cisco IOS XR) to interact with IOS XR via gRPC.
  • ygot (YANG Go Tools) to generate the OpenConfig data structures required for the gRPC calls.

Examples

Interface Configuration
Telemetry Stream Configuration
BGP Neighbor Configuration
Configuring and Validating a BGP Peer session

The objective is to configure an interface (link) and bring up a BGP session, while setting up a BGP Neighbor Telemetry stream to track the current state of the BGP Finite State Machine. Check out the code here

Steps
  1. Configure a Streaming Telemetry subscription using ygot and xrgrpc.

  2. Configure the Peer link (interface) using ygot and xrgrpc.

  3. Configure a BGP neighbor using ygot and xrgrpc.

  4. Subscribe to a Telemetry stream to learn about BGP Neighbor status with xrgrpc.

    oc-config-validate

Tutorials

Directories

Path Synopsis
example
ipv6/bgp
Configures a Telemetry Subscription on an IOS XR device using ygot.
Configures a Telemetry Subscription on an IOS XR device using ygot.
1.
ipv6/interface
Configures an interface on an IOS XR device using ygot.
Configures an interface on an IOS XR device using ygot.
ipv6/telemetry
Configures a Telemetry Subscription on an IOS XR device using ygot.
Configures a Telemetry Subscription on an IOS XR device using ygot.
pkg
interface
Package ocint is a generated package which contains definitions of structs which represent a YANG schema.
Package ocint is a generated package which contains definitions of structs which represent a YANG schema.
network-instance
Package ocni is a generated package which contains definitions of structs which represent a YANG schema.
Package ocni is a generated package which contains definitions of structs which represent a YANG schema.
telemetry
Package octel is a generated package which contains definitions of structs which represent a YANG schema.
Package octel is a generated package which contains definitions of structs which represent a YANG schema.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL