mapping of routers and url in neutron api

asked 2015-07-01 19:04:44 -0500

rajat88 gravatar image

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/

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/

edit retag flag offensive close merge delete