One of the requirements for MPLS Traffic Engineer is to enable RSVP signalling and to define how bandwidth should be managed on an interface (bandwidth constraints model). The ydk-py-samples repository now has six custom applications to configure RSVP-TE. All apps use the CRUD service:
nc-create-xr-ip-rsvp-cfg-20-ydk.py - interface bandwidth as percentage (no bandwidth pool)
nc-create-xr-ip-rsvp-cfg-22-ydk.py - interface bandwidth as absolute value (no bandwidth pool)
nc-create-xr-ip-rsvp-cfg-24-ydk.py - interface bandwidth as percentage using russian-doll model
nc-create-xr-ip-rsvp-cfg-26-ydk.py - interface bandwidth as absolute values using russian-doll model
nc-create-xr-ip-rsvp-cfg-28-ydk.py - interface bandwidth as absolute values using the maximum-allocation model
nc-delete-xr-ip-rsvp-cfg-20-ydk.py - delete all RSVP configuration
As usual, you will also find four boilerplates to start creating your own apps:
nc-create-xr-ip-rsvp-cfg-10-ydk.py - create boilerplate
nc-read-xr-ip-rsvp-cfg-10-ydk.py - read boilerplate
nc-update-xr-ip-rsvp-cfg-10-ydk.py - update boilerplate
nc-delete-xr-ip-rsvp-cfg-10-ydk.py - delete boilerplate
You can find all these RSVP apps at https://git.io/vPjNY
Enjoy!