Ask Your Question
0

Openstack automation: REST APIs Vs python sdk (Python bindings to the OpenStack Network API)?

asked 2015-08-19 07:50:58 -0600

vdani gravatar image

updated 2015-08-19 11:43:19 -0600

smaffulli gravatar image

I want to write Openstack automation scripts more specifically around Neutron operations. My confusion is whether I should opt for automation with REST APIs or use python sdk (Python bindings to the OpenStack Network API). Can somebody please throw some light on which is the more efficient way of going about this?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-08-19 11:43:07 -0600

smaffulli gravatar image

It's almost impossible to give you a generic answer. You'd want to use an SDK if that satisfies your needs and use the REST API directly if you have very special needs that the SDKs don't satisfy.

edit flag offensive delete link more

Comments

But which one is better in terms of modularity, efficiency and scale?

vdani gravatar imagevdani ( 2015-08-20 06:55:11 -0600 )edit
0

answered 2019-03-21 08:26:55 -0600

Aref gravatar image

openstack python sdk directly uses openstack rest api for operations. and the code is written pretty well, but like any other code, there will be some bugs and flaws. as @smaffulli mentioned, if you have very special case, you may write your own code using rest api my suggestion is to use openstacksdk first, and see if it satisfies your need.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2015-08-19 07:50:58 -0600

Seen: 298 times

Last updated: Mar 21