RequestExtension for neutron API

asked 2016-01-13 16:23:57 -0500

I am trying to code up an RequestExtension for /v2.0/ports.json to add a parameter In my extension, I have the following snippet:

def get_request_extensions( version):

        def _generate_mac(req,res):
  "Test interceptor working?")

        req_ext = extensions.RequestExtension('POST','ports{.format:json}',_generate_mac)
            return [req_ext]

I am not able to get interceptor working. Is there something missing in my RequestExtension definition?

edit retag flag offensive close merge delete