Hello YDK community,
I brought a set of Codec sample applications for Multiprotocol Label Switching (MPLS) Operations, Administration, and Maintenance (OAM).
These sample applications Includes one boilerplate and three custom apps to encode MPLS OAM configure using the cisco-ios-xr data model and Codec service:
cd-encode-xr-mpls-oam-cfg-10-ydk.py - Encode boilerplate
cd-encode-xr-mpls-oam-cfg-20-ydk.py - Enable MPLS OAM
cd-encode-xr-mpls-oam-cfg-22-ydk.py - Disable vendor extension
cd-encode-xr-mpls-oam-cfg-24-ydk.py - Disable vendor ext and reply mode
Using the following link, you can also get into the parent directory of the provided sample applications: https://github.com/CiscoDevNet/ydk-py-samples/blob/master/samples/basic/codec/models/cisco-ios-xr/Cisco-IOS-XR-mpls-oam-cfg
If you want to run any of the codec sample apps, you can simply type in the following codes in the terminal:
./cd-encode-xr-mpls-oam-cfg-20-ydk.py
Give it a try to run it yourself!