Hello Friends,
I have added sample applications to configure global MPLS attributes (MPLS LSD) for XR data model using the CRUD service and the gNMI provider.
This set includes four boilerplate applications and two custom applications as follows:
gn-create-xr-mpls-lsd-cfg-10-ydk.py - create boilerplate
gn-create-xr-mpls-lsd-cfg-20-ydk.py - disable for all packets
gn-delete-xr-mpls-lsd-cfg-10-ydk.py - delete boilerplate
gn-delete-xr-mpls-lsd-cfg-20-ydk.py - delete all MPLS LDP config
gn-read-xr-mpls-lsd-cfg-10-ydk.py - read boilerplate
gn-update-xr-mpls-lsd-cfg-10-ydk.py - update boilerplate
You can find the python files, CLI configuration files, and the JSON files in the following link:
https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/crud/gnmi/models/cisco-ios-xr/Cisco-IOS-XR-mpls-lsd-cfg
Enjoy :D