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

Sample apps for XR LLDP using CRUD/gNMI

deom
Cisco Employee
Cisco Employee

Related image

Hello Community,

 

I came back with new YDK-py sample applications for ethernet LLDP configuration using Cisco native XR model and gNMI.

 

This set of sample apps configures XR LLDP using the gNMI provider and the CRUD service:

gn-create-xr-ethernet-lldp-cfg-10-ydk.py - create boilerplate
gn-create-xr-ethernet-lldp-cfg-20-ydk.py - Basic LLDP
gn-create-xr-ethernet-lldp-cfg-22-ydk.py - LLDP w/custom timers
gn-create-xr-ethernet-lldp-cfg-24-ydk.py - LLDP w/subintf and TLV select
gn-delete-xr-ethernet-lldp-cfg-10-ydk.py - delete boilerplate
gn-delete-xr-ethernet-lldp-cfg-20-ydk.py - delete all LLDP configuration
gn-read-xr-ethernet-lldp-cfg-10-ydk.py   - read boilerplate
gn-update-xr-ethernet-lldp-cfg-10-ydk.py - update boilerplate

The following link will direct you to the directory with python apps, JSON data, and CLI data about this set of sample applications.

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

 

 

Last June, we have posted about LLDP sample apps for OpenConfig/gNMI. You can check out the previous community posting for the LLDP OC/gNMI sample apps:

https://community.cisco.com/t5/yang-development-kit-ydk/sample-apps-for-configuring-lldp-using-openconfig-and-gnmi/m-p/3867828

 

Why don't you compare LLDP sample applications for XR/gNMI to OC/gNMI?

 

Have fun!

0 Replies 0