Neutron CLI commands: Where is the code that is invoked by them?

asked 2014-09-15 07:03:08 -0600

fhussain gravatar image


I would like to know what python code/file is executed when we enter a CLI command to access Neutron APIs. For example:

$ neutron router-port-list

I have gone through the file . There is a dictionary in which all the CLI commands are listed against their respective classes.

I want to get into the code of how this CLI command is implemented in the backend?


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-09-15 07:16:43 -0600

larsks gravatar image

You're working with the neutron client. If you want to know what's going on at the backend, you're going to need to look at the Neutron server code. You can find the code at:

Of course, this is also installed on your system in your Python site-packages directory (possibly /usr/lib/python2.7/site-packages/neutron).

The CLI communicates with the server using a REST API documented here:

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-09-15 07:03:08 -0600

Seen: 139 times

Last updated: Sep 15 '14