Showing results for 
Search instead for 
Did you mean: 

Sample apps for encoding LLDP using OpenConfig

Cisco Employee
Cisco Employee

Image result for ydk

Hello again,


I have brought another set of sample apps for ydk-py. 

This set of sample apps allow you to encode the LLDP configuration to XML. - encode boilerplate - enable LLDP - enable LLDP with timer - enable LLDP with TLV adv



You can also find the samples in the following folder of the github repository:


With this set of samples, you don't need to access to server to encode the configuration.

Also, you can easily modify the code to encode the configuration in JSON by adjusting the parameter of the code like this:


provider = CodecServiceProvider(type="xml")


provider = CodecServiceProvider(type="json")



Give it a try :D



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: