Ask Your Question
0

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

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

fhussain gravatar image

Hi,

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 https://github.com/openstack/python-n... . 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?

Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

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

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

1 follower

Stats

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

Seen: 101 times

Last updated: Sep 15 '14