cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
351
Views
0
Helpful
1
Replies
Joshua Leatham
Cisco Employee

YDK-py pre-built classes/functions

New to this stuff so sorry if this is not well thought-out.  Really glad you folks are paving the way for easier programmability of IOS-XE.

YDK-py seems unnecessarily complicated at the moment.

Is there currently any effort in creating useful pre-built classes/packages to simplify getting started with YDK?    For instance, it would be useful if there was a package that defines a pre-built function/class that allows you to:

  • Put your IP address and credentials, and it will define the argparser, urlparser, logging, serviceProvider, CRUDservice, etc automatically in one line of code (would also hide the complexity of stuff the user really shouldn't need to worry about)
  • Defines commonly needed operations as one-line calls, like what this guy has done with VLANs here: Getting To Know YDK

A good example of this is what the Spark team has done with the CiscoSparkAPI package that you can use.  It hides all the restful request complexity and allows for simple 'api.function.operation()' type calls.

Thanks again for all your efforts.  Good luck!

1 ACCEPTED SOLUTION

Accepted Solutions
saalvare
Cisco Employee

Thanks for the feedback.  The current focus of the team is to harden the SDK while adding support for more models (e.g. NX-OS), more languages (e.g. go, Java), more protocols (e.g. gRPC), more encodings (e.g. YAML). Down the road, you can expect to see examples of higher levels of abstraction that can further simplify network automation (e.g. Ansible modules).  Many of those examples should arrive at the YDK-Py samples repository later this year.

View solution in original post

1 REPLY 1
saalvare
Cisco Employee

Thanks for the feedback.  The current focus of the team is to harden the SDK while adding support for more models (e.g. NX-OS), more languages (e.g. go, Java), more protocols (e.g. gRPC), more encodings (e.g. YAML). Down the road, you can expect to see examples of higher levels of abstraction that can further simplify network automation (e.g. Ansible modules).  Many of those examples should arrive at the YDK-Py samples repository later this year.

Create
Recognize Your Peers
Content for Community-Ad