diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-03-18 14:08:10 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-03-18 14:08:10 +0000 |
commit | ce93e4617cd9629d7c5eb62dda3aa8a872d2e603 (patch) | |
tree | 05b5256214b8822b7ddcbcb18de019c31fa159a5 /neutronclient/v2_0 | |
parent | c6c788d70444d3455c64b2b683d779dc87476808 (diff) | |
parent | 6ca9a003a6e30ad11458f3a5ca1bb63c7bedfe94 (diff) | |
download | python-neutronclient-ce93e4617cd9629d7c5eb62dda3aa8a872d2e603.tar.gz |
Merge "Added client calls for the lbaas v2 agent scheduler"
Diffstat (limited to 'neutronclient/v2_0')
-rw-r--r-- | neutronclient/v2_0/client.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/neutronclient/v2_0/client.py b/neutronclient/v2_0/client.py index 2e63bb2..6c430a9 100644 --- a/neutronclient/v2_0/client.py +++ b/neutronclient/v2_0/client.py @@ -421,6 +421,8 @@ class Client(ClientBase): L3_AGENTS = '/l3-agents' LOADBALANCER_POOLS = '/loadbalancer-pools' LOADBALANCER_AGENT = '/loadbalancer-agent' + AGENT_LOADBALANCERS = '/agent-loadbalancers' + LOADBALANCER_HOSTING_AGENT = '/loadbalancer-hosting-agent' firewall_rules_path = "/fw/firewall_rules" firewall_rule_path = "/fw/firewall_rules/%s" firewall_policies_path = "/fw/firewall_policies" @@ -1396,6 +1398,19 @@ class Client(ClientBase): lbaas_agent, params=_params) @APIParamsCall + def get_lbaas_agent_hosting_loadbalancer(self, loadbalancer, **_params): + """Fetches a loadbalancer agent hosting a loadbalancer.""" + return self.get((self.lbaas_loadbalancer_path + + self.LOADBALANCER_HOSTING_AGENT) % loadbalancer, + params=_params) + + @APIParamsCall + def list_loadbalancers_on_lbaas_agent(self, lbaas_agent, **_params): + """Fetches a list of loadbalancers hosted by the loadbalancer agent.""" + return self.get((self.agent_path + self.AGENT_LOADBALANCERS) % + lbaas_agent, params=_params) + + @APIParamsCall def list_service_providers(self, retrieve_all=True, **_params): """Fetches service providers.""" # Pass filters in "params" argument to do_request |