summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Buetow (lxpbuetow.webde.local) <paul.buetow@1und1.de>2014-06-24 15:32:54 +0200
committerPaul Buetow (lxpbuetow.webde.local) <paul.buetow@1und1.de>2014-06-24 15:32:54 +0200
commit37e1b459418f979e2a8a0bb58b804ccd7872e1ae (patch)
treed9701653be8389041e101763a9ccc618a2d1fab5 /src
parent3667043709be2fdc16e9f0519d87f63521475314 (diff)
can get and set node ratio
Diffstat (limited to 'src')
-rwxr-xr-xsrc/fapi6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fapi b/src/fapi
index 8a02461..81b2c84 100755
--- a/src/fapi
+++ b/src/fapi
@@ -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])