cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Sample apps for OpenConfig routing policy

saalvare
Cisco Employee
Cisco Employee

Let's kick off our OpenConfig week with sample apps for routing policy.  Four boilerplate apps for CRUD operations, plus five

custom apps to create and delete routing policies using this OpenConfig model (openconfig-routing-policy):

nc-create-config-routing-policy-22-ydk.py - accept all routes

nc-create-config-routing-policy-24-ydk.py - AS path, community, local preference

nc-create-config-routing-policy-26-ydk.py - prefix, community, local preference

nc-create-config-routing-policy-28-ydk.py - next-hop self

nc-delete-config-routing-policy-20-ydk.py - delete routing policies

All policies are BGP focused.

You can find the apps at:

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

Review the README file for basic apps.  It explains how apps are named and how to run them.

https://github.com/CiscoDevNet/ydk-py-samples/tree/master/samples/basic

More OpenConfig sample apps are coming up this week!

Happy coding!

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: