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

Sample apps for encoding MPLS OAM config using XR

deom
Cisco Employee
Cisco Employee

Related image

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!

0 Replies 0