Here are new ydk-py sample apps!
I have added the following CRUD sample apps for configuring LLDP using OpenConfig and gNMI.
gn-create-oc-lldp-10-ydk.py - create boilerplate
gn-create-oc-lldp-20-ydk.py - enable LLDP
gn-create-oc-lldp-22-ydk.py - enable LLDP with timer
gn-create-oc-lldp-24-ydk.py - enable LLDP with TLV adv
gn-delete-oc-lldp-10-ydk.py - delete boilerplate
gn-delete-oc-lldp-20-ydk.py - delete all LLDP configuration
gn-read-oc-lldp-10-ydk.py - read boilerplate
gn-update-oc-lldp-10-ydk.py - update boilerplate
The entire basic level CRUD/LLDP OpenConfig and gNMI sample apps can be found in the following page:
https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/crud/gnmi/models/openconfig/openconfig-lldp
Make sure to compare the difference between LLDP sample apps of gNMI and NETCONF.
gNMI does not have "get schema" RPC, and thus you need to pre-populate a model repository.
Check it out!