cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
255
Views
0
Helpful
0
Replies
Highlighted
Cisco Employee

Sample apps for XR hostname configuration using CRUD/gNMI

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

Everyone's tags (6)
Content for Community-Ad
August's Community Spotlight Awards