Neutron API and CLI support filters. But in horizon/openstack_dashboard/api "lbaas.py" and "vpnaas.py" we cannot get any proper request with filters:
(Pdb) p api.lbaas.pools_get(request, name='tst')
DEBUG:neutronclient.client:
REQ: curl -i http://172.18.76.45:9696//v2.0/lb/pools.json -X GET -H "X-Auth-Token: be2d5fc1a53a883bf8851950516e4b61" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient"
Thus we get the whole list of pools:
DEBUG:neutronclient.client:RESP:{'date': 'Wed, 16 Oct 2013 11:30:46 GMT', 'status': '200', 'content-length': '854', 'content-type': 'application/json; charset=UTF-8', 'content-location': 'http://172.18.76.45:9696//v2.0/lb/pools.json'} {"pools": [{"status": "PENDING_CREATE", "lb_method": "ROUND_ROBIN", "protocol": "HTTP", "description": "", "health_monitors": [], "subnet_id": "8c799d53-4f80-42a3-a5d6-8b521cf56608", "tenant_id": "0c078acd6f854ed695f063d261fd5086", "admin_state_up": true, "name": "tstpool2", "health_monitors_status": [], "members": [], "provider": "haproxy", "status_description": null, "id": "8f67b4a6-bdf0-47cd-809a-16cb76d1c652", "vip_id": null}, {"status": "PENDING_CREATE", "lb_method": "ROUND_ROBIN", "protocol": "HTTP", "description": "", "health_monitors": [], "subnet_id": "8c799d53-4f80-42a3-a5d6-8b521cf56608", "tenant_id": "0c078acd6f854ed695f063d261fd5086", "admin_state_up": true, "name": "tst", "health_monitors_status": [], "members": [], "provider": "haproxy", "status_description": null, "id": "ff332901-8770-42b8-a3d0-0614b288ee10", "vip_id": null}]}
[<Pool: {u'status': u'PENDING_CREATE', u'lb_method': u'ROUND_ROBIN', u'protocol': u'HTTP', u'description': u'', u'health_monitors': [], u'subnet_id': u'8c799d53-4f80-42a3-a5d6-8b521cf56608', u'tenant_id': u'0c078acd6f854ed695f063d261fd5086', u'admin_state_up': True, u'vip_id': None, u'health_monitors_status': [], u'members': [], u'provider': u'haproxy', u'status_description': None, u'id': u'8f67b4a6-bdf0-47cd-809a-16cb76d1c652', u'name': u'tstpool2'}>, <Pool: {u'status': u'PENDING_CREATE', u'lb_method': u'ROUND_ROBIN', u'protocol': u'HTTP', u'description': u'', u'health_monitors': [], u'subnet_id': u'8c799d53-4f80-42a3-a5d6-8b521cf56608', u'tenant_id': u'0c078acd6f854ed695f063d261fd5086', u'admin_state_up': True, u'vip_id': None, u'health_monitors_status': [], u'members': [], u'provider': u'haproxy', u'status_description': None, u'id': u'ff332901-8770-42b8-a3d0-0614b288ee10', u'name': u'tst'}>]
The same we could get without any filters:
(Pdb) p api.lbaas.pools_get(request)
DEBUG:neutronclient.client:
REQ: curl -i http://172.18.76.45:9696//v2.0/lb/pools.json -X GET -H "X-Auth-Token: be2d5fc1a53a883bf8851950516e4b61" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient"
Fix proposed to branch: master /review. openstack. org/52084
Review: https:/