Hi, 

As many of you are already aware of, we introduced some changes in the Quantum 
plugin interface beginning with Essex-3 milestone, due to be released later 
this week.
These changes, which have been introduced in order to support filters in the 
Quantum API, affect the get_all_network and get_all_ports methods, and can be 
summarized as follows:
        1. Both methods must now accept a kwargs parameter as well. Therefore 
their signatures now are:
                * def get_all_networks(self, tenant_id, **kwargs)
                * def get_all_ports(self, tenant_id, net_id, **kwargs)
        2. Filtering options must be passed to these methods in a dictionary 
using a keyword argument named filter_opts
                * filters currently defined by the Quantum API can be found at 
http://wiki.openstack.org/quantum-api-filters (please disregarg the 
implementation section of this wiki page)
                * a plugin is not required to implement any filter. The API 
layer will apply all the filters that the plugin is unable to apply.
                * if a plugin applies a filter, it should remove the 
corresponding entry from the filter_opts dictionary; otherwise the API will 
re-apply the same filter
                * for examples about the format of the filter_opts dictionary, 
please refer to the API Filter Test Case in quantum/tests/unit/test_api.py

Regards,
Salvatore



-- 
Mailing list: https://launchpad.net/~netstack
Post to     : netstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~netstack
More help   : https://help.launchpad.net/ListHelp

Reply via email to