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

Sample apps for XR hostname configuration using CRUD/gNMI

deom
Cisco Employee
Cisco Employee

Related image

Hello YDK lovers,

I have added a new set of sample applications which configures the device's host name for XR data model using the gNMI provider and the CRUD service.

 

This set includes four boilerplate apps and four custom apps for XR Shellutil configuration:

gn-create-xr-shellutil-cfg-10-ydk.py - create boilerplate
gn-create-xr-shellutil-cfg-20-ydk.py - set hostname
gn-delete-xr-shellutil-cfg-10-ydk.py - delete boilerplate
gn-delete-xr-shellutil-cfg-20-ydk.py - delete hostname (set default)
gn-read-xr-shellutil-cfg-10-ydk.py   - read boilerplate
gn-read-xr-shellutil-cfg-20-ydk.py   - read/print hostname
gn-update-xr-shellutil-cfg-10-ydk.py - update boilerplate
gn-update-xr-shellutil-cfg-20-ydk.py - update hostname

All the python apps, JSON files, CLI config files are available at the following link:

https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/crud/gnmi/models/cisco-ios-xr/Cisco-IOS-XR-shellutil-cfg

 

Now you can simply change the device's host name with this python app!

Give it a try to change your device's host name to something cool :D

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: