diff options
| author | Paul Buetow (lxpbuetow.webde.local) <paul.buetow@1und1.de> | 2014-06-24 15:32:54 +0200 |
|---|---|---|
| committer | Paul Buetow (lxpbuetow.webde.local) <paul.buetow@1und1.de> | 2014-06-24 15:32:54 +0200 |
| commit | 37e1b459418f979e2a8a0bb58b804ccd7872e1ae (patch) | |
| tree | d9701653be8389041e101763a9ccc618a2d1fab5 /src | |
| parent | 3667043709be2fdc16e9f0519d87f63521475314 (diff) | |
can get and set node ratio
Diffstat (limited to 'src')
| -rwxr-xr-x | src/fapi | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -295,6 +295,12 @@ class Fapi(FapiBase): return lambda: detail(f5) if a.sub2 == 'status': return lambda: f5().get_monitor_status([a.name]) + if a.sub2 == 'ratio': + return lambda: f5().get_ratio([a.name]) + if a.sub == 'set': + if a.sub2 == 'ratio': + ratio = a.sub3 + return lambda: f5().set_ratio([a.name], [ratio]) elif a.sub == 'create': fqdn_or_ip, ip, _ = self.lookup(a.name) return lambda: f5().create([fqdn_or_ip], [ip], [0]) |
