cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
847
Views
0
Helpful
0
Replies

Sample app to read XR system time using gNMI

saalvare
Cisco Employee
Cisco Employee

ydk-white-256.png

 

YDK 0.8.0 introduced support for gNMI.  That includes a gNMI service provider and a gNMI service.  Here's a basic sample app showing how to read the system time on an IOS XR device using the CRUD service with the gNMI service provider:

gn-read-xr-shellutil-oper-10-ydk.py - boilerplate for system time
gn-read-xr-shellutil-oper-20-ydk.py - custom app for system time

 

These apps use the CRUD service and the gNMI service provider.  New to gNMI?  Watch "gNMI programmatic configuration" from the recent Tech Field Day.  New to OpenConfig? watch "Getting started with OpenConfig" from the MPLS+SDN+NFV World Congress 2018.

 

What to compare these gNMI apps with the NETCONF apps performing the same task? See:

nc-read-xr-shellutil-oper-10-ydk.py - boilerplate for system time
nc-read-xr-shellutil-oper-20-ydk.py - custom app for system time


Enjoy!

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: