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

Sample apps for MPLS/OpenConfig

deom
Cisco Employee
Cisco Employee

Related image

Hello YDK lovers,

 

I wish you have enjoyed the fourth of July last week!

This is time to get into another training to get familiar with YDK-py.

I would like to introduce two sets for the updated sample apps for Multiprotocol Label Switching (MPLS).

 

As the OpenConfig MPLS data model has been updated, the new data model has adopted "network instances" to configure MPLS object.

The sample apps for MPLS are now upgraded to apply the data model changes.

 

The first set of sample apps configures MPLS using OpenConfig and NETCONF with the CRUD service:

nc-create-oc-mpls-10-ydk.py - create boilerplate
nc-create-oc-mpls-20-ydk.py - enable RSVP-TE on interfaces
nc-create-oc-mpls-30-ydk.py - set MPLS-TE timers
nc-create-oc-mpls-32-ydk.py - enable MPLS-TE on interfaces
nc-create-oc-mpls-34-ydk.py - set affinities (admin groups)
nc-create-oc-mpls-40-ydk.py - explicit path
nc-create-oc-mpls-50-ydk.py - dynamic-path tunnel
nc-create-oc-mpls-52-ydk.py - auto-bw tunnel
nc-create-oc-mpls-54-ydk.py - protected tunnel
nc-create-oc-mpls-56-ydk.py - tunnel prio/admin-group
nc-create-oc-mpls-58-ydk.py - tunnel with path options
nc-delete-oc-mpls-10-ydk.py - delete boilerplate
nc-delete-oc-mpls-20-ydk.py - delete all MPLS configuration
nc-read-oc-mpls-10-ydk.py   - read boilerplate
nc-update-oc-mpls-10-ydk.py - update boilerplate

The parent directory of NETCONF/OpenConfig MPLS sample apps is as follows:

https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/crud/models/openconfig/openconfig-mpls

In this directory, you can find the python apps, XML data, and CLI data.

 

The second set of sample apps encodes MPLS configuration using OpenConfig:

cd-encode-oc-mpls-10-ydk.py - create boilerplate
cd-encode-oc-mpls-20-ydk.py - enable RSVP-TE on interfaces
cd-encode-oc-mpls-30-ydk.py - set MPLS-TE timers
cd-encode-oc-mpls-32-ydk.py - enable MPLS-TE on interfaces
cd-encode-oc-mpls-34-ydk.py - set affinities (admin groups)
cd-encode-oc-mpls-40-ydk.py - explicit path
cd-encode-oc-mpls-50-ydk.py - dynamic-path tunnel
cd-encode-oc-mpls-52-ydk.py - auto-bw tunnel
cd-encode-oc-mpls-54-ydk.py - protected tunnel
cd-encode-oc-mpls-56-ydk.py - tunnel prio/admin-group
cd-encode-oc-mpls-58-ydk.py - tunnel with path options

You can find the entire set of OpenConfig Codec sample apps for MPLS in the following directory: 

https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic/codec/models/openconfig/openconfig-mpls

 

Have fun! 

0 Replies 0
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: