Ask Your Question

rajat88's profile - activity

2015-11-06 02:12:18 -0500 received badge  Famous Question (source)
2015-08-14 04:33:23 -0500 received badge  Student (source)
2015-08-14 04:33:17 -0500 received badge  Popular Question (source)
2015-08-14 04:33:17 -0500 received badge  Notable Question (source)
2015-07-01 19:04:44 -0500 asked a question mapping of routers and url in neutron api

I want to add a new method i.e add some extension method in the neutron service and want to call this method from the command line interface.The method would actually show the quota usage(absolute limits) just like it shows in nova usage.

Now I created a new command but I am not able to call the required method.I am entangled in how the request is being converted to routes and how the controller and the specific action is being called and how the mapping is being done.In the following logs, the request url is being converted to some actions and controllers I am specifically interested in how this is happening.

2015-07-01 05:05:42.997 12028 DEBUG routes.middleware [-] Matched GET /quotas/af6f77cb6304491fbe7f20b4959b2b4e.json __call__ /usr/local/lib/python2.7/dist-packages/routes/middleware.py:106

2015-07-01 05:05:42.998 12028 DEBUG routes.middleware [-] Route path: '/quotas/:(id).:(format)', defaults: {'action': u'show', 'controller': <wsgify at="" 140351464246992="" wrapping="" <function="" resource="" at="" 0x7fa61f303b18="">>} __call__ /usr/local/lib/python2.7/dist-packages/routes/middleware.py:108

2015-06-24 06:04:09 -0500 received badge  Famous Question (source)
2015-06-23 01:10:27 -0500 received badge  Notable Question (source)
2015-06-22 19:43:26 -0500 received badge  Popular Question (source)
2015-06-22 12:26:20 -0500 asked a question How to understand the source code of neutron api?

I want to understand how neutron client and neutron service interact and what is happening in the background? What are the files being called?