[Openstack-operators] Mapping of routers and urls in Neutron API
Rajat Nagpal
rajat.nagpal at sjsu.edu
Thu Jul 2 00:08:37 UTC 2015
Hi guys,
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
--
Thanks,
Rajat Nagpal
rajat.nagpal at sjsu.edu
+1 4082075248
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20150701/94940209/attachment.html>
More information about the OpenStack-operators
mailing list